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
~vtkConstrainedPointHandleRepresentation() override
perform various plane computations
vtkProperty * SelectedProperty
void WidgetInteraction(double eventPos[2]) override
void CreateDefaultProperties()
int RenderOpaqueGeometry(vtkViewport *viewport) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkTypeBool HasTranslucentPolygonalGeometry() override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void SetProjectionNormalToXAxis()
void SetPosition(double x, double y, double z)
Set/Get the position of the point in display coordinates.
void RemoveAllBoundingPlanes()
void Scale(double eventPos[2])
void SetBoundingPlanes(vtkPlanes *planes)
double ProjectionPosition
int ComputeInteractionState(int X, int Y, int modify) override
abstract class for representing widget handles
vtkPolyDataMapper * Mapper
vtkPolyData * CursorShape
vtkPolyData * ActiveCursorShape
implicit function for convex set of planes
window superclass for vtkRenderWindow
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
void SetPosition(double xyz[3])
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkProp.
void Translate(double eventPos[2])
static vtkConstrainedPointHandleRepresentation * New()
Instantiate this class.
void RemoveBoundingPlane(vtkPlane *plane)
vtkConstrainedPointHandleRepresentation()
void SetProjectionNormalToOblique()
void SetRenderer(vtkRenderer *ren) override
Subclasses of vtkConstrainedPointHandleRepresentation must implement these methods.
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
a simple class to control print indentation
void GetProjectionNormal(double normal[3])
vtkPolyData * GetActiveCursorShape()
vtkPlaneCollection * BoundingPlanes
void GetPosition(double xyz[3])
int CheckConstraint(vtkRenderer *renderer, double pos[2]) override
Overridden from the base class.
void SetProjectionNormalToYAxis()
int RenderOverlay(vtkViewport *viewport) override
abstract specification for Viewports
int GetIntersectionPosition(double eventPos[2], double worldPos[3], double tolerance=0.0, vtkRenderer *renderer=nullptr)
void SetDisplayPosition(double pos[3]) override
Method overridden from Superclass.
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 BuildRepresentation() override
void StartWidgetInteraction(double eventPos[2]) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract specification for renderers
void GetActors(vtkPropCollection *) override
Methods to make this class behave as a vtkProp.
concrete dataset represents vertices, lines, polygons, and triangle strips
represent surface properties of a geometric object
void GetProjectionOrigin(double origin[3])
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
maintain a list of planes
virtual void SetBoundingPlanes(vtkPlaneCollection *)
vtkPolyData * GetCursorShape()
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...
void Highlight(int highlight) override