 |
VTK
9.0.1
|
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
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 Scale(const double *eventPos)
void RemoveAllBoundingPlanes()
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.
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.
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()
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
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
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.
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
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