Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Rendering/vtkInteractorStyleJoystickCamera.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkInteractorStyleJoystickCamera.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00053 #ifndef __vtkInteractorStyleJoystickCamera_h
00054 #define __vtkInteractorStyleJoystickCamera_h
00055 
00056 #include "vtkInteractorStyle.h"
00057 
00058 class VTK_RENDERING_EXPORT vtkInteractorStyleJoystickCamera : public vtkInteractorStyle
00059 {
00060 public:
00061   static vtkInteractorStyleJoystickCamera *New();
00062   vtkTypeRevisionMacro(vtkInteractorStyleJoystickCamera,vtkInteractorStyle);
00063   void PrintSelf(ostream& os, vtkIndent indent);
00064 
00066 
00068   virtual void OnMouseMove();
00069   virtual void OnLeftButtonDown();
00070   virtual void OnLeftButtonUp();
00071   virtual void OnMiddleButtonDown();
00072   virtual void OnMiddleButtonUp();
00073   virtual void OnRightButtonDown();
00074   virtual void OnRightButtonUp();
00076 
00077   // These methods for the different interactions in different modes
00078   // are overridden in subclasses to perform the correct motion. Since
00079   // they are called by OnTimer, they do not have mouse coord parameters
00080   // (use interactor's GetEventPosition and GetLastEventPosition)
00081   virtual void Rotate();
00082   virtual void Spin();
00083   virtual void Pan();
00084   virtual void Dolly();
00085 
00086 protected:
00087   vtkInteractorStyleJoystickCamera();
00088   ~vtkInteractorStyleJoystickCamera();
00089 
00090 private:
00091   vtkInteractorStyleJoystickCamera(const vtkInteractorStyleJoystickCamera&);  // Not implemented.
00092   void operator=(const vtkInteractorStyleJoystickCamera&);  // Not implemented.
00093 };
00094 
00095 #endif