vtkPVBoxChartRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkPVBoxChartRepresentation_h
12 #define vtkPVBoxChartRepresentation_h
13 
14 #include "vtkChartRepresentation.h"
15 #include "vtkRemotingViewsModule.h" //needed for exports
16 
17 class vtkChartBox;
18 
19 class VTKREMOTINGVIEWS_EXPORT vtkPVBoxChartRepresentation : public vtkChartRepresentation
20 {
21 public:
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25 
29  void SetVisibility(bool visible) override;
30 
32 
35  void SetSeriesVisibility(const char* series, bool visibility);
36  void SetSeriesColor(const char* name, double r, double g, double b);
38 
39  void ClearSeriesVisibilities();
40  void ClearSeriesColors();
41 
45  vtkChartBox* GetChart();
46 
48 
51  vtkSetMacro(LineThickness, int);
53 
55 
58  vtkSetMacro(LineStyle, int);
60 
62 
65  vtkSetVector3Macro(Color, double);
67 
69 
72  vtkSetMacro(Legend, bool);
74 
75 protected:
77  ~vtkPVBoxChartRepresentation() override;
78 
83  void PrepareForRendering() override;
84 
85  bool AddToView(vtkView* view) override;
86 
92  bool RemoveFromView(vtkView* view) override;
93 
95  int LineStyle;
96  double Color[3];
97  bool Legend;
98 
99 private:
101  void operator=(const vtkPVBoxChartRepresentation&) = delete;
102 
103  class vtkInternals;
104  vtkInternals* Internals;
105 };
106 
107 #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...
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.