VTK  9.4.20251007
vtkInteractorStyleRubberBand2D.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
26
27#ifndef vtkInteractorStyleRubberBand2D_h
28#define vtkInteractorStyleRubberBand2D_h
29
30#include "vtkInteractionStyleModule.h" // For export macro
31#include "vtkInteractorStyle.h"
32#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
33
34VTK_ABI_NAMESPACE_BEGIN
36
37class VTKINTERACTIONSTYLE_EXPORT VTK_MARSHALAUTO vtkInteractorStyleRubberBand2D
38 : public vtkInteractorStyle
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
45 void OnLeftButtonDown() override;
46 void OnLeftButtonUp() override;
47 void OnMiddleButtonDown() override;
48 void OnMiddleButtonUp() override;
49 void OnRightButtonDown() override;
50 void OnRightButtonUp() override;
51 void OnMouseMove() override;
52 void OnMouseWheelForward() override;
53 void OnMouseWheelBackward() override;
54
56
59 vtkSetMacro(RenderOnMouseMove, bool);
60 vtkGetMacro(RenderOnMouseMove, bool);
61 vtkBooleanMacro(RenderOnMouseMove, bool);
63
67 enum
68 {
71 };
72
74
77 vtkGetMacro(Interaction, int);
79
80 enum
81 {
86 };
87
89
94 vtkGetVector2Macro(StartPosition, int);
95 vtkGetVector2Macro(EndPosition, int);
97
98protected:
101
102 // The interaction mode
104
105 // Draws the selection rubber band
107
108 // The start position of the selection
110
111 // The end position of the selection
113
114 // The pixel array for the rubber band
116
117 // Whether to render when the mouse moves
119
120private:
122 void operator=(const vtkInteractorStyleRubberBand2D&) = delete;
123};
124
125VTK_ABI_NAMESPACE_END
126#endif
a simple class to control print indentation
Definition vtkIndent.h:29
static vtkInteractorStyleRubberBand2D * New()
void OnRightButtonDown() override
void OnMiddleButtonUp() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void OnLeftButtonDown() override
void OnMouseMove() override
Generic event bindings can be overridden in subclasses.
~vtkInteractorStyleRubberBand2D() override
void OnMouseWheelBackward() override
void OnMouseWheelForward() override
void OnMiddleButtonDown() override
dynamic, self-adjusting array of unsigned char
#define VTK_MARSHALAUTO