VTK
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 =========================================================================*/
38 #ifndef vtkInteractorStyleJoystickCamera_h
39 #define vtkInteractorStyleJoystickCamera_h
40 
41 #include "vtkInteractionStyleModule.h" // For export macro
42 #include "vtkInteractorStyle.h"
43 
45 {
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52 
54  virtual void OnMouseMove();
55  virtual void OnLeftButtonDown();
56  virtual void OnLeftButtonUp();
57  virtual void OnMiddleButtonDown();
58  virtual void OnMiddleButtonUp();
59  virtual void OnRightButtonDown();
60  virtual void OnRightButtonUp();
61  virtual void OnMouseWheelForward();
62  virtual void OnMouseWheelBackward();
64 
65  // These methods for the different interactions in different modes
66  // are overridden in subclasses to perform the correct motion. Since
67  // they are called by OnTimer, they do not have mouse coord parameters
68  // (use interactor's GetEventPosition and GetLastEventPosition)
69  virtual void Rotate();
70  virtual void Spin();
71  virtual void Pan();
72  virtual void Dolly();
73 
74 protected:
77 
78  virtual void Dolly(double factor);
79 
80 private:
82  void operator=(const vtkInteractorStyleJoystickCamera&); // Not implemented.
83 };
84 
85 #endif
virtual void OnLeftButtonDown()
interactive manipulation of the camera
virtual void OnMiddleButtonDown()
virtual void OnRightButtonDown()
virtual void OnLeftButtonUp()
static vtkInteractorStyle * New()
#define VTKINTERACTIONSTYLE_EXPORT
virtual void OnMiddleButtonUp()
virtual void OnMouseWheelForward()
virtual void OnRightButtonUp()
void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void OnMouseWheelBackward()
provide event-driven interface to the rendering window (defines trackball mode)
virtual void OnMouseMove()