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

vtkCarbonRenderWindowInteractor.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkCarbonRenderWindowInteractor.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 =========================================================================*/
00038 #ifndef __vtkCarbonRenderWindowInteractor_h
00039 #define __vtkCarbonRenderWindowInteractor_h
00040 
00041 #include "vtkRenderWindowInteractor.h"
00042 
00043 #include <Carbon/Carbon.h> // Needed for Carbon types
00044 
00045 
00046 class VTK_RENDERING_EXPORT vtkCarbonRenderWindowInteractor : public vtkRenderWindowInteractor {
00047 public:
00049   static vtkCarbonRenderWindowInteractor *New();
00050 
00051   vtkTypeRevisionMacro(vtkCarbonRenderWindowInteractor,vtkRenderWindowInteractor);
00052   void PrintSelf(ostream& os, vtkIndent indent);
00053 
00055   virtual void Initialize();
00056 
00058 
00065   virtual void Enable();
00066   virtual void Disable();
00068 
00072   virtual void Start();
00073 
00075 
00080   vtkSetMacro(InstallMessageProc,int);
00081   vtkGetMacro(InstallMessageProc,int);
00082   vtkBooleanMacro(InstallMessageProc,int);
00084 
00089   void TerminateApp(void);
00090 
00092 
00093   int CreateTimer(int timertype);
00094   int DestroyTimer(void);
00096 
00098 
00102   static void SetClassExitMethod(void (*f)(void *), void *arg);
00103   static void SetClassExitMethodArgDelete(void (*f)(void *));
00105 
00108   virtual void ExitCallback();
00109   
00110 //  int GetButtonDown();
00111 //  void SetButtonDown(int button);
00112 
00113 protected:
00114   vtkCarbonRenderWindowInteractor();
00115   ~vtkCarbonRenderWindowInteractor();
00116 
00117   WindowPtr         WindowId;
00118   EventLoopTimerRef TimerId;
00119   EventHandlerUPP   OldProc;
00120   int               InstallMessageProc;
00121 
00122 
00123   //BTX
00125 
00128   static void (*ClassExitMethod)(void *);
00129   static void (*ClassExitMethodArgDelete)(void *);
00130   static void *ClassExitMethodArg;
00131   //ETX
00133   
00134 private:
00135   vtkCarbonRenderWindowInteractor(const vtkCarbonRenderWindowInteractor&);  // Not implemented.
00136   void operator=(const vtkCarbonRenderWindowInteractor&);  // Not implemented.
00137 };
00138 
00139 #endif
00140 
00141