37 #ifndef vtkConstrainedPointHandleRepresentation_h 38 #define vtkConstrainedPointHandleRepresentation_h 40 #include "vtkInteractionWidgetsModule.h" 87 void SetActiveCursorShape(
vtkPolyData *activeShape);
97 vtkSetClampMacro(ProjectionNormal,
int,
100 vtkGetMacro(ProjectionNormal,
int);
118 vtkGetObjectMacro(ObliquePlane,
vtkPlane);
129 void SetProjectionPosition(
double position);
130 vtkGetMacro(ProjectionPosition,
double);
142 void AddBoundingPlane(
vtkPlane *plane);
143 void RemoveBoundingPlane(
vtkPlane *plane);
144 void RemoveAllBoundingPlanes();
147 void SetBoundingPlanes(
vtkPlanes *planes);
163 void SetPosition(
double x,
double y,
double z);
164 void SetPosition(
double xyz[3]);
165 double* GetPosition();
166 void GetPosition(
double xyz[3]);
201 void StartWidgetInteraction(
double eventPos[2]) VTK_OVERRIDE;
202 void WidgetInteraction(
double eventPos[2]) VTK_OVERRIDE;
203 int ComputeInteractionState(
int X,
int Y,
int modify) VTK_OVERRIDE;
210 void SetDisplayPosition(
double pos[3]) VTK_OVERRIDE;
217 void ReleaseGraphicsResources(
vtkWindow *) VTK_OVERRIDE;
218 int RenderOverlay(
vtkViewport *viewport) VTK_OVERRIDE;
219 int RenderOpaqueGeometry(
vtkViewport *viewport) VTK_OVERRIDE;
220 int RenderTranslucentPolygonalGeometry(
vtkViewport *viewport) VTK_OVERRIDE;
221 int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
222 void ShallowCopy(
vtkProp* prop) VTK_OVERRIDE;
227 void Highlight(
int highlight) VTK_OVERRIDE;
243 double LastPickPosition[3];
244 double LastEventPosition[2];
247 void Translate(
double eventPos[2]);
248 void Scale(
double eventPos[2]);
256 void CreateDefaultProperties();
259 int ProjectionNormal;
260 double ProjectionPosition;
267 int GetIntersectionPosition(
double eventPos[2],
269 double tolerance = 0.0,
273 void GetProjectionNormal(
double normal[3] );
277 void GetProjectionOrigin(
double origin[3] );
283 double InteractionOffset[2];
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
abstract specification for Viewports
void SetProjectionNormalToZAxis()
represent surface properties of a geometric object
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.
window superclass for vtkRenderWindow
virtual int CheckConstraint(vtkRenderer *renderer, double pos[2])
Method has to be overridden in the subclasses which has constraints on placing the handle (Ex...
a simple class to control print indentation
copy oriented and scaled glyph geometry to every input point
perform various plane computations
void SetProjectionNormalToYAxis()
map vtkPolyData to graphics primitives
void SetProjectionNormalToXAxis()
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
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