forked from pixmeo/osirix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDCMWaveform.h
268 lines (195 loc) · 10.5 KB
/
DCMWaveform.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
/*=========================================================================
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 <Foundation/Foundation.h>
#ifdef __cplusplus
extern "C" {
#endif
@class DCMWaveformSequence;
@interface DCMWaveform : NSObject {
NSMutableArray* _sequences;
}
- (DCMWaveformSequence*)newSequence;
- (NSArray*)sequences;
@end
typedef enum {
DCMWaveformOriginalityOriginal,
DCMWaveformOriginalityDerived
} DCMWaveformOriginality;
@class DCMWaveformChannelDefinition;
typedef enum {
DCMWaveformSampleInterpretationSB,
DCMWaveformSampleInterpretationUB,
DCMWaveformSampleInterpretationMB,
DCMWaveformSampleInterpretationAB,
DCMWaveformSampleInterpretationSS,
DCMWaveformSampleInterpretationUS
} DCMWaveformSampleInterpretation;
@interface DCMWaveformSequence : NSObject {
CGFloat _multiplexgroupTimeOffset; // (0018,1068) MultiplexgroupTimeOffset 1C DS [1]
CGFloat _triggerTimeOffset; // (0018,1069) TriggerTimeOffset 1C DS [1]
unsigned int _triggerSamplePosition; // (0018,106E) TriggerSamplePosition 3 UL [1]
DCMWaveformOriginality _waveformOriginality; // (003A,0004) WaveformOriginality 1 CS [1]
unsigned short _numberOfWaveformChannels; // (003A,0005) NumberOfWaveformChannels 1 US [1]
unsigned int _numberOfWaveformSamples; // (003A,0010) NumberOfWaveformSamples 1 UL [1]
CGFloat _samplingFrequency; // (003A,001A) SamplingFrequency 1 DS [1]
NSString* _multiplexGroupLabel; // (003A,0020) MultiplexGroupLabel 3 SH [1]
NSMutableArray* _channelDefinitions; // (003A,0200) ChannelDefinitionSequence 1 SQ [1] (1+)
unsigned short _waveformBitsAllocated; // (5400,1004) WaveformBitsAllocated 1 US [1]
DCMWaveformSampleInterpretation _waveformSampleInterpretation; // (5400,1006) WaveformSampleInterpretation 1 CS [1]
NSData* _waveformPaddingValue; // (5400,100A) WaveformPaddingValue 1C OB/OW [1]
NSData* _waveformData; // (5400,1010) WaveformData 1 OB/OW [1]
// internals...
NSMutableData* _buffer;
}
@property CGFloat multiplexgroupTimeOffset;
@property CGFloat triggerTimeOffset;
@property unsigned int triggerSamplePosition;
@property DCMWaveformOriginality waveformOriginality;
@property unsigned short numberOfWaveformChannels;
@property unsigned int numberOfWaveformSamples;
@property CGFloat samplingFrequency;
@property(retain) NSString* multiplexGroupLabel;
@property(retain,readonly) NSArray* channelDefinitions;
@property unsigned short waveformBitsAllocated;
@property DCMWaveformSampleInterpretation waveformSampleInterpretation;
- (void)setWaveformOriginalityCS:(char*)cs;
- (void)setWaveformSampleInterpretationCS:(char*)cs;
- (void)setWaveformPaddingValue:(void*)data length:(size_t)length;
- (void)setWaveformData:(void*)data length:(size_t)length;
- (DCMWaveformChannelDefinition*)newChannelDefinition;
- (CGFloat*)getValues:(NSUInteger*)numberOfValues;
@end
typedef enum {
DCMWaveformChannelStatusOk,
DCMWaveformChannelStatusTestData,
DCMWaveformChannelStatusDisconnected,
DCMWaveformChannelStatusQuestionable,
DCMWaveformChannelStatusInvalid,
DCMWaveformChannelStatusUncalibrated,
DCMWaveformChannelStatusUnzeroed
} DCMWaveformChannelStatus;
@class DCMWaveformChannelSource;
@class DCMWaveformChannelSourceModifier;
@class DCMWaveformSourceWaveform;
@class DCMWaveformChannelSensitivityUnit;
@interface DCMWaveformChannelDefinition : NSObject {
NSInteger _waveformChannelNumber; // (003A,0202) WaveformChannelNumber 3 IS [1]
NSString* _channelLabel; // (003A,0203) ChannelLabel 3 SH [1]
DCMWaveformChannelStatus _channelStatus; // (003A,0205) ChannelStatus 3 CS [1-n]
DCMWaveformChannelSource* _channelSource; // (003A,0208) ChannelSourceSequence 1 SQ [1] (1)
NSMutableArray* _channelSourceModifiers; // (003A,0209) ChannelSourceModifiersSequence 1C SQ [1] (1+)
NSMutableArray* _sourceWaveforms; // (003A,020A) SourceWaveformSequence 3 SQ [1] (1+)
NSString* _channelDerivationDescription; // (003A,020C) ChannelDerivationDescription 3 LO [1]
CGFloat _channelSensitivity; // (003A,0210) ChannelSensitivity 1C DS [1]
DCMWaveformChannelSensitivityUnit* _channelSensitivityUnit; // (003A,0211) ChannelSensitivityUnitsSequence 1C SQ [1] (1)
CGFloat _channelSensitivityCorrectionFactor; // (003A,0212) ChannelSensitivityCorrectionFactor 1C DS [1]
CGFloat _channelBaseline; // (003A,0213) ChannelBaseline 1C DS [1]
CGFloat _channelTimeSkew; // (003A,0214) ChannelTimeSkew 1C DS [1]
CGFloat _channelSampleSkew; // (003A,0215) ChannelSampleSkew 1C DS [1]
CGFloat _channelOffset; // (003A,0218) ChannelOffset 3 DS [1]
unsigned short _waveformBitsStored; // (003A,021A) WaveformBitsStored 1 US [1]
CGFloat _filterLowFrequency; // (003A,0220) FilterLowFrequency 3 DS [1]
CGFloat _filterHighFrequency; // (003A,0221) FilterHighFrequency 3 DS [1]
CGFloat _notchFilterFrequency; // (003A,0222) NotchFilterFrequency 3 DS [1]
CGFloat _notchFilterBandwidth; // (003A,0223) NotchFilterBandwidth 3 DS [1]
NSData* _channelMinimumValue; // (5400,0110) ChannelMinimumValue 3 OB/OW [1]
NSData* _channelMaximumValue; // (5400,0112) ChannelMaximumValue 3 OB/OW [1]
// internals...
CGFloat _min, _max;
}
@property NSInteger waveformChannelNumber;
@property(retain) NSString* channelLabel;
@property DCMWaveformChannelStatus channelStatus;
@property(retain,readonly) DCMWaveformChannelSource* channelSource;
@property(retain,readonly) NSArray* channelSourceModifiers;
@property(retain,readonly) NSArray* sourceWaveforms;
@property(retain) NSString* channelDerivationDescription;
@property CGFloat channelSensitivity;
@property(retain,readonly) DCMWaveformChannelSensitivityUnit* channelSensitivityUnit;
@property CGFloat channelSensitivityCorrectionFactor;
@property CGFloat channelBaseline;
@property CGFloat channelTimeSkew;
@property CGFloat channelSampleSkew;
@property CGFloat channelOffset;
@property unsigned short waveformBitsStored;
@property CGFloat filterLowFrequency;
@property CGFloat filterHighFrequency;
@property CGFloat notchFilterFrequency;
@property CGFloat notchFilterBandwidth;
- (void)setChannelStatusCS:(char*)cs;
- (void)setChannelMinimumValue:(void*)data length:(size_t)length;
- (void)setChannelMaximumValue:(void*)data length:(size_t)length;
- (DCMWaveformChannelSource*)newChannelSource; // 1
- (DCMWaveformChannelSourceModifier*)newChannelSourceModifier;
- (DCMWaveformSourceWaveform*)newSourceWaveform;
- (DCMWaveformChannelSensitivityUnit*)newChannelSensitivityUnit; // 1
- (void)getValuesMin:(CGFloat*)min max:(CGFloat*)max;
- (void)setValuesMin:(CGFloat)min max:(CGFloat)max;
@end
typedef enum {
DCMMappingResourceDCMR, // DICOM Content Mapping Resource
DCMMappingResourceSDM // SNOMED DICOM Microglossary (Retired)
} DCMMappingResource;
typedef enum {
DCMContextGroupExtensionFlagY,
DCMContextGroupExtensionFlagN
} DCMContextGroupExtensionFlag;
@interface DCMCodeSequenceMacro : NSObject {
NSString* _codeValue; // (0008,0100) CodeValue 1 SH [1]
NSString* _codingSchemeDesignator; // (0008,0102) CodingSchemeDesignator 1 SH [1]
NSString* _codingSchemeVersion; // (0008,0103) CodingSchemeVersion 1C SH [1]
NSString* _codeMeaning; // (0008,0104) CodeMeaning 1 LO [1]
NSString* _contextIdentifier; // (0008,010F) ContextIdentifier 3 CS [1] // TODO: maybe this should be an enum...
NSString* _contextUID; // (0008,0117) ContextUID 3 UI [1]
DCMMappingResource _mappingResource; // (0008,0105) MappingResource 1C CS [1]
NSDate* _contextGroupVersion; // (0008,0106) ContextGroupVersion 1C DT [1]
DCMContextGroupExtensionFlag _contextGroupExtensionFlag; // (0008,010B) ContextGroupExtensionFlag 3 CS [1]
NSDate* _contextGroupLocalVersion; // (0008,0107) ContextGroupLocalVersion 1C DT [1]
NSString* _contextGroupExtensionCreatorUID; // (0008,010D) ContextGroupExtensionCreatorUID 1C UI [1]
}
@property(retain) NSString* codeValue;
@property(retain) NSString* codingSchemeDesignator;
@property(retain) NSString* codingSchemeVersion;
@property(retain) NSString* codeMeaning;
@property(retain) NSString* contextIdentifier;
@property(retain) NSString* contextUID;
@property DCMMappingResource mappingResource;
@property(retain) NSDate* contextGroupVersion;
@property DCMContextGroupExtensionFlag contextGroupExtensionFlag;
@property(retain) NSDate* contextGroupLocalVersion;
@property(retain) NSString* contextGroupExtensionCreatorUID;
- (void)setMappingResourceCS:(char*)cs;
- (void)setContextGroupExtensionFlagCS:(char*)cs;
@end
@interface DCMSOPInstanceReferenceMacro : NSObject {
NSString* _referencedSOPClassUID; // (0008,1150) ReferencedSOPClassUID 1 UI [1]
NSString* _referencedSOPInstanceUID; // (0008,1155) ReferencedSOPInstanceUID 1 UI [1]
}
@property(retain) NSString* referencedSOPClassUID;
@property(retain) NSString* referencedSOPInstanceUID;
@end
@interface DCMWaveformChannelSource : DCMCodeSequenceMacro {
}
@end
@interface DCMWaveformChannelSourceModifier : DCMCodeSequenceMacro {
}
@end
@interface DCMWaveformSourceWaveform : DCMSOPInstanceReferenceMacro {
unsigned short _referencedWaveformChannels; // (0040,A0B0) ReferencedWaveformChannels 1 US [2-2n]
}
@property unsigned short referencedWaveformChannels;
@end
@interface DCMWaveformChannelSensitivityUnit : DCMCodeSequenceMacro {
}
@end
#ifdef __cplusplus
}
#endif