VTK  9.3.0
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
22#ifndef vtkInteractorStyleRubberBand3D_h
23#define vtkInteractorStyleRubberBand3D_h
24
25#include "vtkInteractionStyleModule.h" // For export macro
27
28VTK_ABI_NAMESPACE_BEGIN
30
31class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleRubberBand3D
33{
34public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
39 void OnLeftButtonDown() override;
40 void OnLeftButtonUp() override;
41 void OnMiddleButtonDown() override;
42 void OnMiddleButtonUp() override;
43 void OnRightButtonDown() override;
44 void OnRightButtonUp() override;
45 void OnMouseMove() override;
46 void OnMouseWheelForward() override;
47 void OnMouseWheelBackward() override;
48
50
53 vtkSetMacro(RenderOnMouseMove, bool);
54 vtkGetMacro(RenderOnMouseMove, bool);
55 vtkBooleanMacro(RenderOnMouseMove, bool);
57
61 enum
62 {
63 SELECT_NORMAL = 0,
64 SELECT_UNION = 1
65 };
66
68
71 vtkGetMacro(Interaction, int);
73
74 enum
75 {
80 SELECTING
81 };
82
84
89 vtkGetVector2Macro(StartPosition, int);
90 vtkGetVector2Macro(EndPosition, int);
92
93protected:
96
97 // The interaction mode
99
100 // Draws the selection rubber band
102
103 // The end position of the selection
104 int StartPosition[2];
105
106 // The start position of the selection
107 int EndPosition[2];
108
109 // The pixel array for the rubber band
111
112 // Whether to trigger a render when the mouse moves
114
115private:
117 void operator=(const vtkInteractorStyleRubberBand3D&) = delete;
118};
119
120VTK_ABI_NAMESPACE_END
121#endif
a simple class to control print indentation
Definition vtkIndent.h:29
A rubber band interactor for a 3D view.
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
interactive manipulation of the camera
dynamic, self-adjusting array of unsigned char