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 "vtkInteractorStyle.h"
47 
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
56 
58  virtual void OnMouseMove();
59  virtual void OnLeftButtonDown();
60  virtual void OnLeftButtonUp();
61  virtual void OnMiddleButtonDown();
62  virtual void OnMiddleButtonUp();
63  virtual void OnRightButtonDown();
64  virtual void OnRightButtonUp();
65  virtual void OnMouseWheelForward();
66  virtual void OnMouseWheelBackward();
68 
69  // These methods for the different interactions in different modes
70  // are overridden in subclasses to perform the correct motion. Since
71  // they are called by OnTimer, they do not have mouse coord parameters
72  // (use interactor's GetEventPosition and GetLastEventPosition)
73  virtual void Rotate();
74  virtual void Spin();
75  virtual void Pan();
76  virtual void Dolly();
77 
79 
80  vtkSetMacro(MotionFactor,double);
81  vtkGetMacro(MotionFactor,double);
83 
84 protected:
87 
88  double MotionFactor;
89 
90  virtual void Dolly(double factor);
91 
92 private:
94  void operator=(const vtkInteractorStyleTrackballCamera&); // Not implemented.
95 };
96 
97 #endif