VTK
vtkInteractorStyleTrackballCamera.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInteractorStyleTrackballCamera.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 =========================================================================*/
43 #ifndef vtkInteractorStyleTrackballCamera_h
44 #define vtkInteractorStyleTrackballCamera_h
45 
46 #include "vtkInteractionStyleModule.h" // For export macro
47 #include "vtkInteractorStyle.h"
48 
50 {
51 public:
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
59  virtual void OnMouseMove();
60  virtual void OnLeftButtonDown();
61  virtual void OnLeftButtonUp();
62  virtual void OnMiddleButtonDown();
63  virtual void OnMiddleButtonUp();
64  virtual void OnRightButtonDown();
65  virtual void OnRightButtonUp();
66  virtual void OnMouseWheelForward();
67  virtual void OnMouseWheelBackward();
69 
70  // These methods for the different interactions in different modes
71  // are overridden in subclasses to perform the correct motion. Since
72  // they are called by OnTimer, they do not have mouse coord parameters
73  // (use interactor's GetEventPosition and GetLastEventPosition)
74  virtual void Rotate();
75  virtual void Spin();
76  virtual void Pan();
77  virtual void Dolly();
78 
80 
81  vtkSetMacro(MotionFactor,double);
82  vtkGetMacro(MotionFactor,double);
84 
85 protected:
88 
89  double MotionFactor;
90 
91  virtual void Dolly(double factor);
92 
93 private:
95  void operator=(const vtkInteractorStyleTrackballCamera&); // Not implemented.
96 };
97 
98 #endif
virtual void OnLeftButtonDown()
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)
interactive manipulation of the camera
virtual void OnMouseMove()