00001 /* 00002 * 00003 * Copyright (C) 2000-2005, OFFIS 00004 * 00005 * This software and supporting documentation were developed by 00006 * 00007 * Kuratorium OFFIS e.V. 00008 * Healthcare Information and Communication Systems 00009 * Escherweg 2 00010 * D-26121 Oldenburg, Germany 00011 * 00012 * THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND OFFIS MAKES NO WARRANTY 00013 * REGARDING THE SOFTWARE, ITS PERFORMANCE, ITS MERCHANTABILITY OR 00014 * FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES OR 00015 * ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND 00016 * PERFORMANCE OF THE SOFTWARE IS WITH THE USER. 00017 * 00018 * Module: dcmsr 00019 * 00020 * Author: Joerg Riesmeier 00021 * 00022 * Purpose: 00023 * classes: DSRSpatialCoordinatesValue 00024 * 00025 * Last Update: $Author: meichel $ 00026 * Update Date: $Date: 2005/12/08 16:05:17 $ 00027 * CVS/RCS Revision: $Revision: 1.10 $ 00028 * Status: $State: Exp $ 00029 * 00030 * CVS/RCS Log at end of file 00031 * 00032 */ 00033 00034 00035 #ifndef DSRSCOVL_H 00036 #define DSRSCOVL_H 00037 00038 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ 00039 00040 #include "dcmtk/dcmsr/dsrtypes.h" 00041 #include "dcmtk/dcmsr/dsrscogr.h" 00042 00043 00044 /*---------------------* 00045 * class declaration * 00046 *---------------------*/ 00047 00050 class DSRSpatialCoordinatesValue 00051 { 00052 // allow access to getValuePtr() 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 * CVS/RCS Log: 00251 * $Log: dsrscovl.h,v $ 00252 * Revision 1.10 2005/12/08 16:05:17 meichel 00253 * Changed include path schema for all DCMTK header files 00254 * 00255 * Revision 1.9 2003/08/07 18:01:42 joergr 00256 * Removed libxml dependency from header files. 00257 * 00258 * Revision 1.8 2003/08/07 12:47:10 joergr 00259 * Added readXML functionality. 00260 * 00261 * Revision 1.7 2001/09/26 13:04:11 meichel 00262 * Adapted dcmsr to class OFCondition 00263 * 00264 * Revision 1.6 2001/06/01 15:51:03 meichel 00265 * Updated copyright header 00266 * 00267 * Revision 1.5 2000/11/06 11:18:09 joergr 00268 * Moved some protected methods to public part. 00269 * 00270 * Revision 1.4 2000/11/01 16:23:24 joergr 00271 * Added support for conversion to XML. 00272 * 00273 * Revision 1.3 2000/10/18 17:07:30 joergr 00274 * Added methods allowing direct access to certain content item values. 00275 * Added doc++ comments. 00276 * Made some functions inline. 00277 * 00278 * Revision 1.2 2000/10/16 11:57:23 joergr 00279 * Added methods allowing direct access to certain content item values. 00280 * 00281 * Revision 1.1 2000/10/13 07:49:32 joergr 00282 * Added new module 'dcmsr' providing access to DICOM structured reporting 00283 * documents (supplement 23). Doc++ documentation not yet completed. 00284 * 00285 * 00286 */