dox/Rendering/vtkCellPicker.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00037
#ifndef __vtkCellPicker_h
00038
#define __vtkCellPicker_h
00039
00040
#include "vtkPicker.h"
00041
00042
class vtkGenericCell;
00043
00044 class VTK_RENDERING_EXPORT vtkCellPicker :
public vtkPicker
00045 {
00046
public:
00047
static vtkCellPicker *
New();
00048 vtkTypeRevisionMacro(vtkCellPicker,
vtkPicker);
00049
void PrintSelf(ostream& os,
vtkIndent indent);
00050
00052
00053 vtkGetMacro(CellId,
vtkIdType);
00055
00057
00058 vtkGetMacro(SubId,
int);
00060
00062
00064 vtkGetVectorMacro(PCoords,
float,3);
00066
00067
protected:
00068 vtkCellPicker();
00069 ~vtkCellPicker();
00070
00071 vtkIdType CellId;
00072 int SubId;
00073 float PCoords[3];
00074
00075
virtual float IntersectWithLine(
float p1[3],
float p2[3],
float tol,
00076
vtkAssemblyPath *path,
vtkProp3D *p,
00077
vtkAbstractMapper3D *m);
00078
void Initialize();
00079
00080
private:
00081
vtkGenericCell *Cell;
00082
00083
private:
00084 vtkCellPicker(
const vtkCellPicker&);
00085
void operator=(
const vtkCellPicker&);
00086 };
00087
00088
#endif
00089
00090