47#ifndef vtkCellPicker_h
48#define vtkCellPicker_h
50#include "vtkRenderingCoreModule.h"
82 virtual int Pick(
double selectionX,
double selectionY,
double selectionZ,
118 vtkGetMacro(VolumeOpacityIsovalue,
double);
130 vtkGetMacro(UseVolumeGradientOpacity,
int);
148 vtkGetMacro(PickClippingPlanes,
int);
160 vtkGetMacro(ClippingPlaneId,
int);
169 vtkGetVectorMacro(PickNormal,
double, 3);
177 vtkGetVector3Macro(MapperNormal,
double);
185 vtkGetVector3Macro(PointIJK,
int);
194 vtkGetVector3Macro(CellIJK,
int);
217 vtkGetMacro(SubId,
int);
226 vtkGetVector3Macro(PCoords,
double);
248 vtkGetMacro(PickTextureData,
int);
264 double t1,
double t2,
double tol,
269 double t1,
double t2,
275 double t1,
double t2,
281 double t1,
double t2,
double tol,
287 const double p1[3],
const double p2[3],
288 double &t1,
double &t2,
int& planeId);
291 const double x1[3],
const double x2[3],
292 double &t1,
double &t2,
int &planeId);
295 const double *weights,
double normal[3]);
298 const double *weights,
double tcoord[3]);
331 double PickNormal[3];
332 double MapperNormal[3];
338 void ResetCellPickerInfo();
an abstract base class for locators which find cells
abstract class specifies interface to map 3D data
Abstract class for a volume mapper.
a list of nodes that form an assembly path
ray-cast cell picker for all kinds of Prop3Ds
virtual int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)
Perform pick operation with selection point provided.
int UseVolumeGradientOpacity
static vtkCellPicker * New()
static int ComputeSurfaceNormal(vtkDataSet *data, vtkCell *cell, const double *weights, double normal[3])
virtual double IntersectActorWithLine(const double p1[3], const double p2[3], double t1, double t2, double tol, vtkProp3D *prop, vtkMapper *mapper)
virtual double IntersectWithLine(double p1[3], double p2[3], double tol, vtkAssemblyPath *path, vtkProp3D *p, vtkAbstractMapper3D *m)
virtual void ResetPickInfo()
void RemoveAllLocators()
Remove all locators associated with this picker.
static int ComputeSurfaceTCoord(vtkDataSet *data, vtkCell *cell, const double *weights, double tcoord[3])
static void SubCellFromCell(vtkGenericCell *cell, int subId)
vtkTexture * GetTexture()
Get the texture that was picked.
void SetImageDataPickInfo(const double x[3], const int extent[6])
static int ClipLineWithPlanes(vtkAbstractMapper3D *mapper, vtkMatrix4x4 *propMatrix, const double p1[3], const double p2[3], double &t1, double &t2, int &planeId)
static int ClipLineWithExtent(const int extent[6], const double x1[3], const double x2[3], double &t1, double &t2, int &planeId)
virtual double IntersectVolumeWithLine(const double p1[3], const double p2[3], double t1, double t2, vtkProp3D *prop, vtkAbstractVolumeMapper *mapper)
double VolumeOpacityIsovalue
static int HasSubCells(int cellType)
void AddLocator(vtkAbstractCellLocator *locator)
Add a locator for one of the data sets that will be included in the scene.
virtual double IntersectImageWithLine(const double p1[3], const double p2[3], double t1, double t2, vtkProp3D *prop, vtkImageMapper3D *mapper)
void RemoveLocator(vtkAbstractCellLocator *locator)
Remove a locator that was previously added.
double ComputeVolumeOpacity(const int xi[3], const double pcoords[3], vtkImageData *data, vtkDataArray *scalars, vtkPiecewiseFunction *scalarOpacity, vtkPiecewiseFunction *gradientOpacity)
static void GetSubCell(vtkDataSet *data, vtkIdList *pointIds, int subId, int cellType, vtkGenericCell *cell)
virtual double IntersectProp3DWithLine(const double p1[3], const double p2[3], double t1, double t2, double tol, vtkProp3D *prop, vtkAbstractMapper3D *mapper)
static int GetNumberOfSubCells(vtkIdList *pointIds, int cellType)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
abstract class to specify cell behavior
create and manipulate unsorted lists of objects
abstract superclass for arrays of numeric data
abstract class to specify dataset behavior
dynamic, self-adjusting array of double
provides thread-safe access to cells
list of point or cell ids
topologically and geometrically regular array of data
abstract class for mapping images to the screen
a simple class to control print indentation
abstract class specifies interface to map data to graphics primitives
represent and manipulate 4x4 transformation matrices
superclass for 3D geometric pickers (uses ray cast)
Defines a 1D piecewise function.
maintain a list of planes
represents an 3D object for placement in a rendered scene
abstract specification for renderers
handles properties associated with a texture map
CellTypeInDataSet cellType(vtkDataSet *input)
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.