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

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();
00062   virtual void OnMouseWheelForward();
00063   virtual void OnMouseWheelBackward();
00065 
00066   // These methods for the different interactions in different modes
00067   // are overridden in subclasses to perform the correct motion. Since
00068   // they are called by OnTimer, they do not have mouse coord parameters
00069   // (use interactor's GetEventPosition and GetLastEventPosition)
00070   virtual void Rotate();
00071   virtual void Spin();
00072   virtual void Pan();
00073   virtual void Dolly();
00074   
00075 protected:
00076   vtkInteractorStyleTrackballCamera();
00077   ~vtkInteractorStyleTrackballCamera();
00078 
00079   double MotionFactor;
00080 
00081   virtual void Dolly(double factor);
00082 
00083 private:
00084   vtkInteractorStyleTrackballCamera(const vtkInteractorStyleTrackballCamera&);  // Not implemented.
00085   void operator=(const vtkInteractorStyleTrackballCamera&);  // Not implemented.
00086 };
00087 
00088 #endif

Generated on Mon Jan 21 23:07:34 2008 for VTK by  doxygen 1.4.3-20050530