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
72
73#ifndef vtkInteractorStyleRubberBand2D_h
74#define vtkInteractorStyleRubberBand2D_h
75
76#include "vtkInteractionStyleModule.h" // For export macro
77#include "vtkInteractorStyle.h"
78#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
79
80VTK_ABI_NAMESPACE_BEGIN
82
83class VTKINTERACTIONSTYLE_EXPORT VTK_MARSHALAUTO vtkInteractorStyleRubberBand2D
84 : public vtkInteractorStyle
85{
86public:
89 void PrintSelf(ostream& os, vtkIndent indent) override;
90
91 void OnLeftButtonDown() override;
92 void OnLeftButtonUp() override;
93 void OnMiddleButtonDown() override;
94 void OnMiddleButtonUp() override;
95 void OnRightButtonDown() override;
96 void OnRightButtonUp() override;
97 void OnMouseMove() override;
98 void OnMouseWheelForward() override;
99 void OnMouseWheelBackward() override;
100
102
105 vtkSetMacro(RenderOnMouseMove, bool);
106 vtkGetMacro(RenderOnMouseMove, bool);
107 vtkBooleanMacro(RenderOnMouseMove, bool);
109
113 enum
114 {
117 };
118
120
123 vtkGetMacro(Interaction, int);
125
126 enum
127 {
132 };
133
135
140 vtkGetVector2Macro(StartPosition, int);
141 vtkGetVector2Macro(EndPosition, int);
143
144protected:
147
148 // The interaction mode
150
151 // Draws the selection rubber band
153
154 // The start position of the selection
156
157 // The end position of the selection
159
160 // The pixel array for the rubber band
162
163 // Whether to render when the mouse moves
165
166private:
168 void operator=(const vtkInteractorStyleRubberBand2D&) = delete;
169};
170
171VTK_ABI_NAMESPACE_END
172#endif
a simple class to control print indentation
Definition vtkIndent.h:108
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