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);
73 
77  virtual void ApplyViewTheme(vtkViewTheme* theme);
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 
111  vtkGetVector2Macro(NumberOfHistogramBins,int);
113 
115 
119  vtkGetMacro(PreferredNumberOfOutliers,int);
121 
126  virtual int SwapAxisPositions(int position1, int position2);
127 
132  virtual int SetRangeAtPosition(int position, double range[2]);
133 
134 protected:
137 
138  virtual int RequestData(
142 
143  virtual bool AddToView(vtkView* view);
144 
145  virtual bool RemoveFromView(vtkView* view);
146 
151 
155  double HistogramLookupTableRange[2];
156 
160  int NumberOfHistogramBins[2];
161 
164 
169 
174 
179 
184  virtual int PlaceLines(vtkPolyData* polyData, vtkTable* data, vtkIdTypeArray* idsToPlot);
185 
190  virtual int PlaceCurves(vtkPolyData* polyData, vtkTable* data, vtkIdTypeArray* idsToPlot);
191 
195  virtual int PlaceSelection(vtkPolyData* polyData, vtkTable* data, vtkSelectionNode* selectionNode);
196 
200  virtual int PlaceHistogramLineQuads(vtkPolyData* polyData);
201 
206  virtual int PlaceHistogramCurveQuads(vtkPolyData* polyData);
207 
209 
213  virtual int ComputeDataProperties();
216 
221  virtual vtkImageData* GetHistogramImage(int idx);
222 
227 
228 private:
230  void operator=(const vtkParallelCoordinatesHistogramRepresentation&) VTK_DELETE_FUNCTION;
231 };
232 
233 #endif
vtkParallelCoordinatesRepresentation
Data representation that takes generic multivariate data and produces a parallel coordinates plot.
Definition: vtkParallelCoordinatesRepresentation.h:89
vtkParallelCoordinatesHistogramRepresentation::PlaceSelection
virtual int PlaceSelection(vtkPolyData *polyData, vtkTable *data, vtkSelectionNode *selectionNode)
Draw a selection node referencing the row ids of a table into a poly data object.
vtkSelectionNode
A node in a selection tree.
Definition: vtkSelectionNode.h:68
vtkParallelCoordinatesHistogramRepresentation::OutlierActor
vtkSmartPointer< vtkActor2D > OutlierActor
Definition: vtkParallelCoordinatesHistogramRepresentation.h:178
vtkComputeHistogram2DOutliers
compute the outliers in a set of 2D histograms and extract the corresponding row data.
Definition: vtkComputeHistogram2DOutliers.h:63
vtkX3D::data
@ data
Definition: vtkX3D.h:315
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:69
vtkParallelCoordinatesHistogramRepresentation::UpdatePlotProperties
virtual int UpdatePlotProperties(vtkStringArray *)
Set plot actor properties (line thickness, opacity, etc)
vtkPairwiseExtractHistogram2D
compute a 2D histogram between all adjacent columns of an input vtkTable.
Definition: vtkPairwiseExtractHistogram2D.h:58
vtkParallelCoordinatesHistogramRepresentation::SetUseHistograms
virtual void SetUseHistograms(int)
Whether to use the histogram rendering mode or the superclass's line rendering mode.
vtkX3D::range
@ range
Definition: vtkX3D.h:238
vtkSmartPointer< vtkPairwiseExtractHistogram2D >
vtkParallelCoordinatesHistogramRepresentation::UseHistograms
int UseHistograms
Flag deciding if histograms will be drawn.
Definition: vtkParallelCoordinatesHistogramRepresentation.h:150
vtkParallelCoordinatesHistogramRepresentation::SetRangeAtPosition
virtual int SetRangeAtPosition(int position, double range[2])
Calls the superclass method, and assures that only the two histograms affect by this call get recompu...
vtkParallelCoordinatesRepresentation.h
vtkView
The superclass for all views.
Definition: vtkView.h:61
vtkViewTheme
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:49
vtkParallelCoordinatesHistogramRepresentation::vtkParallelCoordinatesHistogramRepresentation
vtkParallelCoordinatesHistogramRepresentation()
vtkX3D::position
@ position
Definition: vtkX3D.h:261
vtkParallelCoordinatesHistogramRepresentation::SetShowOutliers
virtual void SetShowOutliers(int)
Whether to compute and show outlier lines.
vtkExtractHistogram2D
compute a 2D histogram between two columns of an input vtkTable.
Definition: vtkExtractHistogram2D.h:59
vtkParallelCoordinatesHistogramRepresentation::SetPreferredNumberOfOutliers
void SetPreferredNumberOfOutliers(int)
Target maximum number of outliers to be drawn, although not guaranteed.
vtkParallelCoordinatesHistogramRepresentation::PlaceHistogramCurveQuads
virtual int PlaceHistogramCurveQuads(vtkPolyData *polyData)
Take the input 2D histogram images and draw one triangle strip that is the curved version of the regu...
vtkParallelCoordinatesHistogramRepresentation::HistogramFilter
vtkSmartPointer< vtkPairwiseExtractHistogram2D > HistogramFilter
Definition: vtkParallelCoordinatesHistogramRepresentation.h:162
vtkParallelCoordinatesHistogramRepresentation::New
static vtkParallelCoordinatesHistogramRepresentation * New()
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkParallelCoordinatesHistogramRepresentation::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses should override this to connect inputs to the internal pipeline as necessary.
vtkParallelCoordinatesHistogramRepresentation::PlaceHistogramLineQuads
virtual int PlaceHistogramLineQuads(vtkPolyData *polyData)
Take the input 2D histogram images and draw one quad for each bin.
vtkParallelCoordinatesHistogramRepresentation::GetHistogramImage
virtual vtkImageData * GetHistogramImage(int idx)
Access the input data object containing the histograms and pull out the image data for the idx'th his...
vtkParallelCoordinatesHistogramRepresentation::OutlierData
vtkSmartPointer< vtkPolyData > OutlierData
Definition: vtkParallelCoordinatesHistogramRepresentation.h:176
vtkParallelCoordinatesHistogramRepresentation::RemoveFromView
virtual bool RemoveFromView(vtkView *view)
vtkParallelCoordinatesHistogramRepresentation::OutlierFilter
vtkSmartPointer< vtkComputeHistogram2DOutliers > OutlierFilter
Definition: vtkParallelCoordinatesHistogramRepresentation.h:175
vtkParallelCoordinatesHistogramRepresentation::ComputeDataProperties
virtual int ComputeDataProperties()
Compute the number of axes and their individual ranges, as well as histograms if requested.
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkLookupTable
map scalar values into colors via a lookup table
Definition: vtkLookupTable.h:75
vtkParallelCoordinatesHistogramRepresentation::SetNumberOfHistogramBins
void SetNumberOfHistogramBins(int, int)
The number of histogram bins on either side of each pair of axes.
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:42
vtkParallelCoordinatesHistogramRepresentation::ShowOutliers
int ShowOutliers
Whether or not to draw outlier lines.
Definition: vtkParallelCoordinatesHistogramRepresentation.h:168
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkParallelCoordinatesHistogramRepresentation::HistogramLookupTable
vtkSmartPointer< vtkLookupTable > HistogramLookupTable
Definition: vtkParallelCoordinatesHistogramRepresentation.h:163
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:43
vtkParallelCoordinatesHistogramRepresentation::ApplyViewTheme
virtual void ApplyViewTheme(vtkViewTheme *theme)
Apply the theme to this view.
vtkParallelCoordinatesHistogramRepresentation
Data representation that takes generic multivariate data and produces a parallel coordinates plot.
Definition: vtkParallelCoordinatesHistogramRepresentation.h:68
vtkParallelCoordinatesHistogramRepresentation::~vtkParallelCoordinatesHistogramRepresentation
virtual ~vtkParallelCoordinatesHistogramRepresentation()
vtkParallelCoordinatesHistogramRepresentation::OutlierMapper
vtkSmartPointer< vtkPolyDataMapper2D > OutlierMapper
Definition: vtkParallelCoordinatesHistogramRepresentation.h:177
vtkParallelCoordinatesHistogramRepresentation::GetOutlierData
virtual vtkTable * GetOutlierData()
get the table containing just the outlier rows from the input table.
vtkParallelCoordinatesHistogramRepresentation::PlaceLines
virtual int PlaceLines(vtkPolyData *polyData, vtkTable *data, vtkIdTypeArray *idsToPlot)
Correctly forwards the superclass call to draw lines to the internal PlaceHistogramLineQuads call.
vtkParallelCoordinatesHistogramRepresentation::SwapAxisPositions
virtual int SwapAxisPositions(int position1, int position2)
Calls superclass swap, and assures that only histograms affected by the swap get recomputed.
vtkParallelCoordinatesHistogramRepresentation::AddToView
virtual bool AddToView(vtkView *view)
Add/remove the props and actors to/from a view.
vtkParallelCoordinatesHistogramRepresentation::SetNumberOfHistogramBins
void SetNumberOfHistogramBins(int *)
vtkParallelCoordinatesHistogramRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkParallelCoordinatesHistogramRepresentation::PlaceCurves
virtual int PlaceCurves(vtkPolyData *polyData, vtkTable *data, vtkIdTypeArray *idsToPlot)
Correctly forwards the superclass call to draw curves to the internal PlaceHistogramLineCurves call.
vtkParallelCoordinatesHistogramRepresentation::PreferredNumberOfOutliers
int PreferredNumberOfOutliers
How many outlier lines to draw, approximately.
Definition: vtkParallelCoordinatesHistogramRepresentation.h:173