40#ifndef vtkConstrainedPointHandleRepresentation_h
41#define vtkConstrainedPointHandleRepresentation_h
43#include "vtkInteractionWidgetsModule.h"
100 vtkSetClampMacro(ProjectionNormal,
int,
103 vtkGetMacro(ProjectionNormal,
int);
133 vtkGetMacro(ProjectionPosition,
double);
228 enum {XAxis=0,YAxis,ZAxis,Oblique};
246 double LastPickPosition[3];
247 double LastEventPosition[2];
272 double tolerance = 0.0,
286 double InteractionOffset[2];
represents an object (geometry & properties) in a rendered scene
point representation constrained to a 2D plane
void Scale(double eventPos[2])
vtkPolyData * CursorShape
vtkProperty * ActiveProperty
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkPolyData * GetCursorShape()
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void RemoveAllBoundingPlanes()
virtual void StartWidgetInteraction(double eventPos[2])
int GetIntersectionPosition(double eventPos[2], double worldPos[3], double tolerance=0.0, vtkRenderer *renderer=0)
void SetProjectionNormalToYAxis()
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
virtual void BuildRepresentation()
void CreateDefaultProperties()
virtual int RenderOverlay(vtkViewport *viewport)
virtual void SetDisplayPosition(double pos[3])
Method overridden from Superclass.
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
vtkPolyData * GetActiveCursorShape()
~vtkConstrainedPointHandleRepresentation()
virtual void SetRenderer(vtkRenderer *ren)
Subclasses of vtkConstrainedPointHandleRepresentation must implement these methods.
void AddBoundingPlane(vtkPlane *plane)
A collection of plane equations used to bound the position of the point.
virtual int CheckConstraint(vtkRenderer *renderer, double pos[2])
Overridden from the base class.
virtual int ComputeInteractionState(int X, int Y, int modify)
vtkProperty * SelectedProperty
void GetPosition(double xyz[3])
virtual void WidgetInteraction(double eventPos[2])
vtkPlaneCollection * BoundingPlanes
void SetProjectionPosition(double position)
The position of the bounding plane from the origin along the normal.
void SetPosition(double xyz[3])
virtual void ShallowCopy(vtkProp *prop)
Methods to make this class properly act like a vtkWidgetRepresentation.
vtkPolyDataMapper * Mapper
double ProjectionPosition
void SetProjectionNormalToOblique()
void SetPosition(double x, double y, double z)
Set/Get the position of the point in display coordinates.
void SetActiveCursorShape(vtkPolyData *activeShape)
Specify the shape of the cursor (handle) when it is active.
static vtkConstrainedPointHandleRepresentation * New()
Instantiate this class.
void Highlight(int highlight)
void SetCursorShape(vtkPolyData *cursorShape)
Specify the cursor shape.
void SetProjectionNormalToXAxis()
void SetBoundingPlanes(vtkPlanes *planes)
virtual void SetBoundingPlanes(vtkPlaneCollection *)
void RemoveBoundingPlane(vtkPlane *plane)
void GetProjectionOrigin(double origin[3])
vtkConstrainedPointHandleRepresentation()
void Translate(double eventPos[2])
virtual void GetActors(vtkPropCollection *)
Methods to make this class behave as a vtkProp.
void GetProjectionNormal(double normal[3])
vtkPolyData * ActiveCursorShape
void SetObliquePlane(vtkPlane *)
If the ProjectionNormal is set to Oblique, then this is the oblique plane used to constrain the handl...
void SetProjectionNormalToZAxis()
copy oriented and scaled glyph geometry to every input point
abstract class for representing widget handles
a simple class to control print indentation
maintain a list of planes
perform various plane computations
implicit function for convex set of planes
represent and manipulate 3D points
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract superclass for all actors, volumes and annotations
represent surface properties of a geometric object
abstract specification for renderers
abstract specification for Viewports
window superclass for vtkRenderWindow