VTK  9.3.20240425
vtkCocoaGLView.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
38#ifndef vtkCocoaGLView_h
39#define vtkCocoaGLView_h
40
41#import "vtkRenderingOpenGL2Module.h" // For export macro
42#import <Cocoa/Cocoa.h>
43
44// Note: This file should be includable by both pure Objective-C and Objective-C++ source files.
45// To achieve this, we use the neat technique below:
46#ifdef __cplusplus
47// Forward declarations
48VTK_ABI_NAMESPACE_BEGIN
51
52// Type declarations
55VTK_ABI_NAMESPACE_END
56#else
57// Type declarations
60#endif
61
62VTKRENDERINGOPENGL2_EXPORT
63@interface vtkCocoaGLView : NSView<NSDraggingDestination>
64{
65@private
66 vtkCocoaRenderWindowRef _myVTKRenderWindow;
67 NSTrackingArea* _rolloverTrackingArea;
69
70- (vtkCocoaRenderWindowRef)getVTKRenderWindow;
71- (void)setVTKRenderWindow:(vtkCocoaRenderWindowRef)theVTKRenderWindow;
72
74
75@end
76
77#endif /* vtkCocoaGLView_h */
78// VTK-HeaderTest-Exclude: vtkCocoaGLView.h
implements Cocoa specific functions required by vtkRenderWindowInteractor.
Cocoa OpenGL rendering window.
Cocoa OpenGL rendering context.
void * vtkCocoaRenderWindowRef
void * vtkCocoaRenderWindowInteractorRef