forked from szuchina/osirix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
VTKViewOSIRIX.h
66 lines (51 loc) · 1.5 KB
/
VTKViewOSIRIX.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*=========================================================================
Program: OsiriX
Copyright (c) Pixmeo
All rights reserved.
=========================================================================*/
#ifndef _VTKVIEWOSIRIX_H_INCLUDED_
#define _VTKVIEWOSIRIX_H_INCLUDED_
#import "options.h"
#include <vtkAutoInit.h>
VTK_MODULE_INIT(vtkRenderingOpenGL);
VTK_MODULE_INIT(vtkRenderingVolumeOpenGL);
VTK_MODULE_INIT(vtkRenderingFreeType);
#import <AppKit/AppKit.h>
#ifdef __cplusplus
#import "vtkCocoaGLView.h"
#define id Id
#include "vtkRenderer.h"
#include "vtkRenderWindow.h"
#include "vtkRenderWindowInteractor.h"
#include "vtkCocoaRenderWindowInteractor.h"
#include "vtkCocoaRenderWindow.h"
#undef id
#else
typedef char* vtkCocoaWindow;
typedef char* vtkRenderer;
typedef char* vtkRenderWindow;
typedef char* vtkRenderWindowInteractor;
typedef char* vtkCocoaRenderWindowInteractor;
typedef char* vtkCocoaRenderWindow;
#endif
/** \brief View for using VTK */
@interface VTKView : vtkCocoaGLView
{
vtkCocoaRenderWindow *_cocoaRenderWindow;
vtkRenderer *_renderer;
}
+ (unsigned long) VRAMSizeForDisplayID: (CGDirectDisplayID) displayID;
-(id)initWithFrame:(NSRect)frame;
-(void)dealloc;
// Access to VTK instances
-(vtkRenderer *)renderer;
-(vtkRenderWindow *)renderWindow;
-(vtkCocoaRenderWindow *) cocoaWindow;
-(void)removeAllActors;
-(void) prepareForRelease;
- (void)initializeVTKSupport;
- (void)cleanUpVTKSupport;
// Accessors
- (void)setRenderer:(vtkRenderer*)theRenderer;
@end
#endif