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 =========================================================================*/
42 #ifndef vtkCocoaGLView_h
43 #define vtkCocoaGLView_h
44 
45 #include "vtkRenderingOpenGL2Module.h" // For export macro
46 #import <Cocoa/Cocoa.h>
47 
48 // Note: This file should be includable by both pure Objective-C and Objective-C++ source files.
49 // To achieve this, we use the neat technique below:
50 #ifdef __cplusplus
51  // Forward declarations
54 
55  // Type declarations
58 #else
59  // Type declarations
60  typedef void *vtkCocoaRenderWindowRef;
62 #endif
63 
64 VTKRENDERINGOPENGL2_EXPORT
65 @interface vtkCocoaGLView : NSView
66 {
67  @private
68  vtkCocoaRenderWindowRef _myVTKRenderWindow;
69  NSTrackingArea* _rolloverTrackingArea;
70 }
71 
72 - (vtkCocoaRenderWindowRef)getVTKRenderWindow;
73 - (void)setVTKRenderWindow:(vtkCocoaRenderWindowRef)theVTKRenderWindow;
74 
75 - (vtkCocoaRenderWindowInteractorRef)getInteractor;
76 
77 @end
78 
79 #endif /* vtkCocoaGLView_h */
80 // VTK-HeaderTest-Exclude: vtkCocoaGLView.h
Cocoa OpenGL rendering window.
implements Cocoa specific functions required by vtkRenderWindowInteractor.
void * vtkCocoaRenderWindowRef
Cocoa OpenGL rendering context.
void * vtkCocoaRenderWindowInteractorRef