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

dox/Rendering/vtkInteractorStyleTrackballCamera.h

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