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