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

view to be used with vtkParallelCoordinatesRepresentation More...

#include <vtkParallelCoordinatesView.h>

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

List of all members.

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 int IsA (const char *type)
vtkParallelCoordinatesViewNewInstance () const
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 (vtkObjectBase *o)
static vtkParallelCoordinatesViewNew ()

Protected Types

enum  { VTK_HIGHLIGHT_CENTER = 0, VTK_HIGHLIGHT_MIN, VTK_HIGHLIGHT_MAX }

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 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

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 53 of file vtkParallelCoordinatesView.h.


Member Typedef Documentation

Reimplemented from vtkRenderView.

Definition at line 56 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 61 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 62 of file vtkParallelCoordinatesView.h.

anonymous enum
Enumerator:
VTK_INSPECT_MANIPULATE_AXES 
VTK_INSPECT_SELECT_DATA 
VTK_INSPECT_MODECOUNT 

Definition at line 63 of file vtkParallelCoordinatesView.h.

anonymous enum [protected]
Enumerator:
VTK_HIGHLIGHT_CENTER 
VTK_HIGHLIGHT_MIN 
VTK_HIGHLIGHT_MAX 

Definition at line 99 of file vtkParallelCoordinatesView.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

Reimplemented from vtkRenderView.

virtual vtkObjectBase* vtkParallelCoordinatesView::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkRenderView.

Reimplemented from vtkRenderView.

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.

Definition at line 67 of file vtkParallelCoordinatesView.h.

Definition at line 68 of file vtkParallelCoordinatesView.h.

Definition at line 69 of file vtkParallelCoordinatesView.h.

Definition at line 70 of file vtkParallelCoordinatesView.h.

Definition at line 74 of file vtkParallelCoordinatesView.h.

Definition at line 75 of file vtkParallelCoordinatesView.h.

Definition at line 76 of file vtkParallelCoordinatesView.h.

Definition at line 77 of file vtkParallelCoordinatesView.h.

Definition at line 81 of file vtkParallelCoordinatesView.h.

Definition at line 82 of file vtkParallelCoordinatesView.h.

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.

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

Set/Get the position of axis highlights

Set the highlight position using normalized viewport coordinates

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

Member Data Documentation

Definition at line 97 of file vtkParallelCoordinatesView.h.

Definition at line 100 of file vtkParallelCoordinatesView.h.

Definition at line 101 of file vtkParallelCoordinatesView.h.

Definition at line 102 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 110 of file vtkParallelCoordinatesView.h.

Definition at line 112 of file vtkParallelCoordinatesView.h.

Definition at line 113 of file vtkParallelCoordinatesView.h.

Definition at line 114 of file vtkParallelCoordinatesView.h.

Definition at line 117 of file vtkParallelCoordinatesView.h.

Definition at line 118 of file vtkParallelCoordinatesView.h.

Definition at line 120 of file vtkParallelCoordinatesView.h.

Definition at line 121 of file vtkParallelCoordinatesView.h.


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