VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkResliceCursorPicker Class Reference

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

#include <vtkResliceCursorPicker.h>

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

List of all members.

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

Reimplemented from vtkPicker.

Definition at line 49 of file vtkResliceCursorPicker.h.


Constructor & Destructor Documentation


Member Function Documentation

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

Reimplemented from vtkPicker.

static int vtkResliceCursorPicker::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 vtkPicker.

virtual int vtkResliceCursorPicker::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 vtkPicker.

Reimplemented from vtkPicker.

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

Reimplemented from vtkPicker.

Reimplemented from vtkPicker.

void vtkResliceCursorPicker::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 vtkPicker.

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.

Reimplemented from vtkPicker.

Get the picked axis

Get the picked axis

Get the picked axis

Set the reslice cursor algorithm. One must be set

Set the reslice cursor algorithm. One must be set

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 
) [protected, virtual]
virtual int vtkResliceCursorPicker::IntersectPointWithLine ( double  p1[3],
double  p2[3],
double  X[3],
double  tol 
) [protected, virtual]
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: