dcmsr/include/dcmtk/dcmsr/dsrsc3tn.h

00001 /*
00002  *
00003  *  Copyright (C) 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: DSRSCoord3DTreeNode
00020  *
00021  *  Last Update:      $Author: joergr $
00022  *  Update Date:      $Date: 2010-10-14 13:16:32 $
00023  *  CVS/RCS Revision: $Revision: 1.2 $
00024  *  Status:           $State: Exp $
00025  *
00026  *  CVS/RCS Log at end of file
00027  *
00028  */
00029 
00030 
00031 #ifndef DSRSC3TN_H
00032 #define DSRSC3TN_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/dsrsc3vl.h"
00038 
00039 
00040 /*---------------------*
00041  *  class declaration  *
00042  *---------------------*/
00043 
00046 class DSRSCoord3DTreeNode
00047   : public DSRDocumentTreeNode,
00048     public DSRSpatialCoordinates3DValue
00049 {
00050 
00051   public:
00052 
00057     DSRSCoord3DTreeNode(const E_RelationshipType relationshipType);
00058 
00061     virtual ~DSRSCoord3DTreeNode();
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     DSRSCoord3DTreeNode();
00143     DSRSCoord3DTreeNode(const DSRSCoord3DTreeNode &);
00144     DSRSCoord3DTreeNode &operator=(const DSRSCoord3DTreeNode &);
00145 };
00146 
00147 
00148 #endif
00149 
00150 
00151 /*
00152  *  CVS/RCS Log:
00153  *  $Log: dsrsc3tn.h,v $
00154  *  Revision 1.2  2010-10-14 13:16:32  joergr
00155  *  Updated copyright header. Added reference to COPYRIGHT file.
00156  *
00157  *  Revision 1.1  2010-09-28 14:08:14  joergr
00158  *  Added support for Colon CAD SR which requires a new value type (SCOORD3D).
00159  *
00160  *
00161  */


Generated on 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1