ParaView
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;
31 class vtkInformationVector;
33 class vtkSelection;
34 
35 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkPVHistogramChartRepresentation
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
48  void SetComponent(int);
49  int GetComponent();
51 
53 
56  void SetBinCount(int);
57  int GetBinCount();
59 
61 
65  void SetCustomBinRanges(double min, double max);
66  double* GetCustomBinRanges();
68 
70 
74  void SetUseCustomBinRanges(bool);
75  bool GetUseCustomBinRanges();
77 
81  void SetHistogramColor(double r, double g, double b);
82 
86  void SetUseColorMapping(bool colorMapping);
87 
91  void SetLookupTable(vtkScalarsToColors* lut);
92 
96  void SetHistogramLineStyle(int style);
97 
101  virtual vtkDataObject* TransformInputData(
102  vtkInformationVector** inputVector, vtkDataObject* data);
103 
105 
108  virtual void SetInputArrayToProcess(
109  int idx, int port, int connection, int fieldAssociation, const char* name);
110  using Superclass::SetInputArrayToProcess;
112 
117  virtual bool MapSelectionToInput(vtkSelection*);
118 
122  virtual bool MapSelectionToView(vtkSelection* sel);
123 
124 protected:
127 
128  virtual void PrepareForRendering();
129 
131 
132 private:
134  void operator=(const vtkPVHistogramChartRepresentation&) VTK_DELETE_FUNCTION;
135 
136  std::string ArrayName;
137  int AttributeType;
138 };
139 
140 #endif
vtkXYChartRepresentation is representation that is used to add vtkPlot subclasses to a vtkChartXY ins...
virtual vtkDataObject * TransformInputData(vtkInformationVector **inputVector, vtkDataObject *data)
Method to be overrided to transform input data to a vtkTable.
representation for "Histogram View".
static vtkXYChartRepresentation * New()
virtual void PrepareForRendering()
This method is called before actual render if this->MTime was modified since the last time this metho...
void PrintSelf(ostream &os, vtkIndent indent)
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 bool MapSelectionToView(vtkSelection *sel)
This is the inverse of MapSelectionToInput().
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 ...