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

vtkCellPicker Class Reference

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

#include <vtkCellPicker.h>

Inheritance diagram for vtkCellPicker:

Inheritance graph
[legend]
Collaboration diagram for vtkCellPicker:

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 GetCellId ()
virtual int GetSubId ()
virtual float * GetPCoords ()
virtual void GetPCoords (float data[3])

Static Public Methods

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

Protected Methods

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

Protected Attributes

int CellId
int SubId
float PCoords [3]

Detailed Description

select a cell by shooting a ray into graphics window.

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

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

Definition at line 64 of file vtkCellPicker.h.


Constructor & Destructor Documentation

vtkCellPicker::vtkCellPicker   [protected]
 

vtkCellPicker::~vtkCellPicker   [protected]
 

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

Definition at line 84 of file vtkCellPicker.h.


Member Function Documentation

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]
 

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 vtkCellPicker::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 vtkCellPicker::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.

vtkCellPicker* vtkCellPicker::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 vtkCellPicker::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 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 float* vtkCellPicker::GetPCoords   [virtual]
 

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

virtual void vtkCellPicker::GetPCoords float    data[3] [virtual]
 

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

Definition at line 85 of file vtkCellPicker.h.

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

Reimplemented from vtkPicker.

void vtkCellPicker::Initialize   [protected, virtual]
 

Reimplemented from vtkPicker.


Member Data Documentation

int vtkCellPicker::CellId [protected]
 

Definition at line 87 of file vtkCellPicker.h.

int vtkCellPicker::SubId [protected]
 

Definition at line 88 of file vtkCellPicker.h.

float vtkCellPicker::PCoords[3] [protected]
 

Definition at line 89 of file vtkCellPicker.h.


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