VTK
|
select a point by shooting a ray into a graphics window More...
#include <vtkPointPicker.h>
Public Types | |
typedef vtkPicker | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkPointPicker * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkIdType | GetPointId () |
Static Public Member Functions | |
static vtkPointPicker * | New () |
static int | IsTypeOf (const char *type) |
static vtkPointPicker * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkPointPicker () | |
~vtkPointPicker () | |
double | IntersectWithLine (double p1[3], double p2[3], double tol, vtkAssemblyPath *path, vtkProp3D *p, vtkAbstractMapper3D *m) |
void | Initialize () |
Protected Attributes | |
vtkIdType | PointId |
select a point by shooting a ray into a graphics window
vtkPointPicker is used to select a point by shooting a ray into a graphics window and intersecting with actor's defining geometry - specifically its points. Beside returning coordinates, actor, and mapper, vtkPointPicker returns the id of the point projecting closest onto the ray (within the specified tolerance). Ties are broken (i.e., multiple points all projecting within the tolerance along the pick ray) by choosing the point closest to the ray.
Definition at line 41 of file vtkPointPicker.h.
typedef vtkPicker vtkPointPicker::Superclass |
Reimplemented from vtkPicker.
Definition at line 45 of file vtkPointPicker.h.
vtkPointPicker::vtkPointPicker | ( | ) | [protected] |
vtkPointPicker::~vtkPointPicker | ( | ) | [inline, protected] |
Definition at line 55 of file vtkPointPicker.h.
static vtkPointPicker* vtkPointPicker::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkPicker.
static int vtkPointPicker::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 vtkPointPicker::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 vtkPointPicker* vtkPointPicker::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPicker.
virtual vtkObjectBase* vtkPointPicker::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPicker.
vtkPointPicker* vtkPointPicker::NewInstance | ( | ) | const |
Reimplemented from vtkPicker.
void vtkPointPicker::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
virtual vtkIdType vtkPointPicker::GetPointId | ( | ) | [virtual] |
Get the id of the picked point. If PointId = -1, nothing was picked.
double vtkPointPicker::IntersectWithLine | ( | double | p1[3], |
double | p2[3], | ||
double | tol, | ||
vtkAssemblyPath * | path, | ||
vtkProp3D * | p, | ||
vtkAbstractMapper3D * | m | ||
) | [protected, virtual] |
Reimplemented from vtkPicker.
void vtkPointPicker::Initialize | ( | ) | [protected, virtual] |
Reimplemented from vtkPicker.
vtkIdType vtkPointPicker::PointId [protected] |
Definition at line 57 of file vtkPointPicker.h.