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 __DVPSGR_H__
00035 #define __DVPSGR_H__
00036
00037 #include "osconfig.h"
00038 #include "dctk.h"
00039 #include "dvpstyp.h"
00040
00047 class DVPSGraphicObject
00048 {
00049 public:
00051 DVPSGraphicObject();
00052
00054 DVPSGraphicObject(const DVPSGraphicObject& copy);
00055
00060 DVPSGraphicObject *clone() { return new DVPSGraphicObject(*this); }
00061
00063 virtual ~DVPSGraphicObject();
00064
00074 OFCondition read(DcmItem &dset);
00075
00082 OFCondition write(DcmItem &dset);
00083
00087 DVPSannotationUnit getAnnotationUnits();
00088
00092 size_t getNumberOfPoints();
00093
00100 OFCondition getPoint(size_t idx, Float32& x, Float32& y);
00101
00105 DVPSGraphicType getGraphicType();
00106
00110 OFBool isFilled();
00111
00119 OFCondition setData(size_t number, const Float32 *data, DVPSannotationUnit unit);
00120
00125 OFCondition setGraphicType(DVPSGraphicType gtype);
00126
00131 OFCondition setFilled(OFBool filled);
00132
00138 void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode);
00139
00140 private:
00141
00143 DVPSGraphicObject& operator=(const DVPSGraphicObject&);
00144
00146 DcmCodeString graphicAnnotationUnits;
00148 DcmUnsignedShort numberOfGraphicPoints;
00150 DcmFloatingPointSingle graphicData;
00152 DcmCodeString graphicType;
00154 DcmCodeString graphicFilled;
00155
00158 OFConsole *logstream;
00159
00162 OFBool verboseMode;
00163
00166 OFBool debugMode;
00167
00168
00169 };
00170
00171 #endif
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196