vtkPVHistogramChartRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVHistogramChartRepresentation.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 =========================================================================*/
25 #ifndef vtkPVHistogramChartRepresentation_h
26 #define vtkPVHistogramChartRepresentation_h
27 
29 
30 class vtkDataObject;
33 class vtkSelection;
34 
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
47  void SetComponent(int);
48  int GetComponent();
50 
52 
55  void SetBinCount(int);
56  int GetBinCount();
58 
60 
65  void SetCenterBinsAroundMinAndMax(bool);
66  bool GetCenterBinsAroundMinAndMax();
68 
70 
74  void SetCustomBinRanges(double min, double max);
75  double* GetCustomBinRanges();
77 
79 
83  void SetUseCustomBinRanges(bool);
84  bool GetUseCustomBinRanges();
86 
90  void SetHistogramColor(double r, double g, double b);
91 
95  void SetUseColorMapping(bool colorMapping);
96 
101 
105  void SetHistogramLineStyle(int style);
106 
111 
113 
117  int idx, int port, int connection, int fieldAssociation, const char* name) override;
120 
125  bool MapSelectionToInput(vtkSelection*) override;
126 
130  bool MapSelectionToView(vtkSelection* sel) override;
131 
132 protected:
135 
136  void PrepareForRendering() override;
137 
139 
140 private:
142  void operator=(const vtkPVHistogramChartRepresentation&) = delete;
143 
144  std::string ArrayName;
145  int AttributeType;
146 };
147 
148 #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 ...