Go to the documentation of this file.
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]);
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...
static double GetDistanceFromObject(double pos[3], vtkPlaneCollection *pc, double closestPt[3])
perform various plane computations
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...
Abstract interface to translate 2D display positions to world coordinates.
vtkPlaneCollection * BoundingPlanes
~vtkClosedSurfacePointPlacer()
void RemoveAllBoundingPlanes()
implicit function for convex set of planes
static vtkClosedSurfacePointPlacer * New()
Instantiate this class.
int ValidateWorldPosition(double worldPos[3])
Give a world position check if it is valid - does it lie on the plane and within the bounds?...
virtual void SetBoundingPlanes(vtkPlaneCollection *)
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkClosedSurfacePointPlacer()
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...
vtkPlaneCollection * InnerBoundingPlanes
void AddBoundingPlane(vtkPlane *plane)
A collection of plane equations used to bound the position of the point.
abstract specification for renderers
void RemoveBoundingPlane(vtkPlane *plane)
PointPlacer to constrain validity within a set of convex planes.
maintain a list of planes
void SetBoundingPlanes(vtkPlanes *planes)