VTK  9.5.2
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
23
24#ifndef vtkInteractorStyleRubberBand2D_h
25#define vtkInteractorStyleRubberBand2D_h
26
27#include "vtkInteractionStyleModule.h" // For export macro
28#include "vtkInteractorStyle.h"
29#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
30
31VTK_ABI_NAMESPACE_BEGIN
33
34class VTKINTERACTIONSTYLE_EXPORT VTK_MARSHALAUTO vtkInteractorStyleRubberBand2D
35 : public vtkInteractorStyle
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
42 void OnLeftButtonDown() override;
43 void OnLeftButtonUp() override;
44 void OnMiddleButtonDown() override;
45 void OnMiddleButtonUp() override;
46 void OnRightButtonDown() override;
47 void OnRightButtonUp() override;
48 void OnMouseMove() override;
49 void OnMouseWheelForward() override;
50 void OnMouseWheelBackward() override;
51
53
56 vtkSetMacro(RenderOnMouseMove, bool);
57 vtkGetMacro(RenderOnMouseMove, bool);
58 vtkBooleanMacro(RenderOnMouseMove, bool);
60
64 enum
65 {
68 };
69
71
74 vtkGetMacro(Interaction, int);
76
77 enum
78 {
83 };
84
86
91 vtkGetVector2Macro(StartPosition, int);
92 vtkGetVector2Macro(EndPosition, int);
94
95protected:
98
99 // The interaction mode
101
102 // Draws the selection rubber band
104
105 // The start position of the selection
107
108 // The end position of the selection
110
111 // The pixel array for the rubber band
113
114 // Whether to render when the mouse moves
116
117private:
119 void operator=(const vtkInteractorStyleRubberBand2D&) = delete;
120};
121
122VTK_ABI_NAMESPACE_END
123#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