• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Rendering/vtkInteractorStyleImage.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkInteractorStyleImage.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 =========================================================================*/
00046 #ifndef __vtkInteractorStyleImage_h
00047 #define __vtkInteractorStyleImage_h
00048 
00049 #include "vtkInteractorStyleTrackballCamera.h"
00050 
00051 // Motion flags
00052 
00053 #define VTKIS_WINDOW_LEVEL 1024
00054 #define VTKIS_PICK         1025
00055 
00056 class VTK_RENDERING_EXPORT vtkInteractorStyleImage : public vtkInteractorStyleTrackballCamera
00057 {
00058 public:
00059   static vtkInteractorStyleImage *New();
00060   vtkTypeRevisionMacro(vtkInteractorStyleImage, vtkInteractorStyleTrackballCamera);
00061   void PrintSelf(ostream& os, vtkIndent indent);
00062 
00064 
00065   vtkGetVector2Macro(WindowLevelStartPosition,int);
00066   vtkGetVector2Macro(WindowLevelCurrentPosition,int);
00068   
00070 
00072   virtual void OnMouseMove();
00073   virtual void OnLeftButtonDown();
00074   virtual void OnLeftButtonUp();
00075   virtual void OnRightButtonDown();
00076   virtual void OnRightButtonUp();
00078 
00080   virtual void OnChar();
00081 
00082   // These methods for the different interactions in different modes
00083   // are overridden in subclasses to perform the correct motion. Since
00084   // they might be called from OnTimer, they do not have mouse coord parameters
00085   // (use interactor's GetEventPosition and GetLastEventPosition)
00086   virtual void WindowLevel();
00087   virtual void Pick();
00088   
00089   // Interaction mode entry points used internally.  
00090   virtual void StartWindowLevel();
00091   virtual void EndWindowLevel();
00092   virtual void StartPick();
00093   virtual void EndPick();
00094 
00095 protected:
00096   vtkInteractorStyleImage();
00097   ~vtkInteractorStyleImage();
00098 
00099   int WindowLevelStartPosition[2];
00100   int WindowLevelCurrentPosition[2];
00101  
00102 private:
00103   vtkInteractorStyleImage(const vtkInteractorStyleImage&);  // Not implemented.
00104   void operator=(const vtkInteractorStyleImage&);  // Not implemented.
00105 };
00106 
00107 #endif

Generated by  doxygen 1.7.1