 |
VTK
9.1.0
|
Go to the documentation of this file.
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];
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
Subclasses of vtkConstrainedPointHandleRepresentation must implement these methods.
void CreateDefaultProperties()
int RenderOpaqueGeometry(vtkViewport *viewport) override
Methods to make this class behave as a vtkProp.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Methods to make this class behave as a vtkProp.
void SetProjectionNormalToXAxis()
void SetPosition(double x, double y, double z)
Set/Get the position of the point in display coordinates.
void Scale(const double *eventPos)
void RemoveAllBoundingPlanes()
A collection of plane equations used to bound the position of the point.
void SetBoundingPlanes(vtkPlanes *planes)
A collection of plane equations used to bound the position of the point.
double ProjectionPosition
int ComputeInteractionState(int X, int Y, int modify) override
Subclasses of vtkConstrainedPointHandleRepresentation must implement these methods.
abstract class for representing widget handles
double * GetPosition()
Set/Get the position of the point in display coordinates.
vtkPolyDataMapper * Mapper
vtkPolyData * CursorShape
vtkPolyData * ActiveCursorShape
implicit function for convex set of planes
window superclass for vtkRenderWindow
void ReleaseGraphicsResources(vtkWindow *) override
Methods to make this class behave as a vtkProp.
void SetPosition(double xyz[3])
Set/Get the position of the point in display coordinates.
void ShallowCopy(vtkProp *prop) override
Methods to make this class behave as a vtkProp.
static vtkConstrainedPointHandleRepresentation * New()
Instantiate this class.
void RemoveBoundingPlane(vtkPlane *plane)
A collection of plane equations used to bound the position of the point.
vtkConstrainedPointHandleRepresentation()
void SetProjectionNormalToOblique()
void SetRenderer(vtkRenderer *ren) override
Subclasses of vtkConstrainedPointHandleRepresentation must implement these methods.
int GetIntersectionPosition(const double eventPos[2], double worldPos[3], double tolerance=0.0, vtkRenderer *renderer=nullptr)
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()
Specify the shape of the cursor (handle) when it is active.
vtkPlaneCollection * BoundingPlanes
void GetPosition(double xyz[3])
Set/Get the position of the point in display coordinates.
int CheckConstraint(vtkRenderer *renderer, double pos[2]) override
Overridden from the base class.
void SetProjectionNormalToYAxis()
int RenderOverlay(vtkViewport *viewport) override
Methods to make this class behave as a vtkProp.
abstract specification for Viewports
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.
virtual void Translate(const double *p1, const double *p2)
Translates world position by vector p1p2 projected on the constraint axis if any.
void BuildRepresentation() override
Subclasses of vtkConstrainedPointHandleRepresentation must implement these methods.
void StartWidgetInteraction(double eventPos[2]) override
Subclasses of vtkConstrainedPointHandleRepresentation must implement these methods.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
void Translate(const double *eventPos) override
Translates world position by vector v projected on the constraint axis if any.
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
Methods to make this class behave as a vtkProp.
maintain a list of planes
virtual void SetBoundingPlanes(vtkPlaneCollection *)
A collection of plane equations used to bound the position of the point.
vtkPolyData * GetCursorShape()
Specify the cursor shape.
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