00001 /* 00002 * 00003 * Copyright (C) 2000-2010, OFFIS e.V. 00004 * All rights reserved. See COPYRIGHT file for details. 00005 * 00006 * This software and supporting documentation were developed by 00007 * 00008 * OFFIS e.V. 00009 * R&D Division Health 00010 * Escherweg 2 00011 * D-26121 Oldenburg, Germany 00012 * 00013 * 00014 * Module: dcmsr 00015 * 00016 * Author: Joerg Riesmeier 00017 * 00018 * Purpose: 00019 * classes: DSRSCoordTreeNode 00020 * 00021 * Last Update: $Author: joergr $ 00022 * Update Date: $Date: 2010-10-14 13:16:33 $ 00023 * CVS/RCS Revision: $Revision: 1.14 $ 00024 * Status: $State: Exp $ 00025 * 00026 * CVS/RCS Log at end of file 00027 * 00028 */ 00029 00030 00031 #ifndef DSRSCOTN_H 00032 #define DSRSCOTN_H 00033 00034 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ 00035 00036 #include "dcmtk/dcmsr/dsrdoctr.h" 00037 #include "dcmtk/dcmsr/dsrscovl.h" 00038 00039 00040 /*---------------------* 00041 * class declaration * 00042 *---------------------*/ 00043 00046 class DSRSCoordTreeNode 00047 : public DSRDocumentTreeNode, 00048 public DSRSpatialCoordinatesValue 00049 { 00050 00051 public: 00052 00057 DSRSCoordTreeNode(const E_RelationshipType relationshipType); 00058 00061 virtual ~DSRSCoordTreeNode(); 00062 00066 virtual void clear(); 00067 00072 virtual OFBool isValid() const; 00073 00079 virtual OFBool isShort(const size_t flags) const; 00080 00088 virtual OFCondition print(STD_NAMESPACE ostream &stream, 00089 const size_t flags) const; 00090 00096 virtual OFCondition writeXML(STD_NAMESPACE ostream &stream, 00097 const size_t flags) const; 00098 00099 00100 protected: 00101 00106 virtual OFCondition readContentItem(DcmItem &dataset); 00107 00112 virtual OFCondition writeContentItem(DcmItem &dataset) const; 00113 00119 virtual OFCondition readXMLContentItem(const DSRXMLDocument &doc, 00120 DSRXMLCursor cursor); 00121 00131 virtual OFCondition renderHTMLContentItem(STD_NAMESPACE ostream &docStream, 00132 STD_NAMESPACE ostream &annexStream, 00133 const size_t nestingLevel, 00134 size_t &annexNumber, 00135 const size_t flags) const; 00136 00137 00138 private: 00139 00140 // --- declaration of default/copy constructor and assignment operator 00141 00142 DSRSCoordTreeNode(); 00143 DSRSCoordTreeNode(const DSRSCoordTreeNode &); 00144 DSRSCoordTreeNode &operator=(const DSRSCoordTreeNode &); 00145 }; 00146 00147 00148 #endif 00149 00150 00151 /* 00152 * CVS/RCS Log: 00153 * $Log: dsrscotn.h,v $ 00154 * Revision 1.14 2010-10-14 13:16:33 joergr 00155 * Updated copyright header. Added reference to COPYRIGHT file. 00156 * 00157 * Revision 1.13 2009-10-13 14:57:50 uli 00158 * Switched to logging mechanism provided by the "new" oflog module. 00159 * 00160 * Revision 1.12 2007-11-15 16:33:30 joergr 00161 * Added support for output in XHTML 1.1 format. 00162 * 00163 * Revision 1.11 2006/08/15 16:40:03 meichel 00164 * Updated the code in module dcmsr to correctly compile when 00165 * all standard C++ classes remain in namespace std. 00166 * 00167 * Revision 1.10 2005/12/08 16:05:16 meichel 00168 * Changed include path schema for all DCMTK header files 00169 * 00170 * Revision 1.9 2003/09/15 14:18:54 joergr 00171 * Introduced new class to facilitate checking of SR IOD relationship content 00172 * constraints. Replaced old implementation distributed over numerous classes. 00173 * 00174 * Revision 1.8 2003/08/07 12:46:22 joergr 00175 * Added readXML functionality. Added support for Chest CAD SR. 00176 * 00177 * Revision 1.7 2001/11/09 16:10:52 joergr 00178 * Added preliminary support for Mammography CAD SR. 00179 * 00180 * Revision 1.6 2001/09/26 13:04:10 meichel 00181 * Adapted dcmsr to class OFCondition 00182 * 00183 * Revision 1.5 2001/06/01 15:51:03 meichel 00184 * Updated copyright header 00185 * 00186 * Revision 1.4 2000/11/07 18:14:30 joergr 00187 * Enhanced support for by-reference relationships. 00188 * 00189 * Revision 1.3 2000/11/01 16:23:24 joergr 00190 * Added support for conversion to XML. 00191 * 00192 * Revision 1.2 2000/10/23 15:12:55 joergr 00193 * Added/updated doc++ comments. 00194 * 00195 * Revision 1.1 2000/10/13 07:49:31 joergr 00196 * Added new module 'dcmsr' providing access to DICOM structured reporting 00197 * documents (supplement 23). Doc++ documentation not yet completed. 00198 * 00199 * 00200 */