vtkPVPlotMatrixRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: pqPlotMatrixDisplayPanel.h
5 
6  Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
7  All rights reserved.
8 
9  ParaView is a free software; you can redistribute it and/or modify it
10  under the terms of the ParaView license version 1.2.
11 
12  See License_v1.2.txt for the full ParaView license.
13  A copy of this license can be obtained by contacting
14  Kitware Inc.
15  28 Corporate Drive
16  Clifton Park, NY 12065
17  USA
18 
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR
23 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 
31 =========================================================================*/
46 #ifndef vtkPVPlotMatrixRepresentation_h
47 #define vtkPVPlotMatrixRepresentation_h
48 
49 #include "vtkChartRepresentation.h"
50 #include "vtkColor.h" // for ivars
51 #include "vtkRemotingViewsModule.h" //needed for exports
52 
54 class vtkStringArray;
55 
57 {
58 public:
61  void PrintSelf(ostream& os, vtkIndent indent) override;
62 
66  void SetVisibility(bool visible) override;
67 
69 
74  void SetSeriesVisibility(const char* series, bool visibility);
75  void ClearSeriesVisibilities();
77 
81  void SetColor(double r, double g, double b);
82 
86  void SetActivePlotColor(double r, double g, double b);
87 
91  void SetHistogramColor(double r, double g, double b);
92 
96  void SetMarkerStyle(int style);
97 
101  void SetActivePlotMarkerStyle(int style);
102 
106  void SetMarkerSize(double size);
107 
111  void SetActivePlotMarkerSize(double size);
112 
116  void SetDensityMapVisibility(bool visible);
117 
121  void SetActivePlotDensityMapVisibility(bool visible);
122 
126  void SetDensityLineSize(double size);
127 
131  void SetActivePlotDensityLineSize(double size);
132 
136  void SetDensityMapFirstDecileColor(double r, double g, double b);
137 
141  void SetActivePlotDensityMapFirstDecileColor(double r, double g, double b);
142 
146  void SetDensityMapMedianColor(double r, double g, double b);
147 
151  void SetActivePlotDensityMapMedianColor(double r, double g, double b);
152 
156  void SetDensityMapLastDecileColor(double r, double g, double b);
157 
161  void SetActivePlotDensityMapLastDecileColor(double r, double g, double b);
162 
166  vtkScatterPlotMatrix* GetPlotMatrix() const;
167 
168 protected:
170  ~vtkPVPlotMatrixRepresentation() override;
171 
176  void PrepareForRendering() override;
177 
181  bool AddToView(vtkView* view) override;
182 
186  bool RemoveFromView(vtkView* view) override;
187 
188 private:
190  void operator=(const vtkPVPlotMatrixRepresentation&) = delete;
191 
192  class vtkInternals;
193  vtkInternals* Internals;
194 
195  vtkColor4ub ActivePlotColor;
196  vtkColor4ub ScatterPlotColor;
197  vtkColor4ub HistogramColor;
198  int ScatterPlotMarkerStyle;
199  int ActivePlotMarkerStyle;
200  double ScatterPlotMarkerSize;
201  double ActivePlotMarkerSize;
202 
203  bool ActivePlotDensityMapVisibility;
204  bool ScatterPlotDensityMapVisibility;
205  double ScatterPlotDensityLineSize;
206  double ActivePlotDensityLineSize;
207  vtkColor4ub ScatterPlotDensityMapFirstDecileColor;
208  vtkColor4ub ActivePlotDensityMapFirstDecileColor;
209  vtkColor4ub ScatterPlotDensityMapMedianColor;
210  vtkColor4ub ActivePlotDensityMapMedianColor;
211  vtkColor4ub ScatterPlotDensityMapLastDecileColor;
212  vtkColor4ub ActivePlotDensityMapLastDecileColor;
213 };
214 
215 #endif
static vtkChartRepresentation * New()
virtual void PrepareForRendering()
This method is called before actual render if this->MTime was modified since the last time this metho...
#define VTKREMOTINGVIEWS_EXPORT
void SetVisibility(bool visible) override
Set visibility of the representation.
vtkChartRepresentation subclass for scatter-plot-matrix representation.
vtkChartRepresentation is the base representation for charting representations.
bool AddToView(vtkView *view) override
Adds the representation to the view.
void PrintSelf(ostream &os, vtkIndent indent) override
bool RemoveFromView(vtkView *view) override
Removes the representation to the view.