VTK  9.2.6
vtkPointHandleRepresentation2D.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkPointHandleRepresentation2D.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
32
33#ifndef vtkPointHandleRepresentation2D_h
34#define vtkPointHandleRepresentation2D_h
35
37#include "vtkInteractionWidgetsModule.h" // For export macro
38
39class vtkProperty2D;
40class vtkActor2D;
41class vtkCoordinate;
43class vtkPolyData;
44class vtkGlyph2D;
45class vtkPoints;
47class vtkPointPlacer;
48
49class VTKINTERACTIONWIDGETS_EXPORT vtkPointHandleRepresentation2D : public vtkHandleRepresentation
50{
51public:
56
58
62 void PrintSelf(ostream& os, vtkIndent indent) override;
64
66
68
73 void SetCursorShape(vtkPolyData* cursorShape);
76
82 void SetDisplayPosition(double xyz[3]) override;
83
85
90 vtkGetObjectMacro(Property, vtkProperty2D);
91 vtkGetObjectMacro(SelectedProperty, vtkProperty2D);
93
95
100 double* GetBounds() VTK_SIZEHINT(6) override;
101 void BuildRepresentation() override;
102 void StartWidgetInteraction(double eventPos[2]) override;
103 void WidgetInteraction(double eventPos[2]) override;
104 int ComputeInteractionState(int X, int Y, int modify = 0) override;
106
108
111 void ShallowCopy(vtkProp* prop) override;
112 void DeepCopy(vtkProp* prop) override;
115 int RenderOverlay(vtkViewport* viewport) override;
117
118 void Highlight(int highlight) override;
119
127
134 void SetVisibility(vtkTypeBool visible) override;
135
136protected:
139
140 // Render the cursor
148
149 // Support picking
152
153 // Methods to manipulate the cursor
154 void Translate(const double* eventPos) override;
155 void Scale(const double eventPos[2]);
156
157 // Properties used to control the appearance of selected objects and
158 // the manipulator in general.
162
163 // The size of the hot spot.
166
167private:
169 void operator=(const vtkPointHandleRepresentation2D&) = delete;
170};
171
172#endif
a actor that draws 2D data
Definition vtkActor2D.h:46
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:43
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:40
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:40
Superclass for algorithms that produce only polydata as output.
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:91
an ordered list of Props
represent surface properties of a 2D image
abstract specification for Viewports
Definition vtkViewport.h:56
window superclass for vtkRenderWindow
Definition vtkWindow.h:39
int vtkTypeBool
Definition vtkABI.h:69
#define VTK_SIZEHINT(...)