00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef DVPSRIL_H
00031 #define DVPSRIL_H
00032
00033 #include "dcmtk/config/osconfig.h"
00034 #include "dcmtk/dcmdata/dcitem.h"
00035 #include "dcmtk/dcmpstat/dvpstyp.h"
00036
00037 class DVPSReferencedImage;
00038 class DVPSReferencedSeries_PList;
00039
00046 class DVPSReferencedImage_PList
00047 {
00048 public:
00050 DVPSReferencedImage_PList();
00051
00053 DVPSReferencedImage_PList(const DVPSReferencedImage_PList& copy);
00054
00059 DVPSReferencedImage_PList *clone() { return new DVPSReferencedImage_PList(*this); }
00060
00062 virtual ~DVPSReferencedImage_PList();
00063
00072 OFCondition read(DcmItem &dset);
00073
00080 OFCondition write(DcmItem &dset);
00081
00086 void clear();
00087
00094 OFBool isValid(OFString& sopclassuid);
00095
00101 DVPSReferencedImage *findImageReference(const char *sopinstanceuid);
00102
00109 void removeFrameReference(const char *sopinstanceuid, unsigned long frame, unsigned long numberOfFrames);
00110
00115 void removeImageReference(const char *sopinstanceuid);
00116
00127 OFCondition addImageReference(
00128 const char *sopclassUID,
00129 const char *instanceUID,
00130 const char *frames=NULL);
00131
00142 OFCondition addImageReference(
00143 const char *sopclassUID,
00144 const char *instanceUID,
00145 unsigned long frame,
00146 DVPSObjectApplicability applicability);
00147
00160 void removeImageReference(
00161 DVPSReferencedSeries_PList& allReferences,
00162 const char *instanceUID,
00163 unsigned long frame,
00164 unsigned long numberOfFrames,
00165 DVPSObjectApplicability applicability);
00166
00170 size_t size() const { return list_.size(); }
00171
00179 OFCondition getImageReference(
00180 size_t idx,
00181 OFString& sopclassUID,
00182 OFString& instanceUID,
00183 OFString& frames);
00184
00191 OFBool isApplicable(const char *instanceUID, unsigned long frame);
00192
00200 OFBool matchesApplicability(const char *instanceUID, unsigned long frame, DVPSObjectApplicability applicability);
00201
00202 private:
00203
00205 DVPSReferencedImage_PList& operator=(const DVPSReferencedImage_PList&);
00206
00209 OFList<DVPSReferencedImage *> list_;
00210
00211 };
00212
00213
00214 #endif
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264
00265