VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkResliceCursorPicker Class Reference

ray-cast cell picker for the reslice cursor More...

#include <vtkResliceCursorPicker.h>

Inherits vtkPicker.

Public Types

typedef vtkPicker Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkResliceCursorPickerNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetTransformMatrix (vtkMatrix4x4 *)
 
virtual int Pick (double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)
 
virtual int GetPickedAxis1 ()
 
virtual int GetPickedAxis2 ()
 
virtual int GetPickedCenter ()
 
virtual void SetResliceCursorAlgorithm (vtkResliceCursorPolyDataAlgorithm *)
 
virtual
vtkResliceCursorPolyDataAlgorithm
GetResliceCursorAlgorithm ()
 
void Pick (double displayPos[2], double world[3], vtkRenderer *ren)
 

Static Public Member Functions

static vtkResliceCursorPickerNew ()
 
static int IsTypeOf (const char *type)
 
static vtkResliceCursorPickerSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkResliceCursorPicker ()
 
 ~vtkResliceCursorPicker ()
 
virtual int IntersectPolyDataWithLine (double p1[3], double p2[3], vtkPolyData *, double tol)
 
virtual int IntersectPointWithLine (double p1[3], double p2[3], double X[3], double tol)
 
void TransformPlane ()
 
void TransformPoint (double pIn[4], double pOut[4])
 
void InverseTransformPoint (double pIn[4], double pOut[4])
 

Detailed Description

ray-cast cell picker for the reslice cursor

This class is is used by the vtkResliceCursorWidget to pick reslice axes drawn by a vtkResliceCursorActor. The class returns the axes picked if any, whether one has picked the center. It takes as input an instance of vtkResliceCursorPolyDataAlgorithm. This is all done internally by vtkResliceCursorWidget and as such users are not expected to use this class directly, unless they are overriding the behaviour of vtkResliceCursorWidget.

See Also
vtkResliceCursor vtkResliceCursorWidget
Events:
vtkCommand::StartPickEvent

Definition at line 45 of file vtkResliceCursorPicker.h.

Member Typedef Documentation

Definition at line 49 of file vtkResliceCursorPicker.h.

Constructor & Destructor Documentation

vtkResliceCursorPicker::vtkResliceCursorPicker ( )
protected
vtkResliceCursorPicker::~vtkResliceCursorPicker ( )
protected

Member Function Documentation

static vtkResliceCursorPicker* vtkResliceCursorPicker::New ( )
static
static int vtkResliceCursorPicker::IsTypeOf ( const char *  type)
static
virtual int vtkResliceCursorPicker::IsA ( const char *  type)
virtual
static vtkResliceCursorPicker* vtkResliceCursorPicker::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkResliceCursorPicker::NewInstanceInternal ( ) const
protectedvirtual
vtkResliceCursorPicker* vtkResliceCursorPicker::NewInstance ( ) const
void vtkResliceCursorPicker::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual int vtkResliceCursorPicker::Pick ( double  selectionX,
double  selectionY,
double  selectionZ,
vtkRenderer *  renderer 
)
virtual

Perform pick operation with selection point provided. Normally the first two values are the (x,y) pixel coordinates for the pick, and the third value is z=0. The return value will be non-zero if something was successfully picked.

virtual int vtkResliceCursorPicker::GetPickedAxis1 ( )
virtual

Get the picked axis

virtual int vtkResliceCursorPicker::GetPickedAxis2 ( )
virtual

Get the picked axis

virtual int vtkResliceCursorPicker::GetPickedCenter ( )
virtual

Get the picked axis

virtual void vtkResliceCursorPicker::SetResliceCursorAlgorithm ( vtkResliceCursorPolyDataAlgorithm )
virtual

Set the reslice cursor algorithm. One must be set

virtual vtkResliceCursorPolyDataAlgorithm* vtkResliceCursorPicker::GetResliceCursorAlgorithm ( )
virtual

Set the reslice cursor algorithm. One must be set

virtual void vtkResliceCursorPicker::SetTransformMatrix ( vtkMatrix4x4 )
virtual
void vtkResliceCursorPicker::Pick ( double  displayPos[2],
double  world[3],
vtkRenderer *  ren 
)

Overloaded pick method that returns the picked coordinates of the current resliced plane in world coordinates when given a display position

virtual int vtkResliceCursorPicker::IntersectPolyDataWithLine ( double  p1[3],
double  p2[3],
vtkPolyData ,
double  tol 
)
protectedvirtual
virtual int vtkResliceCursorPicker::IntersectPointWithLine ( double  p1[3],
double  p2[3],
double  X[3],
double  tol 
)
protectedvirtual
void vtkResliceCursorPicker::TransformPlane ( )
protected
void vtkResliceCursorPicker::TransformPoint ( double  pIn[4],
double  pOut[4] 
)
protected
void vtkResliceCursorPicker::InverseTransformPoint ( double  pIn[4],
double  pOut[4] 
)
protected

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