27#ifndef vtkHardwarePicker_h
28#define vtkHardwarePicker_h
32#include "vtkRenderingCoreModule.h"
36VTK_ABI_NAMESPACE_BEGIN
56 vtkSetMacro(SnapToMeshPoint,
bool);
57 vtkGetMacro(SnapToMeshPoint,
bool);
58 vtkBooleanMacro(SnapToMeshPoint,
bool);
66 vtkSetMacro(PixelTolerance,
int);
67 vtkGetMacro(PixelTolerance,
int);
159 vtkGetMacro(SubId,
int);
212 vtkGetVector3Macro(PCoords,
double);
229 vtkGetVectorMacro(PickNormal,
double, 3);
238 vtkGetMacro(NormalFlipped,
bool);
249 int Pick(
double selectionX,
double selectionY,
double selectionZ,
vtkRenderer* renderer)
override;
286 double NearRayPoint[3];
287 double FarRayPoint[3];
305 double PickNormal[3];
abstract class specifies interface to map 3D data
abstract API for pickers that can pick an instance of vtkProp
abstract class to specify cell behavior
abstract superclass for composite (multi-block or AMR) datasets
general representation of visualization data
abstract class to specify dataset behavior
pick a point or snap to point of an actor/prop using graphics hardware
void Initialize() override
static vtkHardwarePicker * New()
vtkIdType CellGridTupleId
vtkIdType CellGridCellTypeId
~vtkHardwarePicker() override
vtkAbstractMapper3D * Mapper
vtkIdType CellGridSourceSpecId
vtkDataObject * DataObject
void ComputeIntersectionFromDataSet(vtkDataSet *ds)
Compute the intersection using provided dataset.
int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer) override
Perform the pick operation set the PickedProp.
void FixNormalSign()
Fix normal sign in case the orientation of the picked cell is wrong.
vtkNew< vtkPropCollection > PickableProps
int TypeDecipher(vtkProp *, vtkAbstractMapper3D **)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCompositeDataSet * CompositeDataSet
vtkSmartPointer< vtkSelection > HardwareSelection
int ComputeSurfaceNormal(vtkDataSet *data, vtkCell *cell, double *weights)
Compute the intersection normal either by interpolating the point normals at the intersected point,...
a simple class to control print indentation
Allocate and hold a VTK object.
abstract superclass for all actors, volumes and annotations
abstract specification for renderers
data object that represents a "selection" in VTK.
Hold a reference to a vtkObjectBase instance.