VTK  9.0.20200917
vtkInteractorStyleJoystickCamera.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInteractorStyleJoystickCamera.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 =========================================================================*/
39 #ifndef vtkInteractorStyleJoystickCamera_h
40 #define vtkInteractorStyleJoystickCamera_h
41 
42 #include "vtkInteractionStyleModule.h" // For export macro
43 #include "vtkInteractorStyle.h"
44 
45 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleJoystickCamera : public vtkInteractorStyle
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
57  void OnMouseMove() override;
58  void OnLeftButtonDown() override;
59  void OnLeftButtonUp() override;
60  void OnMiddleButtonDown() override;
61  void OnMiddleButtonUp() override;
62  void OnRightButtonDown() override;
63  void OnRightButtonUp() override;
64  void OnMouseWheelForward() override;
65  void OnMouseWheelBackward() override;
67 
68  // These methods for the different interactions in different modes
69  // are overridden in subclasses to perform the correct motion. Since
70  // they are called by OnTimer, they do not have mouse coord parameters
71  // (use interactor's GetEventPosition and GetLastEventPosition)
72  void Rotate() override;
73  void Spin() override;
74  void Pan() override;
75  void Dolly() override;
76 
77 protected:
80 
81  virtual void Dolly(double factor);
82 
83 private:
85  void operator=(const vtkInteractorStyleJoystickCamera&) = delete;
86 };
87 
88 #endif
vtkInteractorStyle::Dolly
virtual void Dolly()
Definition: vtkInteractorStyle.h:306
vtkInteractorStyle.h
vtkInteractorStyle::Pan
virtual void Pan()
Definition: vtkInteractorStyle.h:305
vtkInteractorStyle::OnMiddleButtonUp
virtual void OnMiddleButtonUp()
Definition: vtkInteractorStyle.h:239
vtkInteractorStyle::OnMouseMove
virtual void OnMouseMove()
Generic event bindings can be overridden in subclasses.
Definition: vtkInteractorStyle.h:235
vtkInteractorStyle::Spin
virtual void Spin()
Definition: vtkInteractorStyle.h:304
vtkInteractorStyle::OnMiddleButtonDown
virtual void OnMiddleButtonDown()
Definition: vtkInteractorStyle.h:238
vtkInteractorStyle::OnRightButtonDown
virtual void OnRightButtonDown()
Definition: vtkInteractorStyle.h:240
vtkInteractorStyle::OnMouseWheelForward
virtual void OnMouseWheelForward()
Definition: vtkInteractorStyle.h:242
vtkInteractorStyle::OnLeftButtonDown
virtual void OnLeftButtonDown()
Definition: vtkInteractorStyle.h:236
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInteractorStyle
provide event-driven interface to the rendering window (defines trackball mode)
Definition: vtkInteractorStyle.h:147
vtkInteractorStyle::OnMouseWheelBackward
virtual void OnMouseWheelBackward()
Definition: vtkInteractorStyle.h:243
vtkInteractorStyle::OnLeftButtonUp
virtual void OnLeftButtonUp()
Definition: vtkInteractorStyle.h:237
vtkInteractorStyleJoystickCamera
interactive manipulation of the camera
Definition: vtkInteractorStyleJoystickCamera.h:45
vtkInteractorStyle::New
static vtkInteractorStyle * New()
This class must be supplied with a vtkRenderWindowInteractor wrapper or parent.
vtkInteractorStyle::Rotate
virtual void Rotate()
These methods for the different interactions in different modes are overridden in subclasses to perfo...
Definition: vtkInteractorStyle.h:303
vtkInteractorStyle::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInteractorStyle::OnRightButtonUp
virtual void OnRightButtonUp()
Definition: vtkInteractorStyle.h:241