VTK
|
ray-cast cell picker for the reslice cursor More...
#include <vtkResliceCursorPicker.h>
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.
Definition at line 45 of file vtkResliceCursorPicker.h.
Reimplemented from vtkPicker.
Definition at line 49 of file vtkResliceCursorPicker.h.
vtkResliceCursorPicker::vtkResliceCursorPicker | ( | ) | [protected] |
vtkResliceCursorPicker::~vtkResliceCursorPicker | ( | ) | [protected] |
static vtkResliceCursorPicker* vtkResliceCursorPicker::New | ( | ) | [static] |
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.
static vtkResliceCursorPicker* vtkResliceCursorPicker::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPicker.
virtual vtkObjectBase* vtkResliceCursorPicker::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPicker.
Reimplemented from vtkPicker.
void vtkResliceCursorPicker::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
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.
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 | ||
) | [protected, virtual] |
virtual int vtkResliceCursorPicker::IntersectPointWithLine | ( | double | p1[3], |
double | p2[3], | ||
double | X[3], | ||
double | tol | ||
) | [protected, virtual] |
void vtkResliceCursorPicker::TransformPlane | ( | ) | [protected] |
void vtkResliceCursorPicker::TransformPoint | ( | double | pIn[4], |
double | pOut[4] | ||
) | [protected] |
void vtkResliceCursorPicker::InverseTransformPoint | ( | double | pIn[4], |
double | pOut[4] | ||
) | [protected] |