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

Rendering/vtkCocoaRenderWindowInteractor.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkCocoaRenderWindowInteractor.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
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 //  int GetButtonDown();
00121 //  void SetButtonDown(int button);
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   //BTX
00135 
00138   static void (*ClassExitMethod)(void *);
00139   static void (*ClassExitMethodArgDelete)(void *);
00140   static void *ClassExitMethodArg;
00141   //ETX
00143   
00144 private:
00145   vtkCocoaRenderWindowInteractor(const vtkCocoaRenderWindowInteractor&);  // Not implemented.
00146   void operator=(const vtkCocoaRenderWindowInteractor&);  // Not implemented.
00147 };
00148 
00149 #endif
00150 
00151