VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
38 #ifndef __vtkCocoaGLView_h
39 #define __vtkCocoaGLView_h
40 
41 #import <Cocoa/Cocoa.h>
42 
43 // Note: This file should be includable by both pure Objective-C and Objective-C++ source files.
44 // To achieve this, we use the neat technique below:
45 #ifdef __cplusplus
46  // Forward declarations
49 
50  // Type declarations
53 #else
54  // Type declarations
55  typedef void* vtkCocoaRenderWindowRef;
57 #endif
58 
59 @interface vtkCocoaGLView : NSView
60 {
61  @private
62  vtkCocoaRenderWindowRef _myVTKRenderWindow;
63  NSTrackingRectTag _rolloverTrackingRectTag;
64  BOOL _rolloverTrackingRectSet;
65 }
66 
67 - (vtkCocoaRenderWindowRef)getVTKRenderWindow;
68 - (void)setVTKRenderWindow:(vtkCocoaRenderWindowRef)theVTKRenderWindow;
69 
70 - (vtkCocoaRenderWindowInteractorRef)getInteractor;
71 
72 @end
73 
74 #endif /* __vtkCocoaGLView_h */
75 // 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