vtkParallelCoordinatesView Class Reference

#include <vtkParallelCoordinatesView.h>

Inheritance diagram for vtkParallelCoordinatesView:

Inheritance graph
[legend]
Collaboration diagram for vtkParallelCoordinatesView:

Collaboration graph
[legend]

List of all members.


Detailed Description

view to be used with vtkParallelCoordinatesRepresentation

This class manages interaction with the vtkParallelCoordinatesRepresentation. There are two inspection modes: axis manipulation and line selection. In axis manipulation mode, PC axes can be dragged and reordered with the LMB, axis ranges can be increased/decreased by dragging up/down with the LMB, and RMB controls zoom and pan.

In line selection mode, there are three subclasses of selections: lasso, angle, and function selection. Lasso selection lets the user brush a line and select all PC lines that pass nearby. Angle selection lets the user draw a representative line between axes and select all lines that have similar orientation. Function selection lets the user draw two representative lines between a pair of axes and select all lines that match the linear interpolation of those lines.

There are several self-explanatory operators for combining selections: ADD, SUBTRACT REPLACE, and INTERSECT.

Definition at line 52 of file vtkParallelCoordinatesView.h.


Public Types

enum  {
  VTK_BRUSH_LASSO = 0, VTK_BRUSH_ANGLE, VTK_BRUSH_FUNCTION, VTK_BRUSH_AXISTHRESHOLD,
  VTK_BRUSH_MODECOUNT
}
enum  {
  VTK_BRUSHOPERATOR_ADD = 0, VTK_BRUSHOPERATOR_SUBTRACT, VTK_BRUSHOPERATOR_INTERSECT, VTK_BRUSHOPERATOR_REPLACE,
  VTK_BRUSHOPERATOR_MODECOUNT
}
enum  { VTK_INSPECT_MANIPULATE_AXES = 0, VTK_INSPECT_SELECT_DATA, VTK_INSPECT_MODECOUNT }
typedef vtkRenderView Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void SetBrushMode (int)
void SetBrushModeToLasso ()
void SetBrushModeToAngle ()
void SetBrushModeToFunction ()
void SetBrushModeToAxisThreshold ()
virtual int GetBrushMode ()
void SetBrushOperator (int)
void SetBrushOperatorToAdd ()
void SetBrushOperatorToSubtract ()
void SetBrushOperatorToIntersect ()
void SetBrushOperatorToReplace ()
virtual int GetBrushOperator ()
void SetInspectMode (int)
void SetInspectModeToManipulateAxes ()
void SetInpsectModeToSelectData ()
virtual int GetInspectMode ()
void SetMaximumNumberOfBrushPoints (int)
virtual int GetMaximumNumberOfBrushPoints ()
virtual void SetCurrentBrushClass (int)
virtual int GetCurrentBrushClass ()
virtual void ApplyViewTheme (vtkViewTheme *theme)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkParallelCoordinatesViewSafeDownCast (vtkObject *o)
static vtkParallelCoordinatesViewNew ()

Protected Types

enum  { VTK_HIGHLIGHT_CENTER = 0, VTK_HIGHLIGHT_MIN, VTK_HIGHLIGHT_MAX }

Protected Member Functions

 vtkParallelCoordinatesView ()
virtual ~vtkParallelCoordinatesView ()
virtual void ProcessEvents (vtkObject *caller, unsigned long event, void *callData)
virtual vtkDataRepresentationCreateDefaultRepresentation (vtkAlgorithmOutput *conn)
void PrepareForRendering ()
int SetAxisHighlightPosition (vtkParallelCoordinatesRepresentation *rep, int position)
int SetAxisHighlightPosition (vtkParallelCoordinatesRepresentation *rep, double position)
int AddLassoBrushPoint (double *p)
int SetBrushLine (int line, double *p1, double *p2)
void GetBrushLine (int line, vtkIdType &npts, vtkIdType *&ptids)
int SetAngleBrushLine (double *p1, double *p2)
int SetFunctionBrushLine1 (double *p1, double *p2)
int SetFunctionBrushLine2 (double *p1, double *p2)
void ClearBrushPoints ()
void Hover (unsigned long event)
void ManipulateAxes (unsigned long event)
void SelectData (unsigned long event)
void Zoom (unsigned long event)
void Pan (unsigned long event)

Protected Attributes

int SelectedAxisPosition
vtkSmartPointer< vtkOutlineSourceHighlightSource
vtkSmartPointer
< vtkPolyDataMapper2D
HighlightMapper
vtkSmartPointer< vtkActor2DHighlightActor
int InspectMode
int BrushMode
int BrushOperator
int MaximumNumberOfBrushPoints
int NumberOfBrushPoints
int CurrentBrushClass
vtkSmartPointer< vtkPolyDataBrushData
vtkSmartPointer
< vtkPolyDataMapper2D
BrushMapper
vtkSmartPointer< vtkActor2DBrushActor
int FirstFunctionBrushLineDrawn
int AxisHighlightPosition
vtkTimeStamp WorldBuildTime
bool RebuildNeeded

Member Typedef Documentation

Reimplemented from vtkRenderView.

Definition at line 55 of file vtkParallelCoordinatesView.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
VTK_BRUSH_LASSO 
VTK_BRUSH_ANGLE 
VTK_BRUSH_FUNCTION 
VTK_BRUSH_AXISTHRESHOLD 
VTK_BRUSH_MODECOUNT 

Definition at line 60 of file vtkParallelCoordinatesView.h.

anonymous enum

Enumerator:
VTK_BRUSHOPERATOR_ADD 
VTK_BRUSHOPERATOR_SUBTRACT 
VTK_BRUSHOPERATOR_INTERSECT 
VTK_BRUSHOPERATOR_REPLACE 
VTK_BRUSHOPERATOR_MODECOUNT 

Definition at line 61 of file vtkParallelCoordinatesView.h.

anonymous enum

Enumerator:
VTK_INSPECT_MANIPULATE_AXES 
VTK_INSPECT_SELECT_DATA 
VTK_INSPECT_MODECOUNT 

Definition at line 62 of file vtkParallelCoordinatesView.h.

anonymous enum [protected]

Enumerator:
VTK_HIGHLIGHT_CENTER 
VTK_HIGHLIGHT_MIN 
VTK_HIGHLIGHT_MAX 

Definition at line 98 of file vtkParallelCoordinatesView.h.


Constructor & Destructor Documentation

vtkParallelCoordinatesView::vtkParallelCoordinatesView (  )  [protected]

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


Member Function Documentation

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

Reimplemented from vtkRenderView.

static int vtkParallelCoordinatesView::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 vtkRenderView.

virtual int vtkParallelCoordinatesView::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 vtkRenderView.

static vtkParallelCoordinatesView* vtkParallelCoordinatesView::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkRenderView.

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

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

Reimplemented from vtkRenderView.

void vtkParallelCoordinatesView::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 vtkRenderView.

void vtkParallelCoordinatesView::SetBrushMode ( int   ) 

void vtkParallelCoordinatesView::SetBrushModeToLasso (  )  [inline]

Definition at line 66 of file vtkParallelCoordinatesView.h.

void vtkParallelCoordinatesView::SetBrushModeToAngle (  )  [inline]

Definition at line 67 of file vtkParallelCoordinatesView.h.

void vtkParallelCoordinatesView::SetBrushModeToFunction (  )  [inline]

Definition at line 68 of file vtkParallelCoordinatesView.h.

void vtkParallelCoordinatesView::SetBrushModeToAxisThreshold (  )  [inline]

Definition at line 69 of file vtkParallelCoordinatesView.h.

virtual int vtkParallelCoordinatesView::GetBrushMode (  )  [virtual]

void vtkParallelCoordinatesView::SetBrushOperator ( int   ) 

void vtkParallelCoordinatesView::SetBrushOperatorToAdd (  )  [inline]

Definition at line 73 of file vtkParallelCoordinatesView.h.

void vtkParallelCoordinatesView::SetBrushOperatorToSubtract (  )  [inline]

Definition at line 74 of file vtkParallelCoordinatesView.h.

void vtkParallelCoordinatesView::SetBrushOperatorToIntersect (  )  [inline]

Definition at line 75 of file vtkParallelCoordinatesView.h.

void vtkParallelCoordinatesView::SetBrushOperatorToReplace (  )  [inline]

Definition at line 76 of file vtkParallelCoordinatesView.h.

virtual int vtkParallelCoordinatesView::GetBrushOperator (  )  [virtual]

void vtkParallelCoordinatesView::SetInspectMode ( int   ) 

void vtkParallelCoordinatesView::SetInspectModeToManipulateAxes (  )  [inline]

Definition at line 80 of file vtkParallelCoordinatesView.h.

void vtkParallelCoordinatesView::SetInpsectModeToSelectData (  )  [inline]

Definition at line 81 of file vtkParallelCoordinatesView.h.

virtual int vtkParallelCoordinatesView::GetInspectMode (  )  [virtual]

void vtkParallelCoordinatesView::SetMaximumNumberOfBrushPoints ( int   ) 

virtual int vtkParallelCoordinatesView::GetMaximumNumberOfBrushPoints (  )  [virtual]

virtual void vtkParallelCoordinatesView::SetCurrentBrushClass ( int   )  [virtual]

virtual int vtkParallelCoordinatesView::GetCurrentBrushClass (  )  [virtual]

virtual void vtkParallelCoordinatesView::ApplyViewTheme ( vtkViewTheme theme  )  [virtual]

Applies a view theme to this view.

Reimplemented from vtkRenderView.

virtual void vtkParallelCoordinatesView::ProcessEvents ( vtkObject caller,
unsigned long  eventId,
void *  callData 
) [protected, virtual]

Called to process events. Captures StartEvent events from the renderer and calls Update(). This may be overridden by subclasses to process additional events.

Reimplemented from vtkRenderView.

virtual vtkDataRepresentation* vtkParallelCoordinatesView::CreateDefaultRepresentation ( vtkAlgorithmOutput conn  )  [protected, virtual]

Create a default vtkDataRepresentation for the given vtkAlgorithmOutput. View subclasses may override this method to create custom representations. This method is called by Add/SetRepresentationFromInputConnection. NOTE, the caller must delete the returned vtkDataRepresentation.

Reimplemented from vtkView.

void vtkParallelCoordinatesView::PrepareForRendering (  )  [protected, virtual]

Called by the view when the renderer is about to render.

Reimplemented from vtkRenderView.

void vtkParallelCoordinatesView::Hover ( unsigned long  event  )  [protected]

Handle axis manipulation

void vtkParallelCoordinatesView::ManipulateAxes ( unsigned long  event  )  [protected]

Handle axis manipulation

void vtkParallelCoordinatesView::SelectData ( unsigned long  event  )  [protected]

Handle axis manipulation

void vtkParallelCoordinatesView::Zoom ( unsigned long  event  )  [protected]

Handle axis manipulation

void vtkParallelCoordinatesView::Pan ( unsigned long  event  )  [protected]

Handle axis manipulation

int vtkParallelCoordinatesView::SetAxisHighlightPosition ( vtkParallelCoordinatesRepresentation rep,
int  position 
) [protected]

Set/Get the position of axis highlights

int vtkParallelCoordinatesView::SetAxisHighlightPosition ( vtkParallelCoordinatesRepresentation rep,
double  position 
) [protected]

Set the highlight position using normalized viewport coordinates

int vtkParallelCoordinatesView::AddLassoBrushPoint ( double *  p  )  [protected]

int vtkParallelCoordinatesView::SetBrushLine ( int  line,
double *  p1,
double *  p2 
) [protected]

void vtkParallelCoordinatesView::GetBrushLine ( int  line,
vtkIdType npts,
vtkIdType *&  ptids 
) [protected]

int vtkParallelCoordinatesView::SetAngleBrushLine ( double *  p1,
double *  p2 
) [protected]

int vtkParallelCoordinatesView::SetFunctionBrushLine1 ( double *  p1,
double *  p2 
) [protected]

int vtkParallelCoordinatesView::SetFunctionBrushLine2 ( double *  p1,
double *  p2 
) [protected]

void vtkParallelCoordinatesView::ClearBrushPoints (  )  [protected]


Member Data Documentation

Definition at line 96 of file vtkParallelCoordinatesView.h.

Definition at line 99 of file vtkParallelCoordinatesView.h.

Definition at line 100 of file vtkParallelCoordinatesView.h.

Definition at line 101 of file vtkParallelCoordinatesView.h.

Definition at line 104 of file vtkParallelCoordinatesView.h.

Definition at line 105 of file vtkParallelCoordinatesView.h.

Definition at line 106 of file vtkParallelCoordinatesView.h.

Definition at line 107 of file vtkParallelCoordinatesView.h.

Definition at line 108 of file vtkParallelCoordinatesView.h.

Definition at line 109 of file vtkParallelCoordinatesView.h.

Definition at line 111 of file vtkParallelCoordinatesView.h.

Definition at line 112 of file vtkParallelCoordinatesView.h.

Definition at line 113 of file vtkParallelCoordinatesView.h.

Definition at line 116 of file vtkParallelCoordinatesView.h.

Definition at line 117 of file vtkParallelCoordinatesView.h.

Definition at line 119 of file vtkParallelCoordinatesView.h.

Definition at line 120 of file vtkParallelCoordinatesView.h.


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

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