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
34 #ifndef vtkInteractorStyleRubberBand3D_h
35 #define vtkInteractorStyleRubberBand3D_h
36 
37 #include "vtkInteractionStyleModule.h" // For export macro
39 
40 VTK_ABI_NAMESPACE_BEGIN
42 
43 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleRubberBand3D
45 {
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
51  void OnLeftButtonDown() override;
52  void OnLeftButtonUp() override;
53  void OnMiddleButtonDown() override;
54  void OnMiddleButtonUp() override;
55  void OnRightButtonDown() override;
56  void OnRightButtonUp() override;
57  void OnMouseMove() override;
58  void OnMouseWheelForward() override;
59  void OnMouseWheelBackward() override;
60 
62 
65  vtkSetMacro(RenderOnMouseMove, bool);
66  vtkGetMacro(RenderOnMouseMove, bool);
67  vtkBooleanMacro(RenderOnMouseMove, bool);
69 
73  enum
74  {
75  SELECT_NORMAL = 0,
76  SELECT_UNION = 1
77  };
78 
80 
83  vtkGetMacro(Interaction, int);
85 
86  enum
87  {
92  SELECTING
93  };
94 
96 
101  vtkGetVector2Macro(StartPosition, int);
102  vtkGetVector2Macro(EndPosition, int);
104 
105 protected:
108 
109  // The interaction mode
111 
112  // Draws the selection rubber band
114 
115  // The end position of the selection
116  int StartPosition[2];
117 
118  // The start position of the selection
119  int EndPosition[2];
120 
121  // The pixel array for the rubber band
123 
124  // Whether to trigger a render when the mouse moves
126 
127 private:
129  void operator=(const vtkInteractorStyleRubberBand3D&) = delete;
130 };
131 
132 VTK_ABI_NAMESPACE_END
133 #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