vtkPVPlotMatrixRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
18 #ifndef vtkPVPlotMatrixRepresentation_h
19 #define vtkPVPlotMatrixRepresentation_h
20 
21 #include "vtkChartRepresentation.h"
22 #include "vtkColor.h" // for ivars
23 #include "vtkRemotingViewsModule.h" //needed for exports
24 
26 class vtkStringArray;
27 
29 {
30 public:
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
38  void SetVisibility(bool visible) override;
39 
41 
46  void SetSeriesVisibility(const char* series, bool visibility);
47  void ClearSeriesVisibilities();
49 
53  void SetColor(double r, double g, double b);
54 
58  void SetActivePlotColor(double r, double g, double b);
59 
63  void SetHistogramColor(double r, double g, double b);
64 
68  void SetMarkerStyle(int style);
69 
73  void SetActivePlotMarkerStyle(int style);
74 
78  void SetMarkerSize(double size);
79 
83  void SetActivePlotMarkerSize(double size);
84 
88  void SetDensityMapVisibility(bool visible);
89 
93  void SetActivePlotDensityMapVisibility(bool visible);
94 
98  void SetDensityLineSize(double size);
99 
103  void SetActivePlotDensityLineSize(double size);
104 
108  void SetDensityMapFirstDecileColor(double r, double g, double b);
109 
113  void SetActivePlotDensityMapFirstDecileColor(double r, double g, double b);
114 
118  void SetDensityMapMedianColor(double r, double g, double b);
119 
123  void SetActivePlotDensityMapMedianColor(double r, double g, double b);
124 
128  void SetDensityMapLastDecileColor(double r, double g, double b);
129 
133  void SetActivePlotDensityMapLastDecileColor(double r, double g, double b);
134 
138  vtkScatterPlotMatrix* GetPlotMatrix() const;
139 
140 protected:
142  ~vtkPVPlotMatrixRepresentation() override;
143 
148  void PrepareForRendering() override;
149 
153  bool AddToView(vtkView* view) override;
154 
158  bool RemoveFromView(vtkView* view) override;
159 
160 private:
162  void operator=(const vtkPVPlotMatrixRepresentation&) = delete;
163 
164  class vtkInternals;
165  vtkInternals* Internals;
166 
167  vtkColor4ub ActivePlotColor;
168  vtkColor4ub ScatterPlotColor;
169  vtkColor4ub HistogramColor;
170  int ScatterPlotMarkerStyle;
171  int ActivePlotMarkerStyle;
172  double ScatterPlotMarkerSize;
173  double ActivePlotMarkerSize;
174 
175  bool ActivePlotDensityMapVisibility;
176  bool ScatterPlotDensityMapVisibility;
177  double ScatterPlotDensityLineSize;
178  double ActivePlotDensityLineSize;
179  vtkColor4ub ScatterPlotDensityMapFirstDecileColor;
180  vtkColor4ub ActivePlotDensityMapFirstDecileColor;
181  vtkColor4ub ScatterPlotDensityMapMedianColor;
182  vtkColor4ub ActivePlotDensityMapMedianColor;
183  vtkColor4ub ScatterPlotDensityMapLastDecileColor;
184  vtkColor4ub ActivePlotDensityMapLastDecileColor;
185 };
186 
187 #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.