VTK  9.2.6
vtkInteractorStyleRubberBand3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInteractorStyleRubberBand3D.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
60 #ifndef vtkInteractorStyleRubberBand3D_h
61 #define vtkInteractorStyleRubberBand3D_h
62 
63 #include "vtkInteractionStyleModule.h" // For export macro
65 
67 
68 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleRubberBand3D
70 {
71 public:
74  void PrintSelf(ostream& os, vtkIndent indent) override;
75 
76  void OnLeftButtonDown() override;
77  void OnLeftButtonUp() override;
78  void OnMiddleButtonDown() override;
79  void OnMiddleButtonUp() override;
80  void OnRightButtonDown() override;
81  void OnRightButtonUp() override;
82  void OnMouseMove() override;
83  void OnMouseWheelForward() override;
84  void OnMouseWheelBackward() override;
85 
87 
90  vtkSetMacro(RenderOnMouseMove, bool);
91  vtkGetMacro(RenderOnMouseMove, bool);
92  vtkBooleanMacro(RenderOnMouseMove, bool);
94 
98  enum
99  {
100  SELECT_NORMAL = 0,
101  SELECT_UNION = 1
102  };
103 
105 
108  vtkGetMacro(Interaction, int);
110 
111  enum
112  {
117  SELECTING
118  };
119 
121 
126  vtkGetVector2Macro(StartPosition, int);
127  vtkGetVector2Macro(EndPosition, int);
129 
130 protected:
133 
134  // The interaction mode
136 
137  // Draws the selection rubber band
139 
140  // The end position of the selection
141  int StartPosition[2];
142 
143  // The start position of the selection
144  int EndPosition[2];
145 
146  // The pixel array for the rubber band
148 
149  // Whether to trigger a render when the mouse moves
151 
152 private:
154  void operator=(const vtkInteractorStyleRubberBand3D&) = delete;
155 };
156 
157 #endif
a simple class to control print indentation
Definition: vtkIndent.h:119
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