VTK  9.0.20200808
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 #ifndef __VTK_WRAP__
53 #ifndef VTK_WRAPPING_CXX
54 
55 #import "vtkRenderingOpenGL2Module.h" // For export macro
56 #import <Cocoa/Cocoa.h>
57 
58 // Note: This file should be includable by both pure Objective-C and Objective-C++ source files.
59 // To achieve this, we use the neat technique below:
60 #ifdef __cplusplus
61 // Forward declarations
64 
65 // Type declarations
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
90 #endif
91 #endif /* vtkCocoaGLView_h */
92 // VTK-HeaderTest-Exclude: vtkCocoaGLView.h
vtkCocoaRenderWindowInteractor
implements Cocoa specific functions required by vtkRenderWindowInteractor.
Definition: vtkCocoaRenderWindowInteractor.h:43
vtkCocoaGLView
Cocoa OpenGL rendering context.
Definition: vtkCocoaGLView.h:75
vtkCocoaRenderWindowInteractorRef
void * vtkCocoaRenderWindowInteractorRef
Definition: vtkCocoaGLView.h:71
vtkCocoaRenderWindowRef
void * vtkCocoaRenderWindowRef
Definition: vtkCocoaGLView.h:70
vtkCocoaRenderWindow
Cocoa OpenGL rendering window.
Definition: vtkCocoaRenderWindow.h:49