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