VTK  9.1.0
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
74VTKRENDERINGOPENGL2_EXPORT
75@interface vtkCocoaGLView : NSView<NSDraggingDestination>
76{
77@private
78 vtkCocoaRenderWindowRef _myVTKRenderWindow;
79 NSTrackingArea* _rolloverTrackingArea;
81
82- (vtkCocoaRenderWindowRef)getVTKRenderWindow;
83- (void)setVTKRenderWindow:(vtkCocoaRenderWindowRef)theVTKRenderWindow;
84
86
87@end
88
89#endif
90#endif
91#endif /* vtkCocoaGLView_h */
92// VTK-HeaderTest-Exclude: vtkCocoaGLView.h
implements Cocoa specific functions required by vtkRenderWindowInteractor.
Cocoa OpenGL rendering window.
Cocoa OpenGL rendering context.
void * vtkCocoaRenderWindowRef
void * vtkCocoaRenderWindowInteractorRef