VTK  9.5.2
vtkInteractorStyleRubberBand3D.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
40
41#ifndef vtkInteractorStyleRubberBand3D_h
42#define vtkInteractorStyleRubberBand3D_h
43
44#include "vtkInteractionStyleModule.h" // For export macro
46#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
47
48VTK_ABI_NAMESPACE_BEGIN
50
51class VTKINTERACTIONSTYLE_EXPORT VTK_MARSHALAUTO vtkInteractorStyleRubberBand3D
53{
54public:
57 void PrintSelf(ostream& os, vtkIndent indent) override;
58
59 void OnLeftButtonDown() override;
60 void OnLeftButtonUp() override;
61 void OnMiddleButtonDown() override;
62 void OnMiddleButtonUp() override;
63 void OnRightButtonDown() override;
64 void OnRightButtonUp() override;
65 void OnMouseMove() override;
66 void OnMouseWheelForward() override;
67 void OnMouseWheelBackward() override;
68
70
73 vtkSetMacro(RenderOnMouseMove, bool);
74 vtkGetMacro(RenderOnMouseMove, bool);
75 vtkBooleanMacro(RenderOnMouseMove, bool);
77
81 enum
82 {
85 };
86
88
91 vtkGetMacro(Interaction, int);
93
94 enum
95 {
101 };
102
104
109 vtkGetVector2Macro(StartPosition, int);
110 vtkGetVector2Macro(EndPosition, int);
112
113protected:
116
117 // The interaction mode
119
120 // Draws the selection rubber band
122
123 // The end position of the selection
125
126 // The start position of the selection
128
129 // The pixel array for the rubber band
131
132 // Whether to trigger a render when the mouse moves
134
135private:
137 void operator=(const vtkInteractorStyleRubberBand3D&) = delete;
138};
139
140VTK_ABI_NAMESPACE_END
141#endif
a simple class to control print indentation
Definition vtkIndent.h:108
void OnMouseWheelForward() override
void OnMouseWheelBackward() override
void OnLeftButtonDown() override
void OnMiddleButtonUp() override
void OnMouseMove() override
Generic event bindings can be overridden in subclasses.
void OnRightButtonDown() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkInteractorStyleRubberBand3D() override
static vtkInteractorStyleRubberBand3D * New()
void OnMiddleButtonDown() override
dynamic, self-adjusting array of unsigned char
#define VTK_MARSHALAUTO