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
00035
#ifndef DSRSCOVL_H
00036
#define DSRSCOVL_H
00037
00038
#include "osconfig.h"
00039
00040
#include "dsrtypes.h"
00041
#include "dsrscogr.h"
00042
00043
00044
00045
00046
00047
00050 class DSRSpatialCoordinatesValue
00051 {
00052
00053
friend class DSRContentItem;
00054
00055
public:
00056
00059
DSRSpatialCoordinatesValue();
00060
00064
DSRSpatialCoordinatesValue(
const DSRTypes::E_GraphicType graphicType);
00065
00069
DSRSpatialCoordinatesValue(
const DSRSpatialCoordinatesValue &coordinatesValue);
00070
00073
virtual ~DSRSpatialCoordinatesValue();
00074
00080
DSRSpatialCoordinatesValue &
operator=(
const DSRSpatialCoordinatesValue &coordinatesValue);
00081
00086
virtual void clear();
00087
00093
virtual OFBool
isValid()
const;
00094
00101
virtual OFBool
isShort(
const size_t flags)
const;
00102
00109
virtual OFCondition print(ostream &stream,
00110
const size_t flags)
const;
00111
00117
virtual OFCondition read(
DcmItem &dataset,
00118
OFConsole *logStream);
00119
00125
virtual OFCondition write(
DcmItem &dataset,
00126
OFConsole *logStream)
const;
00127
00133
virtual OFCondition readXML(
const DSRXMLDocument &doc,
00134
DSRXMLCursor cursor);
00135
00142
virtual OFCondition writeXML(ostream &stream,
00143
const size_t flags,
00144
OFConsole *logStream)
const;
00145
00155
virtual OFCondition renderHTML(ostream &docStream,
00156 ostream &annexStream,
00157 size_t &annexNumber,
00158
const size_t flags,
00159
OFConsole *logStream)
const;
00160
00164 inline const DSRSpatialCoordinatesValue &
getValue()
const
00165
{
00166
return *
this;
00167 }
00168
00174 inline DSRTypes::E_GraphicType
getGraphicType()
const
00175
{
00176
return GraphicType;
00177 }
00178
00185
OFCondition setGraphicType(
const DSRTypes::E_GraphicType graphicType);
00186
00191
OFCondition getValue(
DSRSpatialCoordinatesValue &coordinatesValue)
const;
00192
00199
OFCondition setValue(
const DSRSpatialCoordinatesValue &coordinatesValue);
00200
00206 inline DSRGraphicDataList &
getGraphicDataList()
00207 {
00208
return GraphicDataList;
00209 }
00210
00211
00212
protected:
00213
00217 inline DSRSpatialCoordinatesValue *
getValuePtr()
00218 {
00219
return this;
00220 }
00221
00232 OFBool
checkData(
const DSRTypes::E_GraphicType graphicType,
00233
const DSRGraphicDataList &graphicDataList,
00234
OFConsole *logStream = NULL)
const;
00235
00236
00237
private:
00238
00240 DSRTypes::E_GraphicType
GraphicType;
00242 DSRGraphicDataList GraphicDataList;
00243 };
00244
00245
00246
#endif
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273
00274
00275
00276
00277
00278
00279
00280
00281
00282
00283