VTK
vtkCocoaGLView.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCocoaGLView.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
41 #ifndef vtkCocoaGLView_h
42 #define vtkCocoaGLView_h
43 
44 #import <Cocoa/Cocoa.h>
45 
46 // Note: This file should be includable by both pure Objective-C and Objective-C++ source files.
47 // To achieve this, we use the neat technique below:
48 #ifdef __cplusplus
49  // Forward declarations
52 
53  // Type declarations
56 #else
57  // Type declarations
58  typedef void *vtkCocoaRenderWindowRef;
60 #endif
61 
62 @interface vtkCocoaGLView : NSView
63 {
64  @private
65  vtkCocoaRenderWindowRef _myVTKRenderWindow;
66  NSTrackingArea* _rolloverTrackingArea;
67 }
68 
69 - (vtkCocoaRenderWindowRef)getVTKRenderWindow;
70 - (void)setVTKRenderWindow:(vtkCocoaRenderWindowRef)theVTKRenderWindow;
71 
72 - (vtkCocoaRenderWindowInteractorRef)getInteractor;
73 
74 @end
75 
76 #endif /* vtkCocoaGLView_h */
77 // VTK-HeaderTest-Exclude: vtkCocoaGLView.h
Cocoa OpenGL rendering window.
implements Cocoa specific functions required by vtkRenderWindowInteractor.
void * vtkCocoaRenderWindowRef
Cocoa OpenGL rendering context.
void * vtkCocoaRenderWindowInteractorRef