Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkPointPicker Class Reference

select a point by shooting a ray into a graphics window. More...

#include <vtkPointPicker.h>

Inheritance diagram for vtkPointPicker:

Inheritance graph
[legend]
Collaboration diagram for vtkPointPicker:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual int GetPointId ()

Static Public Methods

vtkPointPicker * New ()
int IsTypeOf (const char *type)
vtkPointPicker * SafeDownCast (vtkObject *o)

Protected Methods

 vtkPointPicker ()
 ~vtkPointPicker ()
 vtkPointPicker (const vtkPointPicker &)
void operator= (const vtkPointPicker &)
float IntersectWithLine (float p1[3], float p2[3], float tol, vtkAssemblyPath *path, vtkProp3D *p, vtkAbstractMapper3D *m)
void Initialize ()

Protected Attributes

int PointId

Detailed Description

select a point by shooting a ray into a graphics window.

Date:
2000/12/10 20:08:46
Revision:
1.29

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:
vtkPicker vtkCellPicker.
Examples:
vtkPointPicker (examples)

Definition at line 62 of file vtkPointPicker.h.


Constructor & Destructor Documentation

vtkPointPicker::vtkPointPicker   [protected]
 

vtkPointPicker::~vtkPointPicker   [inline, protected]
 

Definition at line 74 of file vtkPointPicker.h.

vtkPointPicker::vtkPointPicker const vtkPointPicker &    [inline, protected]
 

Definition at line 75 of file vtkPointPicker.h.


Member Function Documentation

vtkPointPicker* vtkPointPicker::New   [static]
 

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkPicker.

virtual const char* vtkPointPicker::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPicker.

int vtkPointPicker::IsTypeOf const char *    type [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 *    type [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.

vtkPointPicker* vtkPointPicker::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPicker.

void vtkPointPicker::PrintSelf ostream &    os,
vtkIndent    indent
[virtual]
 

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkPicker.

virtual int vtkPointPicker::GetPointId   [virtual]
 

Get the id of the picked point. If PointId = -1, nothing was picked.

void vtkPointPicker::operator= const vtkPointPicker &    [inline, protected]
 

Definition at line 76 of file vtkPointPicker.h.

float vtkPointPicker::IntersectWithLine float    p1[3],
float    p2[3],
float    tol,
vtkAssemblyPath   path,
vtkProp3D   p,
vtkAbstractMapper3D   m
[protected, virtual]
 

Reimplemented from vtkPicker.

void vtkPointPicker::Initialize void    [protected, virtual]
 

Reimplemented from vtkPicker.


Member Data Documentation

int vtkPointPicker::PointId [protected]
 

Definition at line 78 of file vtkPointPicker.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:57:33 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001