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