forked from pixmeo/osirix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDCMUSRegion.m
66 lines (43 loc) · 2.95 KB
/
DCMUSRegion.m
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) OsiriX Team
All rights reserved.
Distributed under GNU - LGPL
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 "DCMUSRegion.h"
@implementation DCMUSRegion
// Accessors (getters & setters)
@synthesize regionSpatialFormat, regionDataType, regionFlags;
@synthesize regionLocationMinX0, regionLocationMinY0, regionLocationMaxX1, regionLocationMaxY1;
@synthesize referencePixelX0, referencePixelY0;
@synthesize physicalUnitsXDirection, physicalUnitsYDirection;
@synthesize refPixelPhysicalValueX, refPixelPhysicalValueY;
@synthesize physicalDeltaX, physicalDeltaY;
@synthesize dopplerCorrectionAngle;
@synthesize isReferencePixelX0Present, isReferencePixelY0Present;
// Methods
-(NSString*)toString {
NSMutableString *result = [NSMutableString stringWithCapacity:256];
[result appendFormat:@"regionSpatialFormat=%@ ", [[NSNumber numberWithInt: regionSpatialFormat] stringValue]];
[result appendFormat:@"regionDataType=%@ ", [[NSNumber numberWithInt: regionDataType] stringValue]];
[result appendFormat:@"regionFlags=%@ ", [[NSNumber numberWithInt: regionFlags] stringValue]];
[result appendFormat:@"regionLocationMinX0=%@ ", [[NSNumber numberWithInt: regionLocationMinX0] stringValue]];
[result appendFormat:@"regionLocationMinY0=%@ ", [[NSNumber numberWithInt: regionLocationMinY0] stringValue]];
[result appendFormat:@"regionLocationMaxX1=%@ ", [[NSNumber numberWithInt: regionLocationMaxX1] stringValue]];
[result appendFormat:@"regionLocationMaxY1=%@ ", [[NSNumber numberWithInt: regionLocationMaxY1] stringValue]];
[result appendFormat:@"referencePixelX0=%@ ", [[NSNumber numberWithInt: referencePixelX0] stringValue]];
[result appendFormat:@"referencePixelY0=%@ ", [[NSNumber numberWithInt: referencePixelY0] stringValue]];
[result appendFormat:@"physicalUnitsXDirection=%@ ", [[NSNumber numberWithInt: physicalUnitsXDirection] stringValue]];
[result appendFormat:@"physicalUnitsYDirection=%@ ", [[NSNumber numberWithInt: physicalUnitsYDirection] stringValue]];
[result appendFormat:@"refPixelPhysicalValueX=%@ ", [[NSNumber numberWithDouble: refPixelPhysicalValueX] stringValue]];
[result appendFormat:@"refPixelPhysicalValueY=%@ ", [[NSNumber numberWithDouble: refPixelPhysicalValueY] stringValue]];
[result appendFormat:@"physicalDeltaX=%@ ", [[NSNumber numberWithDouble: physicalDeltaX] stringValue]];
[result appendFormat:@"physicalDeltaY=%@ ", [[NSNumber numberWithDouble: physicalDeltaY] stringValue]];
[result appendFormat:@"dopplerCorrectionAngle=%@ ", [[NSNumber numberWithDouble: dopplerCorrectionAngle] stringValue]];
return result;
}
@end