VTK  9.4.20251007
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
24
25#ifndef vtkInteractorStyleRubberBand3D_h
26#define vtkInteractorStyleRubberBand3D_h
27
28#include "vtkInteractionStyleModule.h" // For export macro
30#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
31
32VTK_ABI_NAMESPACE_BEGIN
34
35class VTKINTERACTIONSTYLE_EXPORT VTK_MARSHALAUTO vtkInteractorStyleRubberBand3D
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
43 void OnLeftButtonDown() override;
44 void OnLeftButtonUp() override;
45 void OnMiddleButtonDown() override;
46 void OnMiddleButtonUp() override;
47 void OnRightButtonDown() override;
48 void OnRightButtonUp() override;
49 void OnMouseMove() override;
50 void OnMouseWheelForward() override;
51 void OnMouseWheelBackward() override;
52
54
57 vtkSetMacro(RenderOnMouseMove, bool);
58 vtkGetMacro(RenderOnMouseMove, bool);
59 vtkBooleanMacro(RenderOnMouseMove, bool);
61
65 enum
66 {
69 };
70
72
75 vtkGetMacro(Interaction, int);
77
78 enum
79 {
85 };
86
88
93 vtkGetVector2Macro(StartPosition, int);
94 vtkGetVector2Macro(EndPosition, int);
96
97protected:
100
101 // The interaction mode
103
104 // Draws the selection rubber band
106
107 // The end position of the selection
109
110 // The start position of the selection
112
113 // The pixel array for the rubber band
115
116 // Whether to trigger a render when the mouse moves
118
119private:
121 void operator=(const vtkInteractorStyleRubberBand3D&) = delete;
122};
123
124VTK_ABI_NAMESPACE_END
125#endif
a simple class to control print indentation
Definition vtkIndent.h:29
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