VTK
|
pick an actor/prop using graphics hardware More...
#include <vtkPropPicker.h>
Public Types | |
typedef vtkAbstractPropPicker | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkPropPicker * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
int | PickProp (double selectionX, double selectionY, vtkRenderer *renderer) |
int | PickProp (double selectionX, double selectionY, vtkRenderer *renderer, vtkPropCollection *pickfrom) |
int | Pick (double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer) |
int | Pick (double selectionPt[3], vtkRenderer *renderer) |
Static Public Member Functions | |
static vtkPropPicker * | New () |
static int | IsTypeOf (const char *type) |
static vtkPropPicker * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkPropPicker () | |
~vtkPropPicker () | |
void | Initialize () |
Protected Attributes | |
vtkPropCollection * | PickFromProps |
vtkWorldPointPicker * | WorldPointPicker |
pick an actor/prop using graphics hardware
vtkPropPicker is used to pick an actor/prop given a selection point (in display coordinates) and a renderer. This class uses graphics hardware/rendering system to pick rapidly (as compared to using ray casting as does vtkCellPicker and vtkPointPicker). This class determines the actor/prop and pick position in world coordinates; point and cell ids are not determined.
Definition at line 44 of file vtkPropPicker.h.
Reimplemented from vtkAbstractPropPicker.
Definition at line 49 of file vtkPropPicker.h.
vtkPropPicker::vtkPropPicker | ( | ) | [protected] |
vtkPropPicker::~vtkPropPicker | ( | ) | [protected] |
static vtkPropPicker* vtkPropPicker::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
static int vtkPropPicker::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 vtkAbstractPropPicker.
virtual int vtkPropPicker::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 vtkAbstractPropPicker.
static vtkPropPicker* vtkPropPicker::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkAbstractPropPicker.
virtual vtkObjectBase* vtkPropPicker::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkAbstractPropPicker.
vtkPropPicker* vtkPropPicker::NewInstance | ( | ) | const |
Reimplemented from vtkAbstractPropPicker.
void vtkPropPicker::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 vtkAbstractPropPicker.
int vtkPropPicker::PickProp | ( | double | selectionX, |
double | selectionY, | ||
vtkRenderer * | renderer | ||
) |
Perform the pick and set the PickedProp ivar. If something is picked, a 1 is returned, otherwise 0 is returned. Use the GetViewProp() method to get the instance of vtkProp that was picked. Props are picked from the renderers list of pickable Props.
int vtkPropPicker::PickProp | ( | double | selectionX, |
double | selectionY, | ||
vtkRenderer * | renderer, | ||
vtkPropCollection * | pickfrom | ||
) |
Perform a pick from the user-provided list of vtkProps and not from the list of vtkProps that the render maintains.
int vtkPropPicker::Pick | ( | double | selectionX, |
double | selectionY, | ||
double | selectionZ, | ||
vtkRenderer * | renderer | ||
) | [virtual] |
Overide superclasses' Pick() method.
Implements vtkAbstractPicker.
int vtkPropPicker::Pick | ( | double | selectionPt[3], |
vtkRenderer * | renderer | ||
) | [inline] |
Overide superclasses' Pick() method.
Reimplemented from vtkAbstractPicker.
Definition at line 69 of file vtkPropPicker.h.
void vtkPropPicker::Initialize | ( | ) | [protected, virtual] |
Reimplemented from vtkAbstractPropPicker.
vtkPropCollection* vtkPropPicker::PickFromProps [protected] |
Definition at line 80 of file vtkPropPicker.h.
vtkWorldPointPicker* vtkPropPicker::WorldPointPicker [protected] |
Definition at line 83 of file vtkPropPicker.h.