VTK
|
Data representation that takes generic multivariate data and produces a parallel coordinates plot. This plot optionally can draw a histogram-based plot summary. More...
#include <vtkParallelCoordinatesHistogramRepresentation.h>
Data representation that takes generic multivariate data and produces a parallel coordinates plot. This plot optionally can draw a histogram-based plot summary.
A parallel coordinates plot represents each variable in a multivariate data set as a separate axis. Individual samples of that data set are represented as a polyline that pass through each variable axis at positions that correspond to data values. This class can generate parallel coordinates plots identical to its superclass (vtkParallelCoordinatesRepresentation) and has the same interaction styles.
In addition to the standard parallel coordinates plot, this class also can draw a histogram summary of the parallel coordinates plot. Rather than draw every row in an input data set, first it computes a 2D histogram for all neighboring variable axes, then it draws bar (thickness corresponds to bin size) for each bin the histogram with opacity weighted by the number of rows contained in the bin. The result is essentially a density map.
Because this emphasizes dense regions over sparse outliers, this class also uses a vtkComputeHistogram2DOutliers instance to identify outlier table rows and draws those as standard parallel coordinates lines.
Definition at line 66 of file vtkParallelCoordinatesHistogramRepresentation.h.
typedef vtkParallelCoordinatesRepresentation vtkParallelCoordinatesHistogramRepresentation::Superclass |
Reimplemented from vtkParallelCoordinatesRepresentation.
Definition at line 70 of file vtkParallelCoordinatesHistogramRepresentation.h.
vtkParallelCoordinatesHistogramRepresentation::vtkParallelCoordinatesHistogramRepresentation | ( | ) | [protected] |
virtual vtkParallelCoordinatesHistogramRepresentation::~vtkParallelCoordinatesHistogramRepresentation | ( | ) | [protected, virtual] |
static vtkParallelCoordinatesHistogramRepresentation* vtkParallelCoordinatesHistogramRepresentation::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkParallelCoordinatesRepresentation.
static int vtkParallelCoordinatesHistogramRepresentation::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkParallelCoordinatesRepresentation.
virtual int vtkParallelCoordinatesHistogramRepresentation::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkParallelCoordinatesRepresentation.
static vtkParallelCoordinatesHistogramRepresentation* vtkParallelCoordinatesHistogramRepresentation::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkParallelCoordinatesRepresentation.
virtual vtkObjectBase* vtkParallelCoordinatesHistogramRepresentation::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkParallelCoordinatesRepresentation.
vtkParallelCoordinatesHistogramRepresentation* vtkParallelCoordinatesHistogramRepresentation::NewInstance | ( | ) | const |
Reimplemented from vtkParallelCoordinatesRepresentation.
void vtkParallelCoordinatesHistogramRepresentation::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkParallelCoordinatesRepresentation.
virtual void vtkParallelCoordinatesHistogramRepresentation::ApplyViewTheme | ( | vtkViewTheme * | theme | ) | [virtual] |
Apply the theme to this view.
Reimplemented from vtkParallelCoordinatesRepresentation.
virtual void vtkParallelCoordinatesHistogramRepresentation::SetUseHistograms | ( | int | ) | [virtual] |
Whether to use the histogram rendering mode or the superclass's line rendering mode
virtual int vtkParallelCoordinatesHistogramRepresentation::GetUseHistograms | ( | ) | [virtual] |
Whether to use the histogram rendering mode or the superclass's line rendering mode
virtual void vtkParallelCoordinatesHistogramRepresentation::UseHistogramsOn | ( | ) | [virtual] |
Whether to use the histogram rendering mode or the superclass's line rendering mode
virtual void vtkParallelCoordinatesHistogramRepresentation::UseHistogramsOff | ( | ) | [virtual] |
Whether to use the histogram rendering mode or the superclass's line rendering mode
virtual void vtkParallelCoordinatesHistogramRepresentation::SetShowOutliers | ( | int | ) | [virtual] |
Whether to compute and show outlier lines
virtual int vtkParallelCoordinatesHistogramRepresentation::GetShowOutliers | ( | ) | [virtual] |
Whether to compute and show outlier lines
virtual void vtkParallelCoordinatesHistogramRepresentation::ShowOutliersOn | ( | ) | [virtual] |
Whether to compute and show outlier lines
virtual void vtkParallelCoordinatesHistogramRepresentation::ShowOutliersOff | ( | ) | [virtual] |
Whether to compute and show outlier lines
virtual void vtkParallelCoordinatesHistogramRepresentation::SetHistogramLookupTableRange | ( | double | , |
double | |||
) | [virtual] |
Control over the range of the lookup table used to draw the histogram quads.
Control over the range of the lookup table used to draw the histogram quads.
virtual double* vtkParallelCoordinatesHistogramRepresentation::GetHistogramLookupTableRange | ( | ) | [virtual] |
Control over the range of the lookup table used to draw the histogram quads.
virtual void vtkParallelCoordinatesHistogramRepresentation::GetHistogramLookupTableRange | ( | double & | , |
double & | |||
) | [virtual] |
Control over the range of the lookup table used to draw the histogram quads.
virtual void vtkParallelCoordinatesHistogramRepresentation::GetHistogramLookupTableRange | ( | double | [2] | ) | [virtual] |
Control over the range of the lookup table used to draw the histogram quads.
The number of histogram bins on either side of each pair of axes.
The number of histogram bins on either side of each pair of axes.
virtual int* vtkParallelCoordinatesHistogramRepresentation::GetNumberOfHistogramBins | ( | ) | [virtual] |
The number of histogram bins on either side of each pair of axes.
virtual void vtkParallelCoordinatesHistogramRepresentation::GetNumberOfHistogramBins | ( | int & | , |
int & | |||
) | [virtual] |
The number of histogram bins on either side of each pair of axes.
virtual void vtkParallelCoordinatesHistogramRepresentation::GetNumberOfHistogramBins | ( | int | [2] | ) | [virtual] |
The number of histogram bins on either side of each pair of axes.
Target maximum number of outliers to be drawn, although not guaranteed.
virtual int vtkParallelCoordinatesHistogramRepresentation::GetPreferredNumberOfOutliers | ( | ) | [virtual] |
Target maximum number of outliers to be drawn, although not guaranteed.
virtual int vtkParallelCoordinatesHistogramRepresentation::SwapAxisPositions | ( | int | position1, |
int | position2 | ||
) | [virtual] |
Calls superclass swap, and assures that only histograms affected by the swap get recomputed.
Reimplemented from vtkParallelCoordinatesRepresentation.
virtual int vtkParallelCoordinatesHistogramRepresentation::SetRangeAtPosition | ( | int | position, |
double | range[2] | ||
) | [virtual] |
Calls the superclass method, and assures that only the two histograms affect by this call get recomputed.
Reimplemented from vtkParallelCoordinatesRepresentation.
virtual int vtkParallelCoordinatesHistogramRepresentation::RequestData | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [protected, virtual] |
Subclasses should override this to connect inputs to the internal pipeline as necessary. Since most representations are "meta-filters" (i.e. filters containing other filters), you should create shallow copies of your input before connecting to the internal pipeline. The convenience method GetInternalOutputPort will create a cached shallow copy of a specified input for you. The related helper functions GetInternalAnnotationOutputPort, GetInternalSelectionOutputPort should be used to obtain a selection or annotation port whose selections are localized for a particular input data object.
Reimplemented from vtkParallelCoordinatesRepresentation.
virtual bool vtkParallelCoordinatesHistogramRepresentation::AddToView | ( | vtkView * | view | ) | [protected, virtual] |
Add/remove the props and actors to/from a view
Reimplemented from vtkParallelCoordinatesRepresentation.
virtual bool vtkParallelCoordinatesHistogramRepresentation::RemoveFromView | ( | vtkView * | view | ) | [protected, virtual] |
Add/remove the props and actors to/from a view
Reimplemented from vtkParallelCoordinatesRepresentation.
virtual int vtkParallelCoordinatesHistogramRepresentation::PlaceLines | ( | vtkPolyData * | polyData, |
vtkTable * | data, | ||
vtkIdTypeArray * | idsToPlot | ||
) | [protected, virtual] |
Correctly forwards the superclass call to draw lines to the internal PlaceHistogramLineQuads call.
Reimplemented from vtkParallelCoordinatesRepresentation.
virtual int vtkParallelCoordinatesHistogramRepresentation::PlaceCurves | ( | vtkPolyData * | polyData, |
vtkTable * | data, | ||
vtkIdTypeArray * | idsToPlot | ||
) | [protected, virtual] |
Correctly forwards the superclass call to draw curves to the internal PlaceHistogramLineCurves call.
Reimplemented from vtkParallelCoordinatesRepresentation.
virtual int vtkParallelCoordinatesHistogramRepresentation::PlaceSelection | ( | vtkPolyData * | polyData, |
vtkTable * | data, | ||
vtkSelectionNode * | selectionNode | ||
) | [protected, virtual] |
Draw a selection node referencing the row ids of a table into a poly data object.
Reimplemented from vtkParallelCoordinatesRepresentation.
virtual int vtkParallelCoordinatesHistogramRepresentation::PlaceHistogramLineQuads | ( | vtkPolyData * | polyData | ) | [protected, virtual] |
Take the input 2D histogram images and draw one quad for each bin
virtual int vtkParallelCoordinatesHistogramRepresentation::PlaceHistogramCurveQuads | ( | vtkPolyData * | polyData | ) | [protected, virtual] |
Take the input 2D histogram images and draw one triangle strip that is the curved version of the regular quad drawn via PlaceHistogramLineQuads
virtual int vtkParallelCoordinatesHistogramRepresentation::ComputeDataProperties | ( | ) | [protected, virtual] |
Compute the number of axes and their individual ranges, as well as histograms if requested.
Reimplemented from vtkParallelCoordinatesRepresentation.
virtual int vtkParallelCoordinatesHistogramRepresentation::UpdatePlotProperties | ( | vtkStringArray * | ) | [protected, virtual] |
Compute the number of axes and their individual ranges, as well as histograms if requested.
Reimplemented from vtkParallelCoordinatesRepresentation.
virtual vtkImageData* vtkParallelCoordinatesHistogramRepresentation::GetHistogramImage | ( | int | idx | ) | [protected, virtual] |
Access the input data object containing the histograms and pull out the image data for the idx'th histogram.
virtual vtkTable* vtkParallelCoordinatesHistogramRepresentation::GetOutlierData | ( | ) | [protected, virtual] |
get the table containing just the outlier rows from the input table.
Flag deciding if histograms will be drawn.
Definition at line 136 of file vtkParallelCoordinatesHistogramRepresentation.h.
The range applied to the lookup table used to draw histogram quads
Definition at line 139 of file vtkParallelCoordinatesHistogramRepresentation.h.
How many bins are used during the 2D histogram computation
Definition at line 142 of file vtkParallelCoordinatesHistogramRepresentation.h.
vtkSmartPointer<vtkPairwiseExtractHistogram2D> vtkParallelCoordinatesHistogramRepresentation::HistogramFilter [protected] |
Definition at line 145 of file vtkParallelCoordinatesHistogramRepresentation.h.
vtkSmartPointer<vtkLookupTable> vtkParallelCoordinatesHistogramRepresentation::HistogramLookupTable [protected] |
Definition at line 146 of file vtkParallelCoordinatesHistogramRepresentation.h.
Whether or not to draw outlier lines
Definition at line 150 of file vtkParallelCoordinatesHistogramRepresentation.h.
How many outlier lines to draw, approximately.
Definition at line 153 of file vtkParallelCoordinatesHistogramRepresentation.h.
vtkSmartPointer<vtkComputeHistogram2DOutliers> vtkParallelCoordinatesHistogramRepresentation::OutlierFilter [protected] |
Definition at line 156 of file vtkParallelCoordinatesHistogramRepresentation.h.
Definition at line 157 of file vtkParallelCoordinatesHistogramRepresentation.h.
vtkSmartPointer<vtkPolyDataMapper2D> vtkParallelCoordinatesHistogramRepresentation::OutlierMapper [protected] |
Definition at line 158 of file vtkParallelCoordinatesHistogramRepresentation.h.
Definition at line 159 of file vtkParallelCoordinatesHistogramRepresentation.h.