VTK
vtkParallelCoordinatesHistogramRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkParallelCoordinatesHistogramRepresentation.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2009 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
55 #ifndef vtkParallelCoordinatesHistogramRepresentation_h
56 #define vtkParallelCoordinatesHistogramRepresentation_h
57 
58 #include "vtkViewsInfovisModule.h" // For export macro
60 
65 class vtkLookupTable;
66 
68 {
69 public:
72  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
73 
77  void ApplyViewTheme(vtkViewTheme* theme) VTK_OVERRIDE;
78 
80 
83  virtual void SetUseHistograms(int);
84  vtkGetMacro(UseHistograms,int);
85  vtkBooleanMacro(UseHistograms,int);
87 
89 
92  virtual void SetShowOutliers(int);
93  vtkGetMacro(ShowOutliers,int);
94  vtkBooleanMacro(ShowOutliers,int);
96 
98 
101  vtkSetVector2Macro(HistogramLookupTableRange,double);
102  vtkGetVector2Macro(HistogramLookupTableRange,double);
104 
106 
109  void SetNumberOfHistogramBins(int,int);
110  void SetNumberOfHistogramBins(int*);
111  vtkGetVector2Macro(NumberOfHistogramBins,int);
113 
115 
118  void SetPreferredNumberOfOutliers(int);
119  vtkGetMacro(PreferredNumberOfOutliers,int);
121 
126  int SwapAxisPositions(int position1, int position2) VTK_OVERRIDE;
127 
132  int SetRangeAtPosition(int position, double range[2]) VTK_OVERRIDE;
133 
134 protected:
137 
138  int RequestData(
141  vtkInformationVector*) VTK_OVERRIDE;
142 
143  bool AddToView(vtkView* view) VTK_OVERRIDE;
144 
145  bool RemoveFromView(vtkView* view) VTK_OVERRIDE;
146 
150  int UseHistograms;
151 
155  double HistogramLookupTableRange[2];
156 
160  int NumberOfHistogramBins[2];
161 
163  vtkSmartPointer<vtkLookupTable> HistogramLookupTable;
164 
168  int ShowOutliers;
169 
173  int PreferredNumberOfOutliers;
174 
179 
184  int PlaceLines(vtkPolyData* polyData, vtkTable* data, vtkIdTypeArray* idsToPlot) VTK_OVERRIDE;
185 
190  int PlaceCurves(vtkPolyData* polyData, vtkTable* data, vtkIdTypeArray* idsToPlot) VTK_OVERRIDE;
191 
195  int PlaceSelection(vtkPolyData* polyData, vtkTable* data, vtkSelectionNode* selectionNode) VTK_OVERRIDE;
196 
200  virtual int PlaceHistogramLineQuads(vtkPolyData* polyData);
201 
206  virtual int PlaceHistogramCurveQuads(vtkPolyData* polyData);
207 
209 
213  int ComputeDataProperties() VTK_OVERRIDE;
214  int UpdatePlotProperties(vtkStringArray*) VTK_OVERRIDE;
216 
221  virtual vtkImageData* GetHistogramImage(int idx);
222 
226  virtual vtkTable* GetOutlierData();
227 
228 private:
230  void operator=(const vtkParallelCoordinatesHistogramRepresentation&) VTK_DELETE_FUNCTION;
231 };
232 
233 #endif
A node in a selection tree.
Store vtkAlgorithm input/output information.
a actor that draws 2D data
Definition: vtkActor2D.h:39
map scalar values into colors via a lookup table
static vtkParallelCoordinatesRepresentation * New()
a vtkAbstractArray subclass for strings
dynamic, self-adjusting array of vtkIdType
Hold a reference to a vtkObjectBase instance.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
virtual int SwapAxisPositions(int position1, int position2)
Move an axis to a particular screen position.
void ApplyViewTheme(vtkViewTheme *theme) override
Apply the theme to this view.
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:42
The superclass for all views.
Definition: vtkView.h:54
a simple class to control print indentation
Definition: vtkIndent.h:33
compute a 2D histogram between two columns of an input vtkTable.
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
Data representation that takes generic multivariate data and produces a parallel coordinates plot...
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int SetRangeAtPosition(int position, double range[2])
Set/get the value range of the axis at a particular screen position.
compute a 2D histogram between all adjacent columns of an input vtkTable.
draw vtkPolyData onto the image plane
Data representation that takes generic multivariate data and produces a parallel coordinates plot...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
compute the outliers in a set of 2D histograms and extract the corresponding row data.