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
31#ifndef vtkInteractorStyleRubberBand3D_h
32#define vtkInteractorStyleRubberBand3D_h
33
34#include "vtkInteractionStyleModule.h" // For export macro
36
37VTK_ABI_NAMESPACE_BEGIN
39
40class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleRubberBand3D
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
48 void OnLeftButtonDown() override;
49 void OnLeftButtonUp() override;
50 void OnMiddleButtonDown() override;
51 void OnMiddleButtonUp() override;
52 void OnRightButtonDown() override;
53 void OnRightButtonUp() override;
54 void OnMouseMove() override;
55 void OnMouseWheelForward() override;
56 void OnMouseWheelBackward() override;
57
59
62 vtkSetMacro(RenderOnMouseMove, bool);
63 vtkGetMacro(RenderOnMouseMove, bool);
64 vtkBooleanMacro(RenderOnMouseMove, bool);
66
70 enum
71 {
72 SELECT_NORMAL = 0,
73 SELECT_UNION = 1
74 };
75
77
80 vtkGetMacro(Interaction, int);
82
83 enum
84 {
89 SELECTING
90 };
91
93
98 vtkGetVector2Macro(StartPosition, int);
99 vtkGetVector2Macro(EndPosition, int);
101
102protected:
105
106 // The interaction mode
108
109 // Draws the selection rubber band
111
112 // The end position of the selection
113 int StartPosition[2];
114
115 // The start position of the selection
116 int EndPosition[2];
117
118 // The pixel array for the rubber band
120
121 // Whether to trigger a render when the mouse moves
123
124private:
126 void operator=(const vtkInteractorStyleRubberBand3D&) = delete;
127};
128
129VTK_ABI_NAMESPACE_END
130#endif
a simple class to control print indentation
Definition vtkIndent.h:38
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