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
00031
00032
00033
00034 #ifndef __DVPSALL_H__
00035 #define __DVPSALL_H__
00036
00037 #include "dcmtk/config/osconfig.h"
00038 #include "dcmtk/ofstd/oflist.h"
00039 #include "dcmtk/dcmdata/dctk.h"
00040
00041 #include "dcmtk/dcmpstat/dvpstyp.h"
00042
00043 class DVPSGraphicLayer_PList;
00044 class DVPSOverlay_PList;
00045 class DVPSOverlayCurveActivationLayer;
00046
00055 class DVPSOverlayCurveActivationLayer_PList
00056 {
00057 public:
00059 DVPSOverlayCurveActivationLayer_PList();
00060
00062 DVPSOverlayCurveActivationLayer_PList(const DVPSOverlayCurveActivationLayer_PList& copy);
00063
00068 DVPSOverlayCurveActivationLayer_PList *clone() { return new DVPSOverlayCurveActivationLayer_PList(*this); }
00069
00071 virtual ~DVPSOverlayCurveActivationLayer_PList();
00072
00079 OFCondition read(DcmItem &dset);
00080
00087 OFCondition write(DcmItem &dset);
00088
00093 void clear();
00094
00109 OFCondition createFromImage(DcmItem &dset,
00110 DVPSGraphicLayer_PList &gLayerList,
00111 DVPSOverlay_PList &overlayList,
00112 DVPSoverlayActivation overlayActivation,
00113 OFBool curveActivation,
00114 DVPSGraphicLayering layering);
00115
00122 OFCondition setActivation(Uint16 group, const char *layer);
00123
00126 void removeActivation(Uint16 group);
00127
00131 const char *getActivationLayer(Uint16 group);
00132
00140 void renameLayer(const char *oldName, const char *newName);
00141
00146 void removeLayer(const char *name);
00147
00153 OFBool usesLayerName(const char *name);
00154
00164 size_t getNumberOfActivations(const char *layer, OFBool isCurve);
00165
00174 Uint16 getActivationGroup(const char *layer, size_t idx, OFBool isCurve);
00175
00181 void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode);
00182
00183 private:
00184
00186 DVPSOverlayCurveActivationLayer_PList& operator=(const DVPSOverlayCurveActivationLayer_PList&);
00187
00190 OFList<DVPSOverlayCurveActivationLayer *> list_;
00191
00194 OFConsole *logstream;
00195
00198 OFBool verboseMode;
00199
00202 OFBool debugMode;
00203 };
00204
00205 #endif
00206
00207
00208
00209
00210
00211
00212
00213
00214
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