28 #ifndef vtkConstrainedPointHandleRepresentation_h
29 #define vtkConstrainedPointHandleRepresentation_h
32 #include "vtkInteractionWidgetsModule.h"
34 VTK_ABI_NAMESPACE_BEGIN
82 void SetActiveCursorShape(
vtkPolyData* activeShape);
94 vtkGetMacro(ProjectionNormal,
int);
120 vtkGetObjectMacro(ObliquePlane,
vtkPlane);
131 void SetProjectionPosition(
double position);
132 vtkGetMacro(ProjectionPosition,
double);
144 void AddBoundingPlane(
vtkPlane* plane);
145 void RemoveBoundingPlane(
vtkPlane* plane);
146 void RemoveAllBoundingPlanes();
149 void SetBoundingPlanes(
vtkPlanes* planes);
165 void SetPosition(
double x,
double y,
double z);
166 void SetPosition(
double xyz[3]);
167 double* GetPosition();
168 void GetPosition(
double xyz[3]);
251 double LastPickPosition[3];
252 double LastEventPosition[2];
255 void Translate(
const double* eventPos)
override;
256 void Scale(
const double* eventPos);
263 void CreateDefaultProperties();
274 int GetIntersectionPosition(
const double eventPos[2],
double worldPos[3],
double tolerance = 0.0,
278 void GetProjectionNormal(
double normal[3]);
282 void GetProjectionOrigin(
double origin[3]);
286 double InteractionOffset[2];
293 VTK_ABI_NAMESPACE_END
abstract superclass for all actors, volumes and annotations
represents an object (geometry & properties) in a rendered scene
void SetProjectionNormalToOblique()
abstract class for representing widget handles
vtkProperty * SelectedProperty
abstract specification for Viewports
void SetProjectionNormalToZAxis()
represent surface properties of a geometric object
vtkPolyData * CursorShape
maintain a list of planes
implicit function for convex set of planes
abstract specification for renderers
concrete dataset represents vertices, lines, polygons, and triangle strips
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
vtkPolyData * ActiveCursorShape
vtkPolyDataMapper * Mapper
window superclass for vtkRenderWindow
vtkProperty * ActiveProperty
virtual int CheckConstraint(vtkRenderer *renderer, double pos[2])
Method has to be overridden in the subclasses which has constraints on placing the handle (Ex...
virtual void SetDisplayPosition(double pos[2])
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...
a simple class to control print indentation
copy oriented and scaled glyph geometry to every input point
perform various plane computations
void SetProjectionNormalToYAxis()
vtkPlaneCollection * BoundingPlanes
double ProjectionPosition
map vtkPolyData to graphics primitives
void ShallowCopy(vtkProp *prop) override
Methods to make this class properly act like a vtkWidgetRepresentation.
void SetProjectionNormalToXAxis()
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual void Translate(const double *p1, const double *p2)
Translates world position by vector p1p2 projected on the constraint axis if any. ...
void SetRenderer(vtkRenderer *ren) override
Methods to make this class properly act like a vtkWidgetRepresentation.
point representation constrained to a 2D plane
represent and manipulate 3D points