Go to the documentation of this file.
29 #ifndef vtkBoundedPlanePointPlacer_h
30 #define vtkBoundedPlanePointPlacer_h
32 #include "vtkInteractionWidgetsModule.h"
63 vtkSetClampMacro(ProjectionNormal,
int,
66 vtkGetMacro(ProjectionNormal,
int);
83 vtkGetObjectMacro( ObliquePlane,
vtkPlane );
94 void SetProjectionPosition(
double position);
95 vtkGetMacro(ProjectionPosition,
double);
107 void AddBoundingPlane(
vtkPlane *plane);
108 void RemoveBoundingPlane(
vtkPlane *plane);
109 void RemoveAllBoundingPlanes();
112 void SetBoundingPlanes(
vtkPlanes *planes);
138 double displayPos[2],
140 double worldOrient[9] )
override;
149 double displayPos[2],
150 double refWorldPos[3],
152 double worldOrient[9] )
override;
165 double worldOrient[9])
override;
177 double worldOrient[9] )
override;
203 void GetProjectionNormal(
double normal[3] );
207 void GetProjectionOrigin(
double origin[3] );
211 void GetCurrentOrientation(
double worldOrient[9] );
216 static double GetDistanceFromObject(
double pos[3],
218 double closestPt[3]);
perform various plane computations
a placer that constrains a handle to a finite plane
double ProjectionPosition
vtkPlaneCollection * BoundingPlanes
Abstract interface to translate 2D display positions to world coordinates.
void SetProjectionNormalToOblique()
implicit function for convex set of planes
static vtkPointPlacer * New()
Instantiate this class.
void SetProjectionNormalToXAxis()
a simple class to control print indentation
abstract specification for renderers
void SetProjectionNormalToZAxis()
virtual int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double worldPos[3], double worldOrient[9])
Given a renderer and a display position in pixel coordinates, compute the world position and orientat...
void SetProjectionNormalToYAxis()
maintain a list of planes
virtual int ValidateWorldPosition(double worldPos[3])
Given a world position check the validity of this position according to the constraints of the placer...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int UpdateWorldPosition(vtkRenderer *ren, double worldPos[3], double worldOrient[9])
Given a current renderer, world position and orientation, update them according to the constraints of...