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