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 =========================================================================*/
39 #ifndef vtkCocoaGLView_h
40 #define vtkCocoaGLView_h
41 
42 #import <Cocoa/Cocoa.h>
43 
44 // Note: This file should be includable by both pure Objective-C and Objective-C++ source files.
45 // To achieve this, we use the neat technique below:
46 #ifdef __cplusplus
47  // Forward declarations
50 
51  // Type declarations
54 #else
55  // Type declarations
56  typedef void *vtkCocoaRenderWindowRef;
58 #endif
59 
60 @interface vtkCocoaGLView : NSView
61 {
62  @private
63  vtkCocoaRenderWindowRef _myVTKRenderWindow;
64  NSTrackingRectTag _rolloverTrackingRectTag;
65  BOOL _rolloverTrackingRectSet;
66 }
67 
68 - (vtkCocoaRenderWindowRef)getVTKRenderWindow;
69 - (void)setVTKRenderWindow:(vtkCocoaRenderWindowRef)theVTKRenderWindow;
70 
71 - (vtkCocoaRenderWindowInteractorRef)getInteractor;
72 
73 @end
74 
75 #endif /* vtkCocoaGLView_h */
76 // VTK-HeaderTest-Exclude: vtkCocoaGLView.h
Cocoa OpenGL rendering window.
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
const GLenum BOOL
Definition: vtkgl.h:11943
implements Cocoa specific functions required by vtkRenderWindowInteractor.
void * vtkCocoaRenderWindowRef
Cocoa OpenGL rendering context.
void * vtkCocoaRenderWindowInteractorRef