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

Rendering/vtkInteractorStyleTrackballCamera.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkInteractorStyleTrackballCamera.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 =========================================================================*/
00040 #ifndef __vtkInteractorStyleTrackballCamera_h
00041 #define __vtkInteractorStyleTrackballCamera_h
00042 
00043 #include "vtkInteractorStyle.h"
00044 
00045 class VTK_RENDERING_EXPORT vtkInteractorStyleTrackballCamera : public vtkInteractorStyle
00046 {
00047 public:
00048   static vtkInteractorStyleTrackballCamera *New();
00049   vtkTypeRevisionMacro(vtkInteractorStyleTrackballCamera,vtkInteractorStyle);
00050   void PrintSelf(ostream& os, vtkIndent indent);
00051 
00053 
00055   virtual void OnMouseMove();
00056   virtual void OnLeftButtonDown();
00057   virtual void OnLeftButtonUp();
00058   virtual void OnMiddleButtonDown();
00059   virtual void OnMiddleButtonUp();
00060   virtual void OnRightButtonDown();
00061   virtual void OnRightButtonUp();
00063 
00064   // These methods for the different interactions in different modes
00065   // are overridden in subclasses to perform the correct motion. Since
00066   // they are called by OnTimer, they do not have mouse coord parameters
00067   // (use interactor's GetEventPosition and GetLastEventPosition)
00068   virtual void Rotate();
00069   virtual void Spin();
00070   virtual void Pan();
00071   virtual void Dolly();
00072   
00073 protected:
00074   vtkInteractorStyleTrackballCamera();
00075   ~vtkInteractorStyleTrackballCamera();
00076 
00077   double MotionFactor;
00078 
00079 private:
00080   vtkInteractorStyleTrackballCamera(const vtkInteractorStyleTrackballCamera&);  // Not implemented.
00081   void operator=(const vtkInteractorStyleTrackballCamera&);  // Not implemented.
00082 };
00083 
00084 #endif