NAME
vtkPointPicker - select a point by shooting a ray into a graphics window
SYNOPSIS
#include "/opt/vtk-c++/graphics/vtkPointPicker.h"
class VTK_EXPORT vtkPointPicker : public vtkPicker
vtkPointPicker();
static vtkPointPicker *New() {return new vtkPointPicker;};
const char *GetClassName() {return "vtkPointPicker";};
void PrintSelf(ostream& os, vtkIndent indent);
int GetPointId();
DESCRIPTION
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 closest point within the tolerance along the pick ray.
SEE ALSO
For quick picking, see vtkPicker. To uniquely pick actors, see vtkCellPicker.
SUMMARY
int GetPointId()
Get the id of the picked point. If PointId = -1, nothing was picked.