Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkInteractorStyleJoystickCamera.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkInteractorStyleJoystickCamera.h,v $
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 =========================================================================*/
00049 #ifndef __vtkInteractorStyleJoystickCamera_h
00050 #define __vtkInteractorStyleJoystickCamera_h
00051 
00052 #include "vtkInteractorStyle.h"
00053 
00054 class VTK_RENDERING_EXPORT vtkInteractorStyleJoystickCamera : public vtkInteractorStyle
00055 {
00056 public:
00057   static vtkInteractorStyleJoystickCamera *New();
00058   vtkTypeRevisionMacro(vtkInteractorStyleJoystickCamera,vtkInteractorStyle);
00059   void PrintSelf(ostream& os, vtkIndent indent);
00060 
00062 
00064   virtual void OnMouseMove();
00065   virtual void OnLeftButtonDown();
00066   virtual void OnLeftButtonUp();
00067   virtual void OnMiddleButtonDown();
00068   virtual void OnMiddleButtonUp();
00069   virtual void OnRightButtonDown();
00070   virtual void OnRightButtonUp();
00071   virtual void OnMouseWheelForward();
00072   virtual void OnMouseWheelBackward();
00074 
00075   // These methods for the different interactions in different modes
00076   // are overridden in subclasses to perform the correct motion. Since
00077   // they are called by OnTimer, they do not have mouse coord parameters
00078   // (use interactor's GetEventPosition and GetLastEventPosition)
00079   virtual void Rotate();
00080   virtual void Spin();
00081   virtual void Pan();
00082   virtual void Dolly();
00083 
00084 protected:
00085   vtkInteractorStyleJoystickCamera();
00086   ~vtkInteractorStyleJoystickCamera();
00087 
00088   virtual void Dolly(double factor);
00089 
00090 private:
00091   vtkInteractorStyleJoystickCamera(const vtkInteractorStyleJoystickCamera&);  // Not implemented.
00092   void operator=(const vtkInteractorStyleJoystickCamera&);  // Not implemented.
00093 };
00094 
00095 #endif