vtkParallelCoordinatesHistogramRepresentation Class Reference

#include <vtkParallelCoordinatesHistogramRepresentation.h>

Inheritance diagram for vtkParallelCoordinatesHistogramRepresentation:

Inheritance graph
[legend]
Collaboration diagram for vtkParallelCoordinatesHistogramRepresentation:

Collaboration graph
[legend]

List of all members.


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 65 of file vtkParallelCoordinatesHistogramRepresentation.h.

virtual vtkTableGetOutlierData ()

Public Types

typedef
vtkParallelCoordinatesRepresentation 
Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
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 double * GetHistogramLookupTableRange ()
virtual void GetHistogramLookupTableRange (double &, double &)
virtual void GetHistogramLookupTableRange (double[2])
void SetNumberOfHistogramBins (int, int)
void SetNumberOfHistogramBins (int *)
virtual int * GetNumberOfHistogramBins ()
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 (vtkObject *o)

Protected Member Functions

 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

Member Typedef Documentation


Constructor & Destructor Documentation

vtkParallelCoordinatesHistogramRepresentation::vtkParallelCoordinatesHistogramRepresentation (  )  [protected]

virtual vtkParallelCoordinatesHistogramRepresentation::~vtkParallelCoordinatesHistogramRepresentation (  )  [protected, virtual]


Member Function Documentation

static vtkParallelCoordinatesHistogramRepresentation* vtkParallelCoordinatesHistogramRepresentation::New (  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkParallelCoordinatesRepresentation.

virtual const char* vtkParallelCoordinatesHistogramRepresentation::GetClassName (  )  [virtual]

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 ( vtkObject o  )  [static]

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.

void vtkParallelCoordinatesHistogramRepresentation::SetHistogramLookupTableRange ( double  [2]  ) 

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.

void vtkParallelCoordinatesHistogramRepresentation::SetNumberOfHistogramBins ( int  ,
int   
)

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

void vtkParallelCoordinatesHistogramRepresentation::SetNumberOfHistogramBins ( int *   ) 

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.

void vtkParallelCoordinatesHistogramRepresentation::SetPreferredNumberOfOutliers ( int   ) 

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.


Member Data Documentation

Flag deciding if histograms will be drawn.

Definition at line 135 of file vtkParallelCoordinatesHistogramRepresentation.h.

The range applied to the lookup table used to draw histogram quads

Definition at line 138 of file vtkParallelCoordinatesHistogramRepresentation.h.

How many bins are used during the 2D histogram computation

Definition at line 141 of file vtkParallelCoordinatesHistogramRepresentation.h.

Whether or not to draw outlier lines

Definition at line 149 of file vtkParallelCoordinatesHistogramRepresentation.h.

How many outlier lines to draw, approximately.

Definition at line 152 of file vtkParallelCoordinatesHistogramRepresentation.h.


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

Generated on Wed Aug 24 11:52:47 2011 for VTK by  doxygen 1.5.6