ParaView
vtkPVBagChartRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVBagChartRepresentation.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
23 #ifndef vtkPVBagChartRepresentation_h
24 #define vtkPVBagChartRepresentation_h
25 
26 #include "vtkChartRepresentation.h"
27 
28 class vtkChartXY;
29 class vtkImageData;
30 class vtkScalarsToColors;
31 
32 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkPVBagChartRepresentation
33  : public vtkChartRepresentation
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
43  virtual void SetVisibility(bool visible);
44 
48  vtkChartXY* GetChart();
49 
51 
54  vtkSetMacro(LineThickness, int);
55  vtkGetMacro(LineThickness, int);
57 
59 
62  vtkSetMacro(LineStyle, int);
63  vtkGetMacro(LineStyle, int);
65 
67 
70  vtkSetVector3Macro(LineColor, double);
71  vtkGetVector3Macro(LineColor, double);
73 
75 
78  void SetLookupTable(vtkScalarsToColors* lut);
79  vtkGetObjectMacro(LookupTable, vtkScalarsToColors);
81 
83 
86  vtkSetVector3Macro(BagColor, double);
87  vtkGetVector3Macro(BagColor, double);
89 
91 
94  vtkSetVector3Macro(SelectionColor, double);
95  vtkGetVector3Macro(SelectionColor, double);
97 
99 
102  vtkSetMacro(Opacity, double);
103  vtkGetMacro(Opacity, double);
105 
107 
110  vtkSetMacro(PointSize, int);
111  vtkGetMacro(PointSize, int);
113 
115 
118  vtkSetVector3Macro(PointColor, double);
119  vtkGetVector3Macro(PointColor, double);
121 
123 
126  vtkSetMacro(GridLineThickness, int);
127  vtkGetMacro(GridLineThickness, int);
129 
131 
134  vtkSetMacro(GridLineStyle, int);
135  vtkGetMacro(GridLineStyle, int);
137 
139 
142  vtkSetVector3Macro(PUserColor, double);
143  vtkGetVector3Macro(PUserColor, double);
145 
147 
150  vtkSetVector3Macro(P50Color, double);
151  vtkGetVector3Macro(P50Color, double);
153 
155 
158  vtkSetStringMacro(XAxisSeriesName);
159  vtkGetStringMacro(XAxisSeriesName);
161 
163 
167  vtkSetMacro(UseIndexForXAxis, bool);
168  vtkGetMacro(UseIndexForXAxis, bool);
170 
172 
175  vtkSetStringMacro(DensitySeriesName);
176  vtkGetStringMacro(DensitySeriesName);
178 
180 
183  vtkSetStringMacro(YAxisSeriesName);
184  vtkGetStringMacro(YAxisSeriesName);
186 
187 protected:
190 
195  virtual void PrepareForRendering();
196 
197  void SetPolyLineToTable(vtkPolyData* polydata, vtkTable* table);
198  virtual bool AddToView(vtkView* view);
199 
205  virtual bool RemoveFromView(vtkView* view);
206 
207  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
208  vtkInformationVector* outputVector);
209 
210 private:
211  vtkPVBagChartRepresentation(const vtkPVBagChartRepresentation&) VTK_DELETE_FUNCTION;
212  void operator=(const vtkPVBagChartRepresentation&) VTK_DELETE_FUNCTION;
213 
214  int LineThickness;
215  int LineStyle;
216  double LineColor[3];
217  vtkScalarsToColors* LookupTable;
218  int BagVisibility;
219  double BagColor[3];
220  double SelectionColor[3];
221  double Opacity;
222  int PointSize;
223  double PointColor[3];
224  int GridLineThickness;
225  int GridLineStyle;
226  double PUserColor[3];
227  double P50Color[3];
228  char* XAxisSeriesName;
229  char* YAxisSeriesName;
230  char* DensitySeriesName;
231  bool UseIndexForXAxis;
232  vtkSmartPointer<vtkImageData> LocalGrid;
233  vtkSmartPointer<vtkTable> LocalThreshold;
234 };
235 
236 #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...
virtual void SetVisibility(bool visible)
Set visibility of the representation.
virtual bool AddToView(vtkView *view)
Adds the representation to the view.
vtkPVagChartRepresentation is the vtkChartRepresentation subclass for bag plots representation.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses should override this to connect inputs to the internal pipeline as necessary.
vtkChartRepresentation is the base representation for charting representations.
void PrintSelf(ostream &os, vtkIndent indent)
virtual bool RemoveFromView(vtkView *view)
Removes the representation to the view.