37 #ifndef vtkConstrainedPointHandleRepresentation_h
38 #define vtkConstrainedPointHandleRepresentation_h
41 #include "vtkInteractionWidgetsModule.h"
102 vtkGetMacro(ProjectionNormal,
int);
140 vtkGetMacro(ProjectionPosition,
double);
259 double LastPickPosition[3];
260 double LastEventPosition[2];
294 double InteractionOffset[2];
represents an object (geometry & properties) in a rendered scene
point representation constrained to a 2D plane
void Translate(const double *eventPos) override
Translates world position by vector v projected on the constraint axis if any.
vtkPolyData * CursorShape
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkProp.
vtkPolyData * GetCursorShape()
vtkProperty * ActiveProperty
void StartWidgetInteraction(double eventPos[2]) override
void RemoveAllBoundingPlanes()
void SetProjectionNormalToYAxis()
void Scale(const double *eventPos)
int ComputeInteractionState(int X, int Y, int modify) override
void Highlight(int highlight) override
void CreateDefaultProperties()
void SetDisplayPosition(double pos[3]) override
Method overridden from Superclass.
vtkTypeBool HasTranslucentPolygonalGeometry() override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void WidgetInteraction(double eventPos[2]) override
~vtkConstrainedPointHandleRepresentation() override
void AddBoundingPlane(vtkPlane *plane)
A collection of plane equations used to bound the position of the point.
void GetActors(vtkPropCollection *) override
Methods to make this class behave as a vtkProp.
int CheckConstraint(vtkRenderer *renderer, double pos[2]) override
Overridden from the base class.
vtkProperty * SelectedProperty
int RenderOpaqueGeometry(vtkViewport *viewport) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void GetPosition(double xyz[3])
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPlaneCollection * BoundingPlanes
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
void SetProjectionPosition(double position)
The position of the bounding plane from the origin along the normal.
void SetPosition(double xyz[3])
void SetRenderer(vtkRenderer *ren) override
Subclasses of vtkConstrainedPointHandleRepresentation must implement these methods.
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.
void BuildRepresentation() override
void SetCursorShape(vtkPolyData *cursorShape)
Specify the cursor shape.
static vtkConstrainedPointHandleRepresentation * New()
Instantiate this class.
void SetProjectionNormalToXAxis()
void SetBoundingPlanes(vtkPlanes *planes)
virtual void SetBoundingPlanes(vtkPlaneCollection *)
void RemoveBoundingPlane(vtkPlane *plane)
void GetProjectionOrigin(double origin[3])
vtkPolyData * GetActiveCursorShape()
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
vtkConstrainedPointHandleRepresentation()
int GetIntersectionPosition(const double eventPos[2], double worldPos[3], double tolerance=0.0, vtkRenderer *renderer=nullptr)
void GetProjectionNormal(double normal[3])
vtkPolyData * ActiveCursorShape
int RenderOverlay(vtkViewport *viewport) override
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
virtual void Translate(const double *p1, const double *p2)
Translates world position by vector p1p2 projected on the constraint axis if any.
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