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 "vtkRemotingViewsModule.h" //needed for exports
28 
29 class vtkChartBox;
30 
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
41  void SetVisibility(bool visible) override;
42 
44 
47  void SetSeriesVisibility(const char* series, bool visibility);
48  void SetSeriesColor(const char* name, double r, double g, double b);
50 
51  void ClearSeriesVisibilities();
52  void ClearSeriesColors();
53 
57  vtkChartBox* GetChart();
58 
60 
63  vtkSetMacro(LineThickness, int);
65 
67 
70  vtkSetMacro(LineStyle, int);
72 
74 
77  vtkSetVector3Macro(Color, double);
79 
81 
84  vtkSetMacro(Legend, bool);
86 
87 protected:
89  ~vtkPVBoxChartRepresentation() override;
90 
95  void PrepareForRendering() override;
96 
97  bool AddToView(vtkView* view) override;
98 
104  bool RemoveFromView(vtkView* view) override;
105 
108  double Color[3];
109  bool Legend;
110 
111 private:
113  void operator=(const vtkPVBoxChartRepresentation&) = delete;
114 
115  class vtkInternals;
116  vtkInternals* Internals;
117 };
118 
119 #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.
Color
vtkPVBoxChartRepresentation is the vtkChartBox subclass for box plots 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.