Go to the documentation of this file.
46 #ifndef vtkCellPicker_h
47 #define vtkCellPicker_h
80 virtual int Pick(
double selectionX,
double selectionY,
double selectionZ,
228 double t1,
double t2,
double tol,
233 double t1,
double t2,
239 double t1,
double t2,
245 double t1,
double t2,
double tol,
251 const double p1[3],
const double p2[3],
252 double &t1,
double &t2,
int& planeId);
255 const double x1[3],
const double x2[3],
256 double &t1,
double &t2,
int &planeId);
259 const double *
weights,
double normal[3]);
262 const double *
weights,
double tcoord[3]);
295 double PickNormal[3];
296 double MapperNormal[3];
302 void ResetCellPickerInfo();
GLsizei GLsizei GLenum GLenum const GLvoid * data
static int ClipLineWithPlanes(vtkAbstractMapper3D *mapper, vtkMatrix4x4 *propMatrix, const double p1[3], const double p2[3], double &t1, double &t2, int &planeId)
virtual double IntersectWithLine(double p1[3], double p2[3], double tol, vtkAssemblyPath *path, vtkProp3D *p, vtkAbstractMapper3D *m)
represents an 3D object for placement in a rendered scene
static int HasSubCells(int cellType)
static int ComputeSurfaceNormal(vtkDataSet *data, vtkCell *cell, const double *weights, double normal[3])
#define vtkTypeMacro(thisClass, superclass)
vtkTexture * GetTexture()
virtual int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)
GLint GLint GLint GLint GLint x
static int ClipLineWithExtent(const int extent[6], const double x1[3], const double x2[3], double &t1, double &t2, int &planeId)
abstract superclass for arrays of numeric data
superclass for 3D geometric pickers (uses ray cast)
#define vtkGetVectorMacro(name, type, count)
static vtkCellPicker * New()
a list of nodes that form an assembly path
virtual double IntersectVolumeWithLine(const double p1[3], const double p2[3], double t1, double t2, vtkProp3D *prop, vtkAbstractVolumeMapper *mapper)
static int ComputeSurfaceTCoord(vtkDataSet *data, vtkCell *cell, const double *weights, double tcoord[3])
int UseVolumeGradientOpacity
double VolumeOpacityIsovalue
void AddLocator(vtkAbstractCellLocator *locator)
handles properties associated with a texture map
create and manipulate unsorted lists of objects
#define vtkGetVector3Macro(name, type)
virtual void ResetPickInfo()
virtual double IntersectImageWithLine(const double p1[3], const double p2[3], double t1, double t2, vtkProp3D *prop, vtkImageMapper3D *mapper)
abstract class specifies interface to map data to graphics primitives
abstract class to specify cell behavior
virtual double IntersectProp3DWithLine(const double p1[3], const double p2[3], double t1, double t2, double tol, vtkProp3D *prop, vtkAbstractMapper3D *mapper)
void PrintSelf(ostream &os, vtkIndent indent)
topologically and geometrically regular array of data
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
list of point or cell ids
GLsizei const GLchar ** path
#define vtkGetMacro(name, type)
CellTypeInDataSet cellType(vtkDataSet *input)
an abstract base class for locators which find cells
Defines a 1D piecewise function.
abstract class to specify dataset behavior
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkSetMacro(IgnoreDriverBugs, bool)
abstract class for mapping images to the screen
abstract class specifies interface to map 3D data
virtual double IntersectActorWithLine(const double p1[3], const double p2[3], double t1, double t2, double tol, vtkProp3D *prop, vtkMapper *mapper)
void RemoveLocator(vtkAbstractCellLocator *locator)
Abstract class for a volume mapper.
abstract specification for renderers
static void GetSubCell(vtkDataSet *data, vtkIdList *pointIds, int subId, int cellType, vtkGenericCell *cell)
provides thread-safe access to cells
double ComputeVolumeOpacity(const int xi[3], const double pcoords[3], vtkImageData *data, vtkDataArray *scalars, vtkPiecewiseFunction *scalarOpacity, vtkPiecewiseFunction *gradientOpacity)
dynamic, self-adjusting array of double
#define VTKRENDERINGCORE_EXPORT
maintain a list of planes
void SetImageDataPickInfo(const double x[3], const int extent[6])
ray-cast cell picker for all kinds of Prop3Ds
static int GetNumberOfSubCells(vtkIdList *pointIds, int cellType)
static void SubCellFromCell(vtkGenericCell *cell, int subId)