Rendering/vtkCarbonRenderWindowInteractor.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00042 #ifndef __vtkCarbonRenderWindowInteractor_h
00043 #define __vtkCarbonRenderWindowInteractor_h
00044
00045 #include "vtkRenderWindowInteractor.h"
00046
00047 #include <Carbon/Carbon.h>
00048
00049
00050 class VTK_RENDERING_EXPORT vtkCarbonRenderWindowInteractor : public vtkRenderWindowInteractor {
00051 public:
00053 static vtkCarbonRenderWindowInteractor *New();
00054
00055 vtkTypeRevisionMacro(vtkCarbonRenderWindowInteractor,vtkRenderWindowInteractor);
00056 void PrintSelf(ostream& os, vtkIndent indent);
00057
00059 virtual void Initialize();
00060
00062
00069 virtual void Enable();
00070 virtual void Disable();
00072
00076 virtual void Start();
00077
00079
00084 vtkSetMacro(InstallMessageProc,int);
00085 vtkGetMacro(InstallMessageProc,int);
00086 vtkBooleanMacro(InstallMessageProc,int);
00088
00093 void TerminateApp(void);
00094
00096
00097 int CreateTimer(int timertype);
00098 int DestroyTimer(void);
00100
00102
00106 static void SetClassExitMethod(void (*f)(void *), void *arg);
00107 static void SetClassExitMethodArgDelete(void (*f)(void *));
00109
00112 virtual void ExitCallback();
00113
00114
00115
00116
00117 protected:
00118 vtkCarbonRenderWindowInteractor();
00119 ~vtkCarbonRenderWindowInteractor();
00120
00121 WindowPtr WindowId;
00122 EventLoopTimerRef TimerId;
00123 EventHandlerUPP OldProc;
00124 int InstallMessageProc;
00125
00126
00127
00129
00132 static void (*ClassExitMethod)(void *);
00133 static void (*ClassExitMethodArgDelete)(void *);
00134 static void *ClassExitMethodArg;
00135
00137
00138 private:
00139 vtkCarbonRenderWindowInteractor(const vtkCarbonRenderWindowInteractor&);
00140 void operator=(const vtkCarbonRenderWindowInteractor&);
00141 };
00142
00143 #endif
00144
00145