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 __DVPSGL_H__
00035 #define __DVPSGL_H__
00036
00037 #include "osconfig.h"
00038 #include "dctk.h"
00039
00040
00046 class DVPSGraphicLayer
00047 {
00048 public:
00050 DVPSGraphicLayer();
00051
00053 DVPSGraphicLayer(const DVPSGraphicLayer& copy);
00054
00059 DVPSGraphicLayer *clone() { return new DVPSGraphicLayer(*this); }
00060
00062 virtual ~DVPSGraphicLayer();
00063
00073 OFCondition read(DcmItem &dset);
00074
00081 OFCondition write(DcmItem &dset);
00082
00086 const char *getGL();
00087
00091 const char *getGLDescription();
00092
00096 Sint32 getGLOrder();
00097
00101 OFBool haveGLRecommendedDisplayValue();
00102
00110 OFCondition getGLRecommendedDisplayValueGray(Uint16& gray);
00111
00120 OFCondition getGLRecommendedDisplayValueRGB(Uint16& r, Uint16& g, Uint16& b);
00121
00126 void removeRecommendedDisplayValue(OFBool rgb, OFBool monochrome);
00127
00131 void setGL(const char *gl);
00132
00136 void setGLOrder(Sint32 glOrder);
00137
00143 void setGLRecommendedDisplayValueGray(Uint16 gray);
00144
00152 void setGLRecommendedDisplayValueRGB(Uint16 r, Uint16 g, Uint16 b);
00153
00157 void setGLDescription(const char *glDescription);
00158
00164 void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode);
00165
00166 private:
00167
00169 DVPSGraphicLayer& operator=(const DVPSGraphicLayer&);
00170
00172 DcmCodeString graphicLayer;
00174 DcmIntegerString graphicLayerOrder;
00176 DcmUnsignedShort graphicLayerRecommendedDisplayGrayscaleValue;
00178 DcmUnsignedShort graphicLayerRecommendedDisplayRGBValue;
00180 DcmLongString graphicLayerDescription;
00181
00184 OFConsole *logstream;
00185
00188 OFBool verboseMode;
00189
00192 OFBool debugMode;
00193 };
00194
00195 #endif
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222