VTK  9.7.20260818
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
39
40#ifndef vtkCocoaGLView_h
41#define vtkCocoaGLView_h
42
43#import "vtkRenderingOpenGL2Module.h" // For export macro
44#import <Cocoa/Cocoa.h>
45
46// Note: This file should be includable by both pure Objective-C and Objective-C++ source files.
47// To achieve this, we use the neat technique below:
48#ifdef __cplusplus
49// Forward declarations
50VTK_ABI_NAMESPACE_BEGIN
53
54// Type declarations
57VTK_ABI_NAMESPACE_END
58#else
59// Type declarations
62#endif
63
64VTKRENDERINGOPENGL2_EXPORT
65@interface vtkCocoaGLView : NSView<NSDraggingDestination>
66{
67@private
68 vtkCocoaRenderWindowRef _myVTKRenderWindow;
69 NSTrackingArea* _rolloverTrackingArea;
70 int _keyRepeatCount;
71}
72
73- (vtkCocoaRenderWindowRef)getVTKRenderWindow;
74- (void)setVTKRenderWindow:(vtkCocoaRenderWindowRef)theVTKRenderWindow;
78@end
79
80#endif /* vtkCocoaGLView_h */
81// VTK-HeaderTest-Exclude: vtkCocoaGLView.h
implements Cocoa specific functions required by vtkRenderWindowInteractor.
Cocoa OpenGL rendering window.
Cocoa OpenGL rendering context.
vtkCocoaRenderWindowInteractorRef getInteractor()
void * vtkCocoaRenderWindowRef
void * vtkCocoaRenderWindowInteractorRef