VTK
dox
Rendering
OpenGL2
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
=========================================================================*/
42
#ifndef vtkCocoaGLView_h
43
#define vtkCocoaGLView_h
44
45
#include "vtkRenderingOpenGL2Module.h"
// For export macro
46
#import <Cocoa/Cocoa.h>
47
48
// Note: This file should be includable by both pure Objective-C and Objective-C++ source files.
49
// To achieve this, we use the neat technique below:
50
#ifdef __cplusplus
51
// Forward declarations
52
class
vtkCocoaRenderWindow
;
53
class
vtkCocoaRenderWindowInteractor
;
54
55
// Type declarations
56
typedef
vtkCocoaRenderWindow
*
vtkCocoaRenderWindowRef
;
57
typedef
vtkCocoaRenderWindowInteractor
*
vtkCocoaRenderWindowInteractorRef
;
58
#else
59
// Type declarations
60
typedef
void
*
vtkCocoaRenderWindowRef
;
61
typedef
void
*
vtkCocoaRenderWindowInteractorRef
;
62
#endif
63
64
VTKRENDERINGOPENGL2_EXPORT
65
@interface
vtkCocoaGLView
: NSView
66
{
67
@private
68
vtkCocoaRenderWindowRef
_myVTKRenderWindow;
69
NSTrackingArea* _rolloverTrackingArea;
70
}
71
72
- (
vtkCocoaRenderWindowRef
)getVTKRenderWindow;
73
- (void)setVTKRenderWindow:(
vtkCocoaRenderWindowRef
)theVTKRenderWindow;
74
75
- (
vtkCocoaRenderWindowInteractorRef
)getInteractor;
76
77
@end
78
79
#endif
/* vtkCocoaGLView_h */
80
// VTK-HeaderTest-Exclude: vtkCocoaGLView.h
vtkCocoaRenderWindowInteractor
implements Cocoa specific functions required by vtkRenderWindowInteractor.
Definition:
vtkCocoaRenderWindowInteractor.h:44
vtkCocoaGLView
Cocoa OpenGL rendering context.
Definition:
vtkCocoaGLView.h:66
vtkCocoaRenderWindowInteractorRef
void * vtkCocoaRenderWindowInteractorRef
Definition:
vtkCocoaGLView.h:61
vtkCocoaRenderWindowRef
void * vtkCocoaRenderWindowRef
Definition:
vtkCocoaGLView.h:60
vtkCocoaRenderWindow
Cocoa OpenGL rendering window.
Definition:
vtkCocoaRenderWindow.h:50
Generated by
1.8.20