ParaView
vtkPVBoxChartRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVBoxChartRepresentation.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 vtkPVBoxChartRepresentation_h
24 #define vtkPVBoxChartRepresentation_h
25 
26 #include "vtkChartRepresentation.h"
27 #include "vtkPVClientServerCoreRenderingModule.h" //needed for exports
28 
29 class vtkChartBox;
30 
31 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkPVBoxChartRepresentation
32  : public vtkChartRepresentation
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
42  virtual void SetVisibility(bool visible);
43 
45 
48  void SetSeriesVisibility(const char* series, bool visibility);
49  void SetSeriesColor(const char* name, double r, double g, double b);
51 
52  void ClearSeriesVisibilities();
53  void ClearSeriesColors();
54 
58  vtkChartBox* GetChart();
59 
61 
64  vtkSetMacro(LineThickness, int);
66 
68 
71  vtkSetMacro(LineStyle, int);
73 
75 
78  vtkSetVector3Macro(Color, double);
80 
82 
85  vtkSetMacro(Legend, bool);
87 
88 protected:
91 
96  virtual void PrepareForRendering();
97 
98  virtual bool AddToView(vtkView* view);
99 
105  virtual bool RemoveFromView(vtkView* view);
106 
109  double Color[3];
110  bool Legend;
111 
112 private:
113  vtkPVBoxChartRepresentation(const vtkPVBoxChartRepresentation&) VTK_DELETE_FUNCTION;
114  void operator=(const vtkPVBoxChartRepresentation&) VTK_DELETE_FUNCTION;
115 
116  class vtkInternals;
117  vtkInternals* Internals;
118 };
119 
120 #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.
vtkPVBoxChartRepresentation is the vtkChartBox subclass for box plots representation.
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.