Documentation for vtkCellPicker

vtkCellPicker - select a cell by shooting a ray into graphics window

Super Class: vtkPicker

Description:

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.

 

See Also:

vtkPicker vtkPointPicker

 

Methods:

void vtkCellPicker ()
static vtkCellPicker *New ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
int GetCellId ()
int GetSubId ()
float *GetPCoords ()
float IntersectWithLine (float ,float ,float ,vtkActor * ,vtkActor * ,vtkMapper *)
void Initialize ()

 

Detailed Method Descriptions:

Get the id of the picked cell. If CellId = -1, nothing was picked.

int GetCellId ()

Get the subId of the picked cell. If SubId = -1, nothing was picked.

int GetSubId ()

Get the parametric coordinates of the picked cell. Only valid if pick was made.

float *GetPCoords ()