Rendering/vtkCocoaRenderWindowInteractor.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00040 #ifndef __vtkCocoaRenderWindowInteractor_h
00041 #define __vtkCocoaRenderWindowInteractor_h
00042
00043 #include "vtkRenderWindowInteractor.h"
00044
00045
00046 #ifdef __cplusplus
00047 extern "C" {
00048 #endif
00049
00050 #ifdef __cplusplus
00051 };
00052 #endif
00053
00054
00055
00056 class VTK_RENDERING_EXPORT vtkCocoaRenderWindowInteractor : public vtkRenderWindowInteractor {
00057 public:
00059 static vtkCocoaRenderWindowInteractor *New();
00060
00061 vtkTypeRevisionMacro(vtkCocoaRenderWindowInteractor,vtkRenderWindowInteractor);
00062 void PrintSelf(ostream& os, vtkIndent indent);
00063
00065 virtual void Initialize();
00066
00068
00075 virtual void Enable();
00076 virtual void Disable();
00078
00082 virtual void Start();
00083
00085
00090 vtkSetMacro(InstallMessageProc,int);
00091 vtkGetMacro(InstallMessageProc,int);
00092 vtkBooleanMacro(InstallMessageProc,int);
00094
00099 void TerminateApp(void);
00100
00102
00103 int CreateTimer(int timertype);
00104 int DestroyTimer(void);
00106
00108
00112 static void SetClassExitMethod(void (*f)(void *), void *arg);
00113 static void SetClassExitMethodArgDelete(void (*f)(void *));
00115
00118 virtual void ExitCallback();
00119
00120
00121
00122
00123 protected:
00124 vtkCocoaRenderWindowInteractor();
00125 ~vtkCocoaRenderWindowInteractor();
00126
00127 void *WindowId;
00128 void *ApplicationId;
00129 int TimerId;
00130 void *OldProc;
00131 int InstallMessageProc;
00132
00133
00135
00138 static void (*ClassExitMethod)(void *);
00139 static void (*ClassExitMethodArgDelete)(void *);
00140 static void *ClassExitMethodArg;
00141
00143
00144 private:
00145 vtkCocoaRenderWindowInteractor(const vtkCocoaRenderWindowInteractor&);
00146 void operator=(const vtkCocoaRenderWindowInteractor&);
00147 };
00148
00149 #endif
00150
00151