VTK  9.2.20230327
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
60 VTK_ABI_NAMESPACE_BEGIN
63 
64 // Type declarations
67 VTK_ABI_NAMESPACE_END
68 #else
69 // Type declarations
72 #endif
73 
74 VTKRENDERINGOPENGL2_EXPORT
75 @interface vtkCocoaGLView : NSView<NSDraggingDestination>
76 {
77 @private
78  vtkCocoaRenderWindowRef _myVTKRenderWindow;
79  NSTrackingArea* _rolloverTrackingArea;
80 }
81 
82 - (vtkCocoaRenderWindowRef)getVTKRenderWindow;
83 - (void)setVTKRenderWindow:(vtkCocoaRenderWindowRef)theVTKRenderWindow;
84 
85 - (vtkCocoaRenderWindowInteractorRef)getInteractor;
86 
87 @end
88 
89 #endif /* vtkCocoaGLView_h */
90 // VTK-HeaderTest-Exclude: vtkCocoaGLView.h
implements Cocoa specific functions required by vtkRenderWindowInteractor.
Cocoa OpenGL rendering window.
Cocoa OpenGL rendering context.
void * vtkCocoaRenderWindowRef
void * vtkCocoaRenderWindowInteractorRef