VTK  9.6.1
vtkPointHandleRepresentation2D.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
20
21#ifndef vtkPointHandleRepresentation2D_h
22#define vtkPointHandleRepresentation2D_h
23
25#include "vtkInteractionWidgetsModule.h" // For export macro
26#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
27
28VTK_ABI_NAMESPACE_BEGIN
29class vtkProperty2D;
30class vtkActor2D;
31class vtkCoordinate;
33class vtkPolyData;
34class vtkGlyph2D;
35class vtkPoints;
37class vtkPointPlacer;
38
39class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkPointHandleRepresentation2D
41{
42public:
47
49
53 void PrintSelf(ostream& os, vtkIndent indent) override;
55
57
59
64 void SetCursorShape(vtkPolyData* cursorShape);
67
73 void SetDisplayPosition(double xyz[3]) override;
74
76
81 vtkGetObjectMacro(Property, vtkProperty2D);
82 vtkGetObjectMacro(SelectedProperty, vtkProperty2D);
84
86
91 double* GetBounds() VTK_SIZEHINT(6) override;
92 void BuildRepresentation() override;
93 void StartWidgetInteraction(double eventPos[2]) override;
94 void WidgetInteraction(double eventPos[2]) override;
95 int ComputeInteractionState(int X, int Y, int modify = 0) override;
97
99
102 void ShallowCopy(vtkProp* prop) override;
103 void DeepCopy(vtkProp* prop) override;
106 int RenderOverlay(vtkViewport* viewport) override;
108
109 void Highlight(int highlight) override;
110
118
125 void SetVisibility(vtkTypeBool visible) override;
126
127protected:
130
131 // Render the cursor
139
140 // Support picking
143
144 // Methods to manipulate the cursor
145 void Translate(const double* eventPos) override;
146 void Scale(const double eventPos[2]);
147
148 // Properties used to control the appearance of selected objects and
149 // the manipulator in general.
153
154 // The size of the hot spot.
157
158private:
160 void operator=(const vtkPointHandleRepresentation2D&) = delete;
161};
162
163VTK_ABI_NAMESPACE_END
164#endif
a actor that draws 2D data
Definition vtkActor2D.h:36
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
copy oriented and scaled glyph geometry to every input point (2D specialization)
Definition vtkGlyph2D.h:33
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
Definition vtkIndent.h:29
void SetDisplayPosition(double xyz[3]) override
Set/Get the position of the point in display coordinates.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
void WidgetInteraction(double eventPos[2]) override
Subclasses of vtkPointHandleRepresentation2D must implement these methods.
void ReleaseGraphicsResources(vtkWindow *) override
Methods to make this class behave as a vtkProp.
void SetSelectedProperty(vtkProperty2D *)
Set/Get the handle properties when unselected and selected.
void Translate(const double *eventPos) override
Translates world position by vector v projected on the constraint axis if any.
vtkPolyData * GetCursorShape()
Specify the cursor shape with an instance of vtkPolyData.
void GetActors2D(vtkPropCollection *) override
Methods to make this class behave as a vtkProp.
void ShallowCopy(vtkProp *prop) override
Methods to make this class behave as a vtkProp.
void SetCursorShape(vtkPolyData *cursorShape)
Specify the cursor shape with an instance of vtkPolyData.
int ComputeInteractionState(int X, int Y, int modify=0) override
Subclasses of vtkPointHandleRepresentation2D must implement these methods.
void SetProperty(vtkProperty2D *)
Set/Get the handle properties when unselected and selected.
double * GetBounds() override
Subclasses of vtkPointHandleRepresentation2D must implement these methods.
void Scale(const double eventPos[2])
void SetVisibility(vtkTypeBool visible) override
Override to ensure that the internal actor's visibility is consistent with this representation's visi...
void BuildRepresentation() override
Subclasses of vtkPointHandleRepresentation2D must implement these methods.
void SetPointPlacer(vtkPointPlacer *) override
Override the superclass implementation.
void Highlight(int highlight) override
void DeepCopy(vtkProp *prop) override
Methods to make this class behave as a vtkProp.
int RenderOverlay(vtkViewport *viewport) override
Methods to make this class behave as a vtkProp.
void StartWidgetInteraction(double eventPos[2]) override
Subclasses of vtkPointHandleRepresentation2D must implement these methods.
static vtkPointHandleRepresentation2D * New()
Instantiate this class.
Abstract interface to translate 2D display positions to world coordinates.
represent and manipulate 3D points
Definition vtkPoints.h:30
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:72
an ordered list of Props
represent surface properties of a 2D image
abstract specification for Viewports
Definition vtkViewport.h:47
window superclass for vtkRenderWindow
Definition vtkWindow.h:29
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_SIZEHINT(...)
#define VTK_MARSHALAUTO
#define vtkPolyDataAlgorithm