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