VTK
|
Data representation that takes generic multivariate data and produces a parallel coordinates plot. More...
#include <vtkParallelCoordinatesRepresentation.h>
Public Types | |
enum | InputPorts { INPUT_DATA =0, INPUT_TITLES, NUM_INPUT_PORTS } |
typedef vtkRenderedRepresentation | Superclass |
![]() | |
typedef vtkDataRepresentation | Superclass |
![]() | |
typedef vtkPassInputTypeAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkParallelCoordinatesRepresentation * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | ApplyViewTheme (vtkViewTheme *theme) |
virtual const char * | GetHoverText (vtkView *view, int x, int y) |
void | SetPlotTitle (const char *) |
void | ResetAxes () |
int | SetPositionAndSize (double *position, double *size) |
int | GetPositionAndSize (double *position, double *size) |
void | SetAxisTitles (vtkStringArray *) |
void | SetAxisTitles (vtkAlgorithmOutput *) |
virtual int | GetNumberOfAxes () |
virtual int | GetNumberOfSamples () |
void | SetNumberOfAxisLabels (int num) |
virtual int | GetNumberOfAxisLabels () |
virtual int | SwapAxisPositions (int position1, int position2) |
int | SetXCoordinateOfPosition (int position, double xcoord) |
double | GetXCoordinateOfPosition (int axis) |
void | GetXCoordinatesOfPositions (double *coords) |
int | GetPositionNearXCoordinate (double xcoord) |
virtual void | SetUseCurves (int) |
virtual int | GetUseCurves () |
virtual void | UseCurvesOn () |
virtual void | UseCurvesOff () |
virtual void | SetCurveResolution (int) |
virtual int | GetCurveResolution () |
virtual double | GetLineOpacity () |
virtual double | GetFontSize () |
virtual double * | GetLineColor () |
virtual void | GetLineColor (double &, double &, double &) |
virtual void | GetLineColor (double[3]) |
virtual double * | GetAxisColor () |
virtual void | GetAxisColor (double &, double &, double &) |
virtual void | GetAxisColor (double[3]) |
virtual double * | GetAxisLabelColor () |
virtual void | GetAxisLabelColor (double &, double &, double &) |
virtual void | GetAxisLabelColor (double[3]) |
virtual void | SetLineOpacity (double) |
virtual void | SetFontSize (double) |
virtual void | SetLineColor (double, double, double) |
virtual void | SetLineColor (double[3]) |
virtual void | SetAxisColor (double, double, double) |
virtual void | SetAxisColor (double[3]) |
virtual void | SetAxisLabelColor (double, double, double) |
virtual void | SetAxisLabelColor (double[3]) |
virtual void | SetAngleBrushThreshold (double) |
virtual double | GetAngleBrushThreshold () |
virtual void | SetFunctionBrushThreshold (double) |
virtual double | GetFunctionBrushThreshold () |
int | GetRangeAtPosition (int position, double range[2]) |
virtual int | SetRangeAtPosition (int position, double range[2]) |
virtual void | LassoSelect (int brushClass, int brushOperator, vtkPoints *brushPoints) |
virtual void | AngleSelect (int brushClass, int brushOperator, double *p1, double *p2) |
virtual void | FunctionSelect (int brushClass, int brushOperator, double *p1, double *p2, double *q1, double *q2) |
virtual void | RangeSelect (int brushClass, int brushOperator, double *p1, double *p2) |
![]() | |
vtkRenderedRepresentation * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetLabelRenderMode (int) |
virtual int | GetLabelRenderMode () |
![]() | |
vtkDataRepresentation * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | ApplyViewTheme (vtkViewTheme *vtkNotUsed(theme)) |
vtkAlgorithmOutput * | GetInputConnection (int port=0, int index=0) |
vtkAnnotationLink * | GetAnnotationLink () |
void | SetAnnotationLink (vtkAnnotationLink *link) |
void | Select (vtkView *view, vtkSelection *selection) |
void | Select (vtkView *view, vtkSelection *selection, bool extend) |
void | Annotate (vtkView *view, vtkAnnotationLayers *annotations) |
void | Annotate (vtkView *view, vtkAnnotationLayers *annotations, bool extend) |
virtual void | SetSelectable (bool) |
virtual bool | GetSelectable () |
virtual void | SelectableOn () |
virtual void | SelectableOff () |
void | UpdateSelection (vtkSelection *selection) |
void | UpdateSelection (vtkSelection *selection, bool extend) |
void | UpdateAnnotations (vtkAnnotationLayers *annotations) |
void | UpdateAnnotations (vtkAnnotationLayers *annotations, bool extend) |
virtual vtkAlgorithmOutput * | GetInternalAnnotationOutputPort () |
virtual vtkAlgorithmOutput * | GetInternalAnnotationOutputPort (int port) |
virtual vtkAlgorithmOutput * | GetInternalAnnotationOutputPort (int port, int conn) |
virtual vtkAlgorithmOutput * | GetInternalSelectionOutputPort () |
virtual vtkAlgorithmOutput * | GetInternalSelectionOutputPort (int port) |
virtual vtkAlgorithmOutput * | GetInternalSelectionOutputPort (int port, int conn) |
virtual vtkAlgorithmOutput * | GetInternalOutputPort () |
virtual vtkAlgorithmOutput * | GetInternalOutputPort (int port) |
virtual vtkAlgorithmOutput * | GetInternalOutputPort (int port, int conn) |
virtual void | SetSelectionType (int) |
virtual int | GetSelectionType () |
virtual void | SetSelectionArrayNames (vtkStringArray *names) |
virtual vtkStringArray * | GetSelectionArrayNames () |
virtual void | SetSelectionArrayName (const char *name) |
virtual const char * | GetSelectionArrayName () |
Static Public Member Functions | |
static vtkParallelCoordinatesRepresentation * | New () |
static int | IsTypeOf (const char *type) |
static vtkParallelCoordinatesRepresentation * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static vtkRenderedRepresentation * | New () |
static int | IsTypeOf (const char *type) |
static vtkRenderedRepresentation * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static vtkDataRepresentation * | New () |
static int | IsTypeOf (const char *type) |
static vtkDataRepresentation * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkParallelCoordinatesRepresentation () | |
virtual | ~vtkParallelCoordinatesRepresentation () |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
void | UpdateHoverHighlight (vtkView *view, int x, int y) |
int | PlaceAxes () |
virtual int | PlaceSelection (vtkPolyData *polyData, vtkTable *data, vtkSelectionNode *selectionNode) |
virtual int | ComputeDataProperties () |
virtual int | UpdatePlotProperties (vtkStringArray *inputTitles) |
virtual int | ReallocateInternals () |
void | BuildDefaultSCurve (vtkDoubleArray *array, int numValues) |
virtual void | LassoSelectInternal (vtkPoints *brushPoints, vtkIdTypeArray *outIds) |
virtual void | UpdateSelectionActors () |
vtkPolyDataMapper2D * | GetSelectionMapper (int idx) |
int | GetNumberOfSelections () |
virtual char * | GetInternalHoverText () |
virtual void | SetInternalHoverText (const char *) |
virtual bool | AddToView (vtkView *view) |
virtual bool | RemoveFromView (vtkView *view) |
virtual void | PrepareForRendering (vtkRenderView *view) |
virtual int | AllocatePolyData (vtkPolyData *polyData, int numLines, int numPointsPerLine, int numStrips, int numPointsPerStrip, int numQuads, int numPoints, int numCellScalars, int numPointScalars) |
virtual int | PlaceLines (vtkPolyData *polyData, vtkTable *data, vtkIdTypeArray *idsToPlot) |
virtual int | PlaceCurves (vtkPolyData *polyData, vtkTable *data, vtkIdTypeArray *idsToPlot) |
int | ComputePointPosition (double *p) |
int | ComputeLinePosition (double *p1, double *p2) |
virtual void | SelectRows (vtkIdType brushClass, vtkIdType brushOperator, vtkIdTypeArray *rowIds) |
virtual vtkSelection * | ConvertSelection (vtkView *view, vtkSelection *selection) |
virtual void | BuildInverseSelection () |
virtual vtkPolyDataMapper2D * | InitializePlotMapper (vtkPolyData *input, vtkActor2D *actor, bool forceStandard=false) |
![]() | |
vtkRenderedRepresentation () | |
~vtkRenderedRepresentation () | |
vtkUnicodeString | GetHoverText (vtkView *view, vtkProp *prop, vtkIdType cell) |
void | AddPropOnNextRender (vtkProp *p) |
void | RemovePropOnNextRender (vtkProp *p) |
virtual vtkUnicodeString | GetHoverTextInternal (vtkSelection *) |
![]() | |
vtkDataRepresentation () | |
~vtkDataRepresentation () | |
virtual void | ProcessEvents (vtkObject *caller, unsigned long eventId, void *callData) |
virtual bool | AddToView (vtkView *vtkNotUsed(view)) |
virtual bool | RemoveFromView (vtkView *vtkNotUsed(view)) |
virtual vtkAnnotationLayers * | ConvertAnnotations (vtkView *view, vtkAnnotationLayers *annotations) |
vtkTrivialProducer * | GetInternalInput (int port, int conn) |
void | SetInternalInput (int port, int conn, vtkTrivialProducer *producer) |
virtual void | SetAnnotationLinkInternal (vtkAnnotationLink *link) |
Protected Attributes | |
vtkSmartPointer< vtkPolyData > | PlotData |
vtkSmartPointer < vtkPolyDataMapper2D > | PlotMapper |
vtkSmartPointer< vtkActor2D > | PlotActor |
vtkSmartPointer< vtkTextMapper > | PlotTitleMapper |
vtkSmartPointer< vtkActor2D > | PlotTitleActor |
vtkSmartPointer< vtkTextMapper > | FunctionTextMapper |
vtkSmartPointer< vtkActor2D > | FunctionTextActor |
vtkSmartPointer< vtkSelection > | InverseSelection |
vtkSmartPointer < vtkBivariateLinearTableThreshold > | LinearThreshold |
Internals * | I |
int | NumberOfAxes |
int | NumberOfAxisLabels |
int | NumberOfSamples |
double | YMin |
double | YMax |
int | CurveResolution |
int | UseCurves |
double | AngleBrushThreshold |
double | FunctionBrushThreshold |
double | SwapThreshold |
double * | Xs |
double * | Mins |
double * | Maxs |
double * | MinOffsets |
double * | MaxOffsets |
vtkSmartPointer< vtkAxisActor2D > * | Axes |
vtkSmartPointer< vtkTable > | InputArrayTable |
vtkSmartPointer< vtkStringArray > | AxisTitles |
vtkTimeStamp | BuildTime |
double | LineOpacity |
double | FontSize |
double | LineColor [3] |
double | AxisColor [3] |
double | AxisLabelColor [3] |
char * | InternalHoverText |
![]() | |
Internals * | Implementation |
int | LabelRenderMode |
![]() | |
bool | Selectable |
int | SelectionType |
vtkStringArray * | SelectionArrayNames |
Command * | Observer |
vtkAnnotationLink * | AnnotationLinkInternal |
Data representation that takes generic multivariate data and produces a parallel coordinates plot.
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. vtkParallelCoordinatesRepresentation generates this plot when added to a vtkParallelCoordinatesView, which handles interaction and highlighting. Sample polylines can alternatively be represented as s-curves by enabling the UseCurves flag.
There are three selection modes: lasso, angle, and function. Lasso selection picks sample lines that pass through a polyline. Angle selection picks sample lines that have similar slope to a line segment. Function selection picks sample lines that are near a linear function defined on two variables. This function specified by passing two (x,y) variable value pairs.
All primitives are plotted in normalized view coordinates [0,1].
Definition at line 84 of file vtkParallelCoordinatesRepresentation.h.
Definition at line 88 of file vtkParallelCoordinatesRepresentation.h.
Enumerator | |
---|---|
INPUT_DATA | |
INPUT_TITLES | |
NUM_INPUT_PORTS |
Definition at line 200 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
|
protectedvirtual |
|
static |
|
static |
|
virtual |
Reimplemented from vtkRenderedRepresentation.
Reimplemented in vtkParallelCoordinatesHistogramRepresentation.
|
static |
|
protectedvirtual |
Reimplemented from vtkRenderedRepresentation.
Reimplemented in vtkParallelCoordinatesHistogramRepresentation.
vtkParallelCoordinatesRepresentation* vtkParallelCoordinatesRepresentation::NewInstance | ( | ) | const |
void vtkParallelCoordinatesRepresentation::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
Apply the theme to this view. CellColor is used for line coloring and titles. EdgeLabelColor is used for axis color. CellOpacity is used for line opacity.
Reimplemented in vtkParallelCoordinatesHistogramRepresentation.
|
virtual |
Returns the hover text at an x,y location.
int vtkParallelCoordinatesRepresentation::SetPositionAndSize | ( | double * | position, |
double * | size | ||
) |
Change the position of the plot
int vtkParallelCoordinatesRepresentation::GetPositionAndSize | ( | double * | position, |
double * | size | ||
) |
Change the position of the plot
void vtkParallelCoordinatesRepresentation::SetAxisTitles | ( | vtkStringArray * | ) |
Set/Get the axis titles
void vtkParallelCoordinatesRepresentation::SetAxisTitles | ( | vtkAlgorithmOutput * | ) |
Set/Get the axis titles
void vtkParallelCoordinatesRepresentation::SetPlotTitle | ( | const char * | ) |
Set the title for the entire plot
|
virtual |
Get the number of axes in the plot
|
virtual |
Get the number of samples in the plot
void vtkParallelCoordinatesRepresentation::SetNumberOfAxisLabels | ( | int | num | ) |
Set/Get the number of labels to display on each axis
|
virtual |
Set/Get the number of labels to display on each axis
|
virtual |
Move an axis to a particular screen position. Using these methods requires an Update() before they will work properly.
Reimplemented in vtkParallelCoordinatesHistogramRepresentation.
int vtkParallelCoordinatesRepresentation::SetXCoordinateOfPosition | ( | int | position, |
double | xcoord | ||
) |
Move an axis to a particular screen position. Using these methods requires an Update() before they will work properly.
double vtkParallelCoordinatesRepresentation::GetXCoordinateOfPosition | ( | int | axis | ) |
Move an axis to a particular screen position. Using these methods requires an Update() before they will work properly.
void vtkParallelCoordinatesRepresentation::GetXCoordinatesOfPositions | ( | double * | coords | ) |
Move an axis to a particular screen position. Using these methods requires an Update() before they will work properly.
int vtkParallelCoordinatesRepresentation::GetPositionNearXCoordinate | ( | double | xcoord | ) |
Move an axis to a particular screen position. Using these methods requires an Update() before they will work properly.
|
virtual |
Whether or not to display using curves
|
virtual |
Whether or not to display using curves
|
virtual |
Whether or not to display using curves
|
virtual |
Whether or not to display using curves
|
virtual |
Resolution of the curves displayed, enabled by setting UseCurves
|
virtual |
Resolution of the curves displayed, enabled by setting UseCurves
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Access plot properties
|
virtual |
Maximum angle difference (in degrees) of selection using angle/function brushes
|
virtual |
Maximum angle difference (in degrees) of selection using angle/function brushes
|
virtual |
Maximum angle difference (in degrees) of selection using angle/function brushes
|
virtual |
Maximum angle difference (in degrees) of selection using angle/function brushes
int vtkParallelCoordinatesRepresentation::GetRangeAtPosition | ( | int | position, |
double | range[2] | ||
) |
Set/get the value range of the axis at a particular screen position
|
virtual |
Set/get the value range of the axis at a particular screen position
Reimplemented in vtkParallelCoordinatesHistogramRepresentation.
void vtkParallelCoordinatesRepresentation::ResetAxes | ( | ) |
Reset the axes to their default positions and orders
|
virtual |
Do a selection of the lines. See the main description for how to use these functions. RangeSelect is currently stubbed out.
|
virtual |
Do a selection of the lines. See the main description for how to use these functions. RangeSelect is currently stubbed out.
|
virtual |
Do a selection of the lines. See the main description for how to use these functions. RangeSelect is currently stubbed out.
|
virtual |
Do a selection of the lines. See the main description for how to use these functions. RangeSelect is currently stubbed out.
|
protectedvirtual |
|
protectedvirtual |
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 vtkDataRepresentation.
Reimplemented in vtkParallelCoordinatesHistogramRepresentation.
|
protectedvirtual |
Add/remove the props and actors to/from a view
Reimplemented in vtkParallelCoordinatesHistogramRepresentation.
|
protectedvirtual |
Add/remove the props and actors to/from a view
Reimplemented in vtkParallelCoordinatesHistogramRepresentation.
|
protectedvirtual |
Add/remove the props and actors to/from a view
Reimplemented from vtkRenderedRepresentation.
|
protected |
This function is not actually used, but as left as a stub in case it becomes useful at some point.
|
protectedvirtual |
Allocate the cells/points/scalars for a vtkPolyData
|
protected |
Put the axis actors in their correct positions.
|
protectedvirtual |
Place line primitives into a vtkPolyData from the input data. idsToPlot is a list of which rows/samples should be plotted. If NULL, all rows/samples are plotted.
Reimplemented in vtkParallelCoordinatesHistogramRepresentation.
|
protectedvirtual |
Place line primitives into a vtkPolyData from the input data. idsToPlot is a list of which rows/samples should be plotted. If NULL, all rows/samples are plotted.
Reimplemented in vtkParallelCoordinatesHistogramRepresentation.
|
protectedvirtual |
Takes the selection list (assumed to be a vtkIdTypeArray) from a vtkSelectionNode and plots lines/curves into polyData for just those row/sample ids.
Reimplemented in vtkParallelCoordinatesHistogramRepresentation.
|
protectedvirtual |
Compute the number of axes and their individual ranges
Reimplemented in vtkParallelCoordinatesHistogramRepresentation.
|
protectedvirtual |
Set plot actor properties (line thickness, opacity, etc)
Reimplemented in vtkParallelCoordinatesHistogramRepresentation.
|
protectedvirtual |
Delete and reallocate the internals, resetting to default values
|
protected |
Compute which screen position a point belongs to (returns the left position)
|
protected |
Compute which screen position a point belongs to (returns the left position)
|
protectedvirtual |
Select a set of points using the prescribed operator (add, subtract, etc.) and class
|
protectedvirtual |
Select a set of points using the prescribed operator (add, subtract, etc.) and class
Reimplemented from vtkDataRepresentation.
|
protectedvirtual |
Select a set of points using the prescribed operator (add, subtract, etc.) and class
|
protectedvirtual |
Select a set of points using the prescribed operator (add, subtract, etc.) and class
|
protected |
Build an s-curve passing through (0,0) and (1,1) with a specified number of values. This is used as a lookup table when plotting curved primitives.
|
protectedvirtual |
same as public version, but assumes that the brushpoints coming in are all within two neighboring axes.
|
protectedvirtual |
todo
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
Definition at line 301 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 302 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 303 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 304 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 305 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 306 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 307 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 309 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 310 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 312 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 316 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 317 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 318 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 319 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 320 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 322 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 323 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 324 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 325 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 326 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 329 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 330 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 331 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 332 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 333 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 336 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 337 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 338 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 341 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 343 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 344 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 345 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 346 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 347 of file vtkParallelCoordinatesRepresentation.h.
|
protected |
Definition at line 350 of file vtkParallelCoordinatesRepresentation.h.