VTK  9.1.0
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
65class vtkLookupTable;
66
69{
70public:
73 void PrintSelf(ostream& os, vtkIndent indent) override;
74
78 void ApplyViewTheme(vtkViewTheme* theme) override;
79
81
85 vtkGetMacro(UseHistograms, vtkTypeBool);
86 vtkBooleanMacro(UseHistograms, vtkTypeBool);
88
90
94 vtkGetMacro(ShowOutliers, vtkTypeBool);
95 vtkBooleanMacro(ShowOutliers, vtkTypeBool);
97
99
102 vtkSetVector2Macro(HistogramLookupTableRange, double);
103 vtkGetVector2Macro(HistogramLookupTableRange, double);
105
107
112 vtkGetVector2Macro(NumberOfHistogramBins, int);
114
116
120 vtkGetMacro(PreferredNumberOfOutliers, int);
122
127 int SwapAxisPositions(int position1, int position2) override;
128
133 int SetRangeAtPosition(int position, double range[2]) override;
134
135protected:
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
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;
215
221
226
227private:
230 void operator=(const vtkParallelCoordinatesHistogramRepresentation&) = delete;
231};
232
233#endif
compute the outliers in a set of 2D histograms and extract the corresponding row data.
compute a 2D histogram between two columns of an input vtkTable.
dynamic, self-adjusting array of vtkIdType
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table
compute a 2D histogram between all adjacent columns of an input vtkTable.
Data representation that takes generic multivariate data and produces a parallel coordinates plot.
int PlaceCurves(vtkPolyData *polyData, vtkTable *data, vtkIdTypeArray *idsToPlot) override
Correctly forwards the superclass call to draw curves to the internal PlaceHistogramLineCurves call.
vtkTypeBool UseHistograms
Flag deciding if histograms will be drawn.
int PreferredNumberOfOutliers
How many outlier lines to draw, approximately.
vtkSmartPointer< vtkComputeHistogram2DOutliers > OutlierFilter
void SetNumberOfHistogramBins(int *)
The number of histogram bins on either side of each pair of axes.
int ComputeDataProperties() override
Compute the number of axes and their individual ranges, as well as histograms if requested.
void ApplyViewTheme(vtkViewTheme *theme) override
Apply the theme to this view.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int SwapAxisPositions(int position1, int position2) override
Calls superclass swap, and assures that only histograms affected by the swap get recomputed.
bool AddToView(vtkView *view) override
int SetRangeAtPosition(int position, double range[2]) override
Calls the superclass method, and assures that only the two histograms affect by this call get recompu...
void SetPreferredNumberOfOutliers(int)
Target maximum number of outliers to be drawn, although not guaranteed.
int PlaceLines(vtkPolyData *polyData, vtkTable *data, vtkIdTypeArray *idsToPlot) override
Correctly forwards the superclass call to draw lines to the internal PlaceHistogramLineQuads call.
bool RemoveFromView(vtkView *view) override
int PlaceSelection(vtkPolyData *polyData, vtkTable *data, vtkSelectionNode *selectionNode) override
Draw a selection node referencing the row ids of a table into a poly data object.
static vtkParallelCoordinatesHistogramRepresentation * New()
int UpdatePlotProperties(vtkStringArray *) override
Compute the number of axes and their individual ranges, as well as histograms if requested.
virtual vtkTable * GetOutlierData()
get the table containing just the outlier rows from the input table.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses should override this to connect inputs to the internal pipeline as necessary.
void SetNumberOfHistogramBins(int, int)
The number of histogram bins on either side of each pair of axes.
vtkSmartPointer< vtkPairwiseExtractHistogram2D > HistogramFilter
virtual int PlaceHistogramLineQuads(vtkPolyData *polyData)
Take the input 2D histogram images and draw one quad for each bin.
virtual vtkImageData * GetHistogramImage(int idx)
Access the input data object containing the histograms and pull out the image data for the idx'th his...
virtual void SetUseHistograms(vtkTypeBool)
Whether to use the histogram rendering mode or the superclass's line rendering mode.
virtual void SetShowOutliers(vtkTypeBool)
Whether to compute and show outlier lines.
virtual int PlaceHistogramCurveQuads(vtkPolyData *polyData)
Take the input 2D histogram images and draw one triangle strip that is the curved version of the regu...
Data representation that takes generic multivariate data and produces a parallel coordinates plot.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
a node in a vtkSelection the defines the selection criteria.
Hold a reference to a vtkObjectBase instance.
a vtkAbstractArray subclass for strings
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:172
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:132
The superclass for all views.
Definition: vtkView.h:64
int vtkTypeBool
Definition: vtkABI.h:69