forked from pixmeo/osirix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOSIGeometry.h
63 lines (42 loc) · 1.5 KB
/
OSIGeometry.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
/*=========================================================================
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 <Cocoa/Cocoa.h>
#import "N3Geometry.h"
#ifndef _OSIGEOMETRY_H_
#define _OSIGEOMETRY_H_
#ifdef __OBJC__
#import <Foundation/NSValue.h>
@class NSString;
#endif
CF_EXTERN_C_BEGIN
struct OSISlab {
N3Plane plane;
CGFloat thickness;
};
typedef struct OSISlab OSISlab;
OSISlab OSISlabMake(N3Plane plane, CGFloat thickness);
bool OSISlabEqualTo(OSISlab slab1, OSISlab slab2);
bool OSISlabIsCoincidentToSlab(OSISlab slab1, OSISlab slab2);
bool OSISlabContainsVector(OSISlab slab, N3Vector vector);
bool OSISlabContainsPlane(OSISlab slab, N3Plane plane);
OSISlab OSISlabApplyTransform(OSISlab slab, N3AffineTransform transform);
CFDictionaryRef OSISlabCreateDictionaryRepresentation(OSISlab slab);
bool OSISlabMakeWithDictionaryRepresentation(CFDictionaryRef dict, OSISlab *slab);
CF_EXTERN_C_END
#ifdef __OBJC__
NSString *NSStringFromOSISlab(OSISlab slab);
/** NSValue support. **/
@interface NSValue (OSIGeometryAdditions)
+ (NSValue *)valueWithOSISlab:(OSISlab)slab;
- (OSISlab)OSISlabValue;
@end
#endif /* __OBJC__ */
#endif /* SIGEOMETRY_H_ */