VTK
dox/Interaction/Style/vtkInteractorStyleJoystickCamera.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkInteractorStyleJoystickCamera.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00038 #ifndef __vtkInteractorStyleJoystickCamera_h
00039 #define __vtkInteractorStyleJoystickCamera_h
00040 
00041 #include "vtkInteractionStyleModule.h" // For export macro
00042 #include "vtkInteractorStyle.h"
00043 
00044 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleJoystickCamera : public vtkInteractorStyle
00045 {
00046 public:
00047   static vtkInteractorStyleJoystickCamera *New();
00048   vtkTypeMacro(vtkInteractorStyleJoystickCamera,vtkInteractorStyle);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050 
00052 
00054   virtual void OnMouseMove();
00055   virtual void OnLeftButtonDown();
00056   virtual void OnLeftButtonUp();
00057   virtual void OnMiddleButtonDown();
00058   virtual void OnMiddleButtonUp();
00059   virtual void OnRightButtonDown();
00060   virtual void OnRightButtonUp();
00061   virtual void OnMouseWheelForward();
00062   virtual void OnMouseWheelBackward();
00064 
00065   // These methods for the different interactions in different modes
00066   // are overridden in subclasses to perform the correct motion. Since
00067   // they are called by OnTimer, they do not have mouse coord parameters
00068   // (use interactor's GetEventPosition and GetLastEventPosition)
00069   virtual void Rotate();
00070   virtual void Spin();
00071   virtual void Pan();
00072   virtual void Dolly();
00073 
00074 protected:
00075   vtkInteractorStyleJoystickCamera();
00076   ~vtkInteractorStyleJoystickCamera();
00077 
00078   virtual void Dolly(double factor);
00079 
00080 private:
00081   vtkInteractorStyleJoystickCamera(const vtkInteractorStyleJoystickCamera&);  // Not implemented.
00082   void operator=(const vtkInteractorStyleJoystickCamera&);  // Not implemented.
00083 };
00084 
00085 #endif