00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkCocoaGLView.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 =========================================================================*/ 00032 #ifndef __vtkCocoaGLView_h 00033 #define __vtkCocoaGLView_h 00034 00035 #import <Cocoa/Cocoa.h> 00036 00037 // Note: This file should be includable by both pure Objective-C and Objective-C++ source files. 00038 // To achieve this, we use the neat technique below: 00039 #ifdef __cplusplus 00040 // Forward declarations 00041 class vtkCocoaRenderWindow; 00042 class vtkCocoaRenderWindowInteractor; 00043 00044 // Type declarations 00045 typedef vtkCocoaRenderWindow* vtkCocoaRenderWindowRef; 00046 typedef vtkCocoaRenderWindowInteractor* vtkCocoaRenderWindowInteractorRef; 00047 #else 00048 // Type declarations 00049 typedef void* vtkCocoaRenderWindowRef; 00050 typedef void* vtkCocoaRenderWindowInteractorRef; 00051 #endif 00052 00053 @interface vtkCocoaGLView : NSView 00054 { 00055 @private 00056 vtkCocoaRenderWindowRef myVTKRenderWindow; 00057 } 00058 00059 - (vtkCocoaRenderWindowRef)getVTKRenderWindow; 00060 - (void)setVTKRenderWindow:(vtkCocoaRenderWindowRef)theVTKRenderWindow; 00061 00062 - (vtkCocoaRenderWindowInteractorRef)getInteractor; 00063 00064 @end 00065 00066 #endif /* __vtkCocoaGLView_h */