VTK  9.0.1
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 
59 #include "vtkViewsInfovisModule.h" // For export macro
60 
65 class vtkLookupTable;
66 
69 {
70 public:
73  void PrintSelf(ostream& os, vtkIndent indent) override;
74 
78  void ApplyViewTheme(vtkViewTheme* theme) override;
79 
81 
84  virtual void SetUseHistograms(vtkTypeBool);
85  vtkGetMacro(UseHistograms, vtkTypeBool);
86  vtkBooleanMacro(UseHistograms, vtkTypeBool);
88 
90 
93  virtual void SetShowOutliers(vtkTypeBool);
94  vtkGetMacro(ShowOutliers, vtkTypeBool);
95  vtkBooleanMacro(ShowOutliers, vtkTypeBool);
97 
99 
102  vtkSetVector2Macro(HistogramLookupTableRange, double);
103  vtkGetVector2Macro(HistogramLookupTableRange, double);
105 
107 
110  void SetNumberOfHistogramBins(int, int);
111  void SetNumberOfHistogramBins(int*);
112  vtkGetVector2Macro(NumberOfHistogramBins, int);
114 
116 
119  void SetPreferredNumberOfOutliers(int);
120  vtkGetMacro(PreferredNumberOfOutliers, int);
122 
127  int SwapAxisPositions(int position1, int position2) override;
128 
133  int SetRangeAtPosition(int position, double range[2]) override;
134 
135 protected:
138 
140 
141  bool AddToView(vtkView* view) override;
142 
143  bool RemoveFromView(vtkView* view) override;
144 
149 
153  double HistogramLookupTableRange[2];
154 
158  int NumberOfHistogramBins[2];
159 
162 
167 
172 
177 
182  int PlaceLines(vtkPolyData* polyData, vtkTable* data, vtkIdTypeArray* idsToPlot) override;
183 
188  int PlaceCurves(vtkPolyData* polyData, vtkTable* data, vtkIdTypeArray* idsToPlot) override;
189 
193  int PlaceSelection(
194  vtkPolyData* polyData, vtkTable* data, vtkSelectionNode* selectionNode) override;
195 
199  virtual int PlaceHistogramLineQuads(vtkPolyData* polyData);
200 
205  virtual int PlaceHistogramCurveQuads(vtkPolyData* polyData);
206 
208 
212  int ComputeDataProperties() override;
213  int UpdatePlotProperties(vtkStringArray*) override;
215 
220  virtual vtkImageData* GetHistogramImage(int idx);
221 
225  virtual vtkTable* GetOutlierData();
226 
227 private:
230  void operator=(const vtkParallelCoordinatesHistogramRepresentation&) = delete;
231 };
232 
233 #endif
vtkParallelCoordinatesRepresentation::AddToView
bool AddToView(vtkView *view) override
Add/remove the props and actors to/from a view.
vtkParallelCoordinatesRepresentation
Data representation that takes generic multivariate data and produces a parallel coordinates plot.
Definition: vtkParallelCoordinatesRepresentation.h:85
vtkSelectionNode
A node in a selection tree. Used to store selection results.
Definition: vtkSelectionNode.h:61
vtkParallelCoordinatesHistogramRepresentation::OutlierActor
vtkSmartPointer< vtkActor2D > OutlierActor
Definition: vtkParallelCoordinatesHistogramRepresentation.h:176
vtkComputeHistogram2DOutliers
compute the outliers in a set of 2D histograms and extract the corresponding row data.
Definition: vtkComputeHistogram2DOutliers.h:62
vtkParallelCoordinatesHistogramRepresentation::UseHistograms
vtkTypeBool UseHistograms
Flag deciding if histograms will be drawn.
Definition: vtkParallelCoordinatesHistogramRepresentation.h:148
vtkX3D::data
@ data
Definition: vtkX3D.h:321
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
vtkPairwiseExtractHistogram2D
compute a 2D histogram between all adjacent columns of an input vtkTable.
Definition: vtkPairwiseExtractHistogram2D.h:57
vtkX3D::range
@ range
Definition: vtkX3D.h:244
vtkSmartPointer< vtkPairwiseExtractHistogram2D >
vtkParallelCoordinatesRepresentation::SwapAxisPositions
virtual int SwapAxisPositions(int position1, int position2)
Move an axis to a particular screen position.
vtkParallelCoordinatesRepresentation::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses should override this to connect inputs to the internal pipeline as necessary.
vtkParallelCoordinatesRepresentation.h
vtkView
The superclass for all views.
Definition: vtkView.h:63
vtkParallelCoordinatesRepresentation::PlaceCurves
virtual int PlaceCurves(vtkPolyData *polyData, vtkTable *data, vtkIdTypeArray *idsToPlot)
vtkViewTheme
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:42
vtkX3D::position
@ position
Definition: vtkX3D.h:267
vtkParallelCoordinatesHistogramRepresentation::ShowOutliers
vtkTypeBool ShowOutliers
Whether or not to draw outlier lines.
Definition: vtkParallelCoordinatesHistogramRepresentation.h:166
vtkExtractHistogram2D
compute a 2D histogram between two columns of an input vtkTable.
Definition: vtkExtractHistogram2D.h:58
vtkParallelCoordinatesRepresentation::New
static vtkParallelCoordinatesRepresentation * New()
vtkParallelCoordinatesHistogramRepresentation::HistogramFilter
vtkSmartPointer< vtkPairwiseExtractHistogram2D > HistogramFilter
Definition: vtkParallelCoordinatesHistogramRepresentation.h:160
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:41
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkParallelCoordinatesRepresentation::ComputeDataProperties
virtual int ComputeDataProperties()
Compute the number of axes and their individual ranges.
vtkParallelCoordinatesRepresentation::UpdatePlotProperties
virtual int UpdatePlotProperties(vtkStringArray *inputTitles)
Set plot actor properties (line thickness, opacity, etc)
vtkParallelCoordinatesHistogramRepresentation::OutlierData
vtkSmartPointer< vtkPolyData > OutlierData
Definition: vtkParallelCoordinatesHistogramRepresentation.h:174
vtkParallelCoordinatesHistogramRepresentation::OutlierFilter
vtkSmartPointer< vtkComputeHistogram2DOutliers > OutlierFilter
Definition: vtkParallelCoordinatesHistogramRepresentation.h:173
vtkParallelCoordinatesRepresentation::ApplyViewTheme
void ApplyViewTheme(vtkViewTheme *theme) override
Apply the theme to this view.
vtkParallelCoordinatesRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkLookupTable
map scalar values into colors via a lookup table
Definition: vtkLookupTable.h:68
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:35
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkParallelCoordinatesRepresentation::SetRangeAtPosition
virtual int SetRangeAtPosition(int position, double range[2])
vtkParallelCoordinatesHistogramRepresentation::HistogramLookupTable
vtkSmartPointer< vtkLookupTable > HistogramLookupTable
Definition: vtkParallelCoordinatesHistogramRepresentation.h:161
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:36
vtkParallelCoordinatesRepresentation::PlaceSelection
virtual int PlaceSelection(vtkPolyData *polyData, vtkTable *data, vtkSelectionNode *selectionNode)
Takes the selection list (assumed to be a vtkIdTypeArray) from a vtkSelectionNode and plots lines/cur...
vtkParallelCoordinatesHistogramRepresentation
Data representation that takes generic multivariate data and produces a parallel coordinates plot....
Definition: vtkParallelCoordinatesHistogramRepresentation.h:67
vtkParallelCoordinatesRepresentation::PlaceLines
virtual int PlaceLines(vtkPolyData *polyData, vtkTable *data, vtkIdTypeArray *idsToPlot)
Place line primitives into a vtkPolyData from the input data.
vtkParallelCoordinatesHistogramRepresentation::OutlierMapper
vtkSmartPointer< vtkPolyDataMapper2D > OutlierMapper
Definition: vtkParallelCoordinatesHistogramRepresentation.h:175
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkParallelCoordinatesHistogramRepresentation::PreferredNumberOfOutliers
int PreferredNumberOfOutliers
How many outlier lines to draw, approximately.
Definition: vtkParallelCoordinatesHistogramRepresentation.h:171
vtkParallelCoordinatesRepresentation::RemoveFromView
bool RemoveFromView(vtkView *view) override