28 #ifndef vtkClosedSurfacePointPlacer_h
29 #define vtkClosedSurfacePointPlacer_h
31 #include "vtkInteractionWidgetsModule.h"
89 double worldOrient[9] );
103 double displayPos[2],
104 double refWorldPos[2],
106 double worldOrient[9] );
119 double worldOrient[9]);
125 vtkGetMacro( MinimumDistance,
double );
140 double closestPt[3]);
PointPlacer to constrain validity within a set of convex planes.
int ValidateWorldPosition(double worldPos[3])
Give a world position check if it is valid - does it lie on the plane and within the bounds?...
int ValidateWorldPosition(double worldPos[3], double worldOrient[9])
Given a world position and a world orientation, validate it according to the constraints of the place...
~vtkClosedSurfacePointPlacer()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkClosedSurfacePointPlacer * New()
Instantiate this class.
void AddBoundingPlane(vtkPlane *plane)
A collection of plane equations used to bound the position of the point.
vtkPlaneCollection * InnerBoundingPlanes
void RemoveBoundingPlane(vtkPlane *plane)
void RemoveAllBoundingPlanes()
virtual void SetBoundingPlanes(vtkPlaneCollection *)
void SetBoundingPlanes(vtkPlanes *planes)
vtkPlaneCollection * BoundingPlanes
static double GetDistanceFromObject(double pos[3], vtkPlaneCollection *pc, double closestPt[3])
int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double worldPos[3], double worldOrient[9])
Given a renderer and a display position, compute the world position and world orientation for this po...
vtkClosedSurfacePointPlacer()
int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double refWorldPos[2], double worldPos[3], double worldOrient[9])
Given a renderer, a display position and a reference position, "worldPos" is calculated as : Consider...
a simple class to control print indentation
maintain a list of planes
perform various plane computations
implicit function for convex set of planes
Abstract interface to translate 2D display positions to world coordinates.
abstract specification for renderers