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