VTK  9.1.0
vtkInteractorStyleJoystickActor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInteractorStyleJoystickActor.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 =========================================================================*/
37 #ifndef vtkInteractorStyleJoystickActor_h
38 #define vtkInteractorStyleJoystickActor_h
39 
40 #include "vtkInteractionStyleModule.h" // For export macro
41 #include "vtkInteractorStyle.h"
42 
43 class vtkCellPicker;
44 
45 // motion flags
46 
47 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleJoystickActor : public vtkInteractorStyle
48 {
49 public:
51 
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
56 
60  void OnMouseMove() override;
61  void OnLeftButtonDown() override;
62  void OnLeftButtonUp() override;
63  void OnMiddleButtonDown() override;
64  void OnMiddleButtonUp() override;
65  void OnRightButtonDown() override;
66  void OnRightButtonUp() override;
68 
69  // These methods for the different interactions in different modes
70  // are overridden in subclasses to perform the correct motion. Since
71  // they might be called from OnTimer, they do not have mouse coord parameters
72  // (use interactor's GetEventPosition and GetLastEventPosition)
73  void Rotate() override;
74  void Spin() override;
75  void Pan() override;
76  void Dolly() override;
77  void UniformScale() override;
78 
79 protected:
82 
83  void FindPickedActor(int x, int y);
84 
86  vtkProp3D* prop3D, double* boxCenter, int numRotation, double** rotate, double* scale);
87 
88  double MotionFactor;
89 
92 
93 private:
95  void operator=(const vtkInteractorStyleJoystickActor&) = delete;
96 };
97 
98 #endif
vtkInteractorStyleJoystickActor::OnLeftButtonUp
void OnLeftButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleJoystickActor::InteractionProp
vtkProp3D * InteractionProp
Definition: vtkInteractorStyleJoystickActor.h:90
vtkInteractorStyle.h
vtkX3D::scale
@ scale
Definition: vtkX3D.h:235
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:93
vtkInteractorStyleJoystickActor::MotionFactor
double MotionFactor
Definition: vtkInteractorStyleJoystickActor.h:88
vtkInteractorStyleJoystickActor::vtkInteractorStyleJoystickActor
vtkInteractorStyleJoystickActor()
vtkInteractorStyleJoystickActor::UniformScale
void UniformScale() override
vtkInteractorStyleJoystickActor::OnLeftButtonDown
void OnLeftButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleJoystickActor::FindPickedActor
void FindPickedActor(int x, int y)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkInteractorStyleJoystickActor::OnRightButtonUp
void OnRightButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleJoystickActor::Dolly
void Dolly() override
vtkInteractorStyleJoystickActor::New
static vtkInteractorStyleJoystickActor * New()
vtkInteractorStyleJoystickActor::Prop3DTransform
void Prop3DTransform(vtkProp3D *prop3D, double *boxCenter, int numRotation, double **rotate, double *scale)
vtkInteractorStyleJoystickActor::InteractionPicker
vtkCellPicker * InteractionPicker
Definition: vtkInteractorStyleJoystickActor.h:91
vtkInteractorStyle
provide event-driven interface to the rendering window (defines trackball mode)
Definition: vtkInteractorStyle.h:207
vtkInteractorStyleJoystickActor::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInteractorStyleJoystickActor::Rotate
void Rotate() override
These methods for the different interactions in different modes are overridden in subclasses to perfo...
vtkInteractorStyleJoystickActor::Spin
void Spin() override
vtkInteractorStyleJoystickActor::OnRightButtonDown
void OnRightButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleJoystickActor::OnMouseMove
void OnMouseMove() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleJoystickActor::Pan
void Pan() override
vtkInteractorStyleJoystickActor
manipulate objects in the scene independently of one another
Definition: vtkInteractorStyleJoystickActor.h:48
vtkCellPicker
ray-cast cell picker for all kinds of Prop3Ds
Definition: vtkCellPicker.h:96
vtkInteractorStyleJoystickActor::OnMiddleButtonUp
void OnMiddleButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleJoystickActor::~vtkInteractorStyleJoystickActor
~vtkInteractorStyleJoystickActor() override
vtkInteractorStyleJoystickActor::OnMiddleButtonDown
void OnMiddleButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.