#include <vtkCellPicker.h>
vtkCellPicker is used to select a cell by shooting a ray into graphics window and intersecting with actor's defining geometry - specifically its cells. Beside returning coordinates, actor and mapper, vtkCellPicker returns the id of the closest cell within the tolerance along the pick ray, and the dataset that was picked.
Definition at line 37 of file vtkCellPicker.h.
Public Types | |
typedef vtkPicker | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkIdType | GetCellId () |
virtual int | GetSubId () |
virtual double * | GetPCoords () |
virtual void | GetPCoords (double data[3]) |
Static Public Member Functions | |
static vtkCellPicker * | New () |
static int | IsTypeOf (const char *type) |
static vtkCellPicker * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkCellPicker () | |
~vtkCellPicker () | |
virtual double | IntersectWithLine (double p1[3], double p2[3], double tol, vtkAssemblyPath *path, vtkProp3D *p, vtkAbstractMapper3D *m) |
void | Initialize () |
Protected Attributes | |
vtkIdType | CellId |
int | SubId |
double | PCoords [3] |
typedef vtkPicker vtkCellPicker::Superclass |
vtkCellPicker::vtkCellPicker | ( | ) | [protected] |
vtkCellPicker::~vtkCellPicker | ( | ) | [protected] |
static vtkCellPicker* vtkCellPicker::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkPicker.
virtual const char* vtkCellPicker::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkPicker.
static int vtkCellPicker::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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkPicker.
virtual int vtkCellPicker::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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkPicker.
static vtkCellPicker* vtkCellPicker::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkPicker.
void vtkCellPicker::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
virtual vtkIdType vtkCellPicker::GetCellId | ( | ) | [virtual] |
Get the id of the picked cell. If CellId = -1, nothing was picked.
virtual int vtkCellPicker::GetSubId | ( | ) | [virtual] |
Get the subId of the picked cell. If SubId = -1, nothing was picked.
virtual double* vtkCellPicker::GetPCoords | ( | ) | [virtual] |
Get the parametric coordinates of the picked cell. Only valid if pick was made.
virtual void vtkCellPicker::GetPCoords | ( | double | data[3] | ) | [virtual] |
Get the parametric coordinates of the picked cell. Only valid if pick was made.
virtual double vtkCellPicker::IntersectWithLine | ( | double | p1[3], | |
double | p2[3], | |||
double | tol, | |||
vtkAssemblyPath * | path, | |||
vtkProp3D * | p, | |||
vtkAbstractMapper3D * | m | |||
) | [protected, virtual] |
Reimplemented from vtkPicker.
void vtkCellPicker::Initialize | ( | ) | [protected, virtual] |
Reimplemented from vtkPicker.
vtkIdType vtkCellPicker::CellId [protected] |
Definition at line 64 of file vtkCellPicker.h.
int vtkCellPicker::SubId [protected] |
Definition at line 65 of file vtkCellPicker.h.
double vtkCellPicker::PCoords[3] [protected] |
Definition at line 66 of file vtkCellPicker.h.