46 #ifndef __vtkCellPicker_h
47 #define __vtkCellPicker_h
79 virtual int Pick(
double selectionX,
double selectionY,
double selectionZ,
98 void RemoveAllLocators();
107 vtkSetMacro(VolumeOpacityIsovalue,
double);
108 vtkGetMacro(VolumeOpacityIsovalue,
double);
116 vtkSetMacro(UseVolumeGradientOpacity,
int);
117 vtkBooleanMacro(UseVolumeGradientOpacity,
int);
118 vtkGetMacro(UseVolumeGradientOpacity,
int);
131 vtkSetMacro(PickClippingPlanes,
int);
132 vtkBooleanMacro(PickClippingPlanes,
int);
133 vtkGetMacro(PickClippingPlanes,
int);
143 vtkGetMacro(ClippingPlaneId,
int);
150 vtkGetVectorMacro(PickNormal,
double, 3);
156 vtkGetVector3Macro(MapperNormal,
double);
162 vtkGetVector3Macro(PointIJK,
int);
169 vtkGetVector3Macro(CellIJK,
int);
186 vtkGetMacro(SubId,
int);
193 vtkGetVector3Macro(PCoords,
double);
209 vtkSetMacro(PickTextureData,
int);
210 vtkBooleanMacro(PickTextureData,
int);
211 vtkGetMacro(PickTextureData,
int);
220 virtual void ResetPickInfo();
226 virtual double IntersectActorWithLine(
const double p1[3],
const double p2[3],
227 double t1,
double t2,
double tol,
230 virtual double IntersectVolumeWithLine(
const double p1[3],
232 double t1,
double t2,
236 virtual double IntersectImageWithLine(
const double p1[3],
238 double t1,
double t2,
242 virtual double IntersectProp3DWithLine(
const double p1[3],
244 double t1,
double t2,
double tol,
250 const double p1[3],
const double p2[3],
251 double &t1,
double &t2,
int& planeId);
253 static int ClipLineWithExtent(
const int extent[6],
254 const double x1[3],
const double x2[3],
255 double &t1,
double &t2,
int &planeId);
258 const double *weights,
double normal[3]);
261 const double *weights,
double tcoord[3]);
263 static int HasSubCells(
int cellType);
265 static int GetNumberOfSubCells(
vtkIdList *pointIds,
int cellType);
272 void SetImageDataPickInfo(
const double x[3],
const int extent[6]);
274 double ComputeVolumeOpacity(
const int xi[3],
const double pcoords[3],
294 double PickNormal[3];
295 double MapperNormal[3];
301 void ResetCellPickerInfo();