VTK  9.3.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 
30 VTK_ABI_NAMESPACE_BEGIN
32 
33 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleRubberBandPick
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
41  void StartSelect();
42 
44 
47  void OnMouseMove() override;
48  void OnLeftButtonDown() override;
49  void OnLeftButtonUp() override;
50  void OnChar() override;
52 
53 protected:
56 
57  virtual void Pick();
58  void RedrawRubberBand();
59 
60  int StartPosition[2];
61  int EndPosition[2];
62 
63  int Moving;
64 
66 
68 
69 private:
71  void operator=(const vtkInteractorStyleRubberBandPick&) = delete;
72 };
73 
74 VTK_ABI_NAMESPACE_END
75 #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
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.