Man Page for vtkCellPicker
Table of Contents

NAME

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

SYNOPSIS


#include "/opt/vtk-c++/graphics/vtkCellPicker.h"

class VTK_EXPORT vtkCellPicker : public vtkPicker

vtkCellPicker();
static vtkCellPicker *New() {return new vtkCellPicker;};
const char *GetClassName() {return "vtkCellPicker";};
void PrintSelf(ostream& os, vtkIndent indent);
int GetCellId();
int GetSubId();
float *GetPCoords();
void GetPCoords(float data[3]);

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

SUMMARY

int GetCellId()
Get the id of the picked cell. If CellId = -1, nothing was picked.

int GetSubId()
Get the subId of the picked cell. If SubId = -1, nothing was picked.

float *GetPCoords()
void GetPCoords(float data[3])
Get the parametric coordinates of the picked cell. Only valid if pick was made.


Table of Contents