VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkParallelCoordinatesHistogramRepresentation Class Reference

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>

Inheritance diagram for vtkParallelCoordinatesHistogramRepresentation:
Inheritance graph
[legend]
Collaboration diagram for vtkParallelCoordinatesHistogramRepresentation:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
vtkParallelCoordinatesRepresentation 
Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkParallelCoordinatesHistogramRepresentationNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void ApplyViewTheme (vtkViewTheme *theme)
virtual int SwapAxisPositions (int position1, int position2)
virtual int SetRangeAtPosition (int position, double range[2])
virtual void SetUseHistograms (int)
virtual int GetUseHistograms ()
virtual void UseHistogramsOn ()
virtual void UseHistogramsOff ()
virtual void SetShowOutliers (int)
virtual int GetShowOutliers ()
virtual void ShowOutliersOn ()
virtual void ShowOutliersOff ()
virtual void SetHistogramLookupTableRange (double, double)
void SetHistogramLookupTableRange (double[2])
virtual doubleGetHistogramLookupTableRange ()
virtual void GetHistogramLookupTableRange (double &, double &)
virtual void GetHistogramLookupTableRange (double[2])
void SetNumberOfHistogramBins (int, int)
void SetNumberOfHistogramBins (int *)
virtual intGetNumberOfHistogramBins ()
virtual void GetNumberOfHistogramBins (int &, int &)
virtual void GetNumberOfHistogramBins (int[2])
void SetPreferredNumberOfOutliers (int)
virtual int GetPreferredNumberOfOutliers ()

Static Public Member Functions

static
vtkParallelCoordinatesHistogramRepresentation
New ()
static int IsTypeOf (const char *type)
static
vtkParallelCoordinatesHistogramRepresentation
SafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkParallelCoordinatesHistogramRepresentation ()
virtual ~vtkParallelCoordinatesHistogramRepresentation ()
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual bool AddToView (vtkView *view)
virtual bool RemoveFromView (vtkView *view)
virtual int PlaceLines (vtkPolyData *polyData, vtkTable *data, vtkIdTypeArray *idsToPlot)
virtual int PlaceCurves (vtkPolyData *polyData, vtkTable *data, vtkIdTypeArray *idsToPlot)
virtual int PlaceSelection (vtkPolyData *polyData, vtkTable *data, vtkSelectionNode *selectionNode)
virtual int PlaceHistogramLineQuads (vtkPolyData *polyData)
virtual int PlaceHistogramCurveQuads (vtkPolyData *polyData)
virtual vtkImageDataGetHistogramImage (int idx)
virtual int ComputeDataProperties ()
virtual int UpdatePlotProperties (vtkStringArray *)

Protected Attributes

int UseHistograms
double HistogramLookupTableRange [2]
int NumberOfHistogramBins [2]
vtkSmartPointer
< vtkPairwiseExtractHistogram2D
HistogramFilter
vtkSmartPointer< vtkLookupTableHistogramLookupTable
int ShowOutliers
int PreferredNumberOfOutliers
vtkSmartPointer
< vtkComputeHistogram2DOutliers
OutlierFilter
vtkSmartPointer< vtkPolyDataOutlierData
vtkSmartPointer
< vtkPolyDataMapper2D
OutlierMapper
vtkSmartPointer< vtkActor2DOutlierActor
virtual vtkTableGetOutlierData ()

Detailed Description

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.

See also:
vtkParallelCoordinatesView vtkParallelCoordinatesRepresentation vtkExtractHistogram2D vtkComputeHistogram2DOutliers
Thanks:
Developed by David Feng at Sandia National Laboratories

Definition at line 66 of file vtkParallelCoordinatesHistogramRepresentation.h.


Member Typedef Documentation


Constructor & Destructor Documentation


Member Function Documentation

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.

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.

Apply the theme to this view.

Reimplemented from vtkParallelCoordinatesRepresentation.

Whether to use the histogram rendering mode or the superclass's line rendering mode

Whether to use the histogram rendering mode or the superclass's line rendering mode

Whether to use the histogram rendering mode or the superclass's line rendering mode

Whether to use the histogram rendering mode or the superclass's line rendering mode

Whether to compute and show outlier lines

Whether to compute and show outlier lines

Whether to compute and show outlier lines

Whether to compute and show outlier lines

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.

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.

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.

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.

The number of histogram bins on either side of each pair of axes.

Target maximum number of outliers to be drawn, although not guaranteed.

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.

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.

Take the input 2D histogram images and draw one quad for each bin

Take the input 2D histogram images and draw one triangle strip that is the curved version of the regular quad drawn via PlaceHistogramLineQuads

Compute the number of axes and their individual ranges, as well as histograms if requested.

Reimplemented from vtkParallelCoordinatesRepresentation.

Compute the number of axes and their individual ranges, as well as histograms if requested.

Reimplemented from vtkParallelCoordinatesRepresentation.

Access the input data object containing the histograms and pull out the image data for the idx'th histogram.

get the table containing just the outlier rows from the input table.


Member Data Documentation

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.

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.


The documentation for this class was generated from the following file: