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