00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkGenericRenderWindowInteractor.h 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 =========================================================================*/ 00028 #ifndef __vtkGenericRenderWindowInteractor_h 00029 #define __vtkGenericRenderWindowInteractor_h 00030 00031 #include "vtkRenderWindowInteractor.h" 00032 00033 class VTK_RENDERING_EXPORT vtkGenericRenderWindowInteractor : public vtkRenderWindowInteractor 00034 { 00035 public: 00036 static vtkGenericRenderWindowInteractor *New(); 00037 vtkTypeMacro(vtkGenericRenderWindowInteractor,vtkRenderWindowInteractor); 00038 void PrintSelf(ostream& os, vtkIndent indent); 00039 00041 00044 virtual void MouseMoveEvent(); 00045 virtual void RightButtonPressEvent(); 00046 virtual void RightButtonReleaseEvent(); 00047 virtual void LeftButtonPressEvent(); 00048 virtual void LeftButtonReleaseEvent(); 00049 virtual void MiddleButtonPressEvent(); 00050 virtual void MiddleButtonReleaseEvent(); 00051 virtual void MouseWheelForwardEvent(); 00052 virtual void MouseWheelBackwardEvent(); 00053 virtual void ExposeEvent(); 00054 virtual void ConfigureEvent(); 00055 virtual void EnterEvent(); 00056 virtual void LeaveEvent(); 00057 virtual void TimerEvent(); 00058 virtual void KeyPressEvent(); 00059 virtual void KeyReleaseEvent(); 00060 virtual void CharEvent(); 00061 virtual void ExitEvent(); 00063 00065 00076 vtkSetMacro(TimerEventResetsTimer, int); 00077 vtkGetMacro(TimerEventResetsTimer, int); 00078 vtkBooleanMacro(TimerEventResetsTimer, int); 00080 00081 protected: 00082 vtkGenericRenderWindowInteractor(); 00083 ~vtkGenericRenderWindowInteractor(); 00084 00086 00088 virtual int InternalCreateTimer(int timerId, int timerType, unsigned long duration); 00089 virtual int InternalDestroyTimer(int platformTimerId); 00091 00092 int TimerEventResetsTimer; 00093 00094 private: 00095 vtkGenericRenderWindowInteractor(const vtkGenericRenderWindowInteractor&); // Not implemented. 00096 void operator=(const vtkGenericRenderWindowInteractor&); // Not implemented. 00097 }; 00098 00099 #endif