VTK  9.7.1
vtkInteractorStyleRubberBandPick.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
24 #ifndef vtkInteractorStyleRubberBandPick_h
25 #define vtkInteractorStyleRubberBandPick_h
26 
27 #include "vtkInteractionStyleModule.h" // For export macro
29 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
30 
31 VTK_ABI_NAMESPACE_BEGIN
33 
34 class VTKINTERACTIONSTYLE_EXPORT VTK_MARSHALAUTO vtkInteractorStyleRubberBandPick
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
42  void StartSelect();
43  void StopSelect();
44 
46 
49  void OnMouseMove() override;
50  void OnLeftButtonDown() override;
51  void OnLeftButtonUp() override;
52  void OnChar() override;
54 
55 protected:
58 
59  virtual void Pick();
60  void RedrawRubberBand();
61 
62  int StartPosition[2];
63  int EndPosition[2];
64 
65  int Moving;
66 
68 
70 
71 private:
73  void operator=(const vtkInteractorStyleRubberBandPick&) = delete;
74 };
75 
76 VTK_ABI_NAMESPACE_END
77 #endif
Like TrackBallCamera, but this can pick props underneath a rubber band selection rectangle.
void OnChar() override
OnChar is triggered when an ASCII key is pressed.
static vtkInteractorStyleTrackballCamera * New()
a simple class to control print indentation
Definition: vtkIndent.h:28
void OnMouseMove() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
dynamic, self-adjusting array of unsigned char
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
interactive manipulation of the camera
#define VTK_MARSHALAUTO
void OnLeftButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnLeftButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.