/
Camera.h
69 lines (59 loc) · 1.86 KB
/
Camera.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
67
68
69
/*=========================================================================
Program: OsiriX
Copyright(c) OsiriX Team
All rights reserved.
Distributed under GNU - GPL
See http://www.osirix-viewer.com/copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
=========================================================================*/
#import <Cocoa/Cocoa.h>
#import "Point3D.h"
@interface Camera : NSObject {
Point3D *position, *viewUp, *focalPoint, *minCroppingPlanes, *maxCroppingPlanes;
float clippingRangeNear, clippingRangeFar, viewAngle, eyeAngle, parallelScale;
NSImage *previewImage;
float wl, ww, fusionPercentage;
BOOL is4D;
long movieIndexIn4D;
}
- (id)init;
- (id)initWithCamera:(Camera *)c;
- (void)setPosition:(Point3D *)p;
- (Point3D *)position;
- (void)setViewUp:(Point3D *)p;
- (Point3D *)viewUp;
- (void)setFocalPoint:(Point3D *)p;
- (Point3D *)focalPoint;
- (void)setClippingRangeFrom:(float)near To:(float)far;
- (float)clippingRangeNear;
- (float)clippingRangeFar;
- (void)setViewAngle:(float)angle;
- (float)viewAngle;
- (void)setEyeAngle:(float)angle;
- (float)eyeAngle;
- (void)setParallelScale:(float)scale;
- (float)parallelScale;
// window level
- (void)setWLWW:(float)newWl :(float)newWw;
- (float)wl;
- (float)ww;
// cropping planes
- (void)setMinCroppingPlanes:(Point3D *)p;
- (Point3D *)minCroppingPlanes;
- (void)setMaxCroppingPlanes:(Point3D *)p;
- (Point3D *)maxCroppingPlanes;
// fusion
- (void)setFusionPercentage:(float)f;
- (float)fusionPercentage;
// 4D
- (void)setIs4D:(BOOL)boo;
- (BOOL)is4D;
- (void)setMovieIndexIn4D:(long)i;
- (long)movieIndexIn4D;
- (void)setPreviewImage:(NSImage *)im;
- (NSImage *)previewImage;
- (NSMutableDictionary *)exportToXML;
- (id)initWithDictionary:(NSDictionary *)xml;
@end