vtkPVHistogramChartRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkPVHistogramChartRepresentation_h
14 #define vtkPVHistogramChartRepresentation_h
15 
17 
18 class vtkDataObject;
21 class vtkSelection;
22 
24 {
25 public:
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31 
35  void SetComponent(int);
36  int GetComponent();
38 
40 
43  void SetBinCount(int);
44  int GetBinCount();
46 
48 
53  void SetCenterBinsAroundMinAndMax(bool);
54  bool GetCenterBinsAroundMinAndMax();
56 
58 
62  void SetCustomBinRanges(double min, double max);
63  double* GetCustomBinRanges();
65 
67 
71  void SetUseCustomBinRanges(bool);
72  bool GetUseCustomBinRanges();
74 
78  void SetHistogramColor(double r, double g, double b);
79 
83  void SetUseColorMapping(bool colorMapping);
84 
89 
93  void SetHistogramLineStyle(int style);
94 
99 
101 
105  int idx, int port, int connection, int fieldAssociation, const char* name) override;
108 
113  bool MapSelectionToInput(vtkSelection*) override;
114 
118  bool MapSelectionToView(vtkSelection* sel) override;
119 
120 protected:
123 
124  void PrepareForRendering() override;
125 
127 
128 private:
130  void operator=(const vtkPVHistogramChartRepresentation&) = delete;
131 
132  std::string ArrayName;
133  int AttributeType;
134 };
135 
136 #endif
void PrepareForRendering() override
This method is called before actual render if this->MTime was modified since the last time this metho...
#define VTKREMOTINGVIEWS_EXPORT
vtkXYChartRepresentation is representation that is used to add vtkPlot subclasses to a vtkChartXY ins...
representation for "Histogram View".
static vtkXYChartRepresentation * New()
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name)
void SetLookupTable(const char *name, vtkScalarsToColors *lut)
Set/Clear the properties for Y series/columns.
void SetUseColorMapping(const char *name, bool useColorMapping)
Set/Clear the properties for Y series/columns.
virtual vtkSmartPointer< vtkDataObject > TransformInputData(vtkDataObject *data)
Method to be overridden to transform input data.
virtual bool MapSelectionToView(vtkSelection *sel)
This is the inverse of MapSelectionToInput().
void PrintSelf(ostream &os, vtkIndent indent) override
Extract histogram for parallel dataset.
virtual bool MapSelectionToInput(vtkSelection *sel)
This method is called on the client-side by the vtkPVContextView whenever a new selection is made on ...