OFFIS DCMTK  Version 3.6.0
dsrscovl.h
1 /*
2  *
3  * Copyright (C) 2000-2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  *
14  * Module: dcmsr
15  *
16  * Author: Joerg Riesmeier
17  *
18  * Purpose:
19  * classes: DSRSpatialCoordinatesValue
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:16:33 $
23  * CVS/RCS Revision: $Revision: 1.15 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 
31 #ifndef DSRSCOVL_H
32 #define DSRSCOVL_H
33 
34 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
35 
36 #include "dcmtk/dcmsr/dsrtypes.h"
37 #include "dcmtk/dcmsr/dsrscogr.h"
38 
39 
40 /*---------------------*
41  * class declaration *
42  *---------------------*/
43 
47 {
48  // allow access to getValuePtr()
49  friend class DSRContentItem;
50 
51  public:
52 
56 
61 
66 
70 
77 
82  virtual void clear();
83 
89  virtual OFBool isValid() const;
90 
97  virtual OFBool isShort(const size_t flags) const;
98 
105  virtual OFCondition print(STD_NAMESPACE ostream &stream,
106  const size_t flags) const;
107 
112  virtual OFCondition read(DcmItem &dataset);
113 
118  virtual OFCondition write(DcmItem &dataset) const;
119 
125  virtual OFCondition readXML(const DSRXMLDocument &doc,
126  DSRXMLCursor cursor);
127 
133  virtual OFCondition writeXML(STD_NAMESPACE ostream &stream,
134  const size_t flags) const;
135 
144  virtual OFCondition renderHTML(STD_NAMESPACE ostream &docStream,
145  STD_NAMESPACE ostream &annexStream,
146  size_t &annexNumber,
147  const size_t flags) const;
148 
152  inline const DSRSpatialCoordinatesValue &getValue() const
153  {
154  return *this;
155  }
156 
163  {
164  return GraphicType;
165  }
166 
174 
179  OFCondition getValue(DSRSpatialCoordinatesValue &coordinatesValue) const;
180 
187  OFCondition setValue(const DSRSpatialCoordinatesValue &coordinatesValue);
188 
195  {
196  return GraphicDataList;
197  }
198 
199 
200  protected:
201 
206  {
207  return this;
208  }
209 
218  OFBool checkData(const DSRTypes::E_GraphicType graphicType,
219  const DSRGraphicDataList &graphicDataList) const;
220 
221 
222  private:
223 
228 };
229 
230 
231 #endif
232 
233 
234 /*
235  * CVS/RCS Log:
236  * $Log: dsrscovl.h,v $
237  * Revision 1.15 2010-10-14 13:16:33 joergr
238  * Updated copyright header. Added reference to COPYRIGHT file.
239  *
240  * Revision 1.14 2010-09-28 14:03:37 joergr
241  * Updated comment on the requirements for POLYLINE according to CP-233.
242  *
243  * Revision 1.13 2009-10-13 14:57:50 uli
244  * Switched to logging mechanism provided by the "new" oflog module.
245  *
246  * Revision 1.12 2007-11-15 16:33:30 joergr
247  * Added support for output in XHTML 1.1 format.
248  *
249  * Revision 1.11 2006/08/15 16:40:03 meichel
250  * Updated the code in module dcmsr to correctly compile when
251  * all standard C++ classes remain in namespace std.
252  *
253  * Revision 1.10 2005/12/08 16:05:17 meichel
254  * Changed include path schema for all DCMTK header files
255  *
256  * Revision 1.9 2003/08/07 18:01:42 joergr
257  * Removed libxml dependency from header files.
258  *
259  * Revision 1.8 2003/08/07 12:47:10 joergr
260  * Added readXML functionality.
261  *
262  * Revision 1.7 2001/09/26 13:04:11 meichel
263  * Adapted dcmsr to class OFCondition
264  *
265  * Revision 1.6 2001/06/01 15:51:03 meichel
266  * Updated copyright header
267  *
268  * Revision 1.5 2000/11/06 11:18:09 joergr
269  * Moved some protected methods to public part.
270  *
271  * Revision 1.4 2000/11/01 16:23:24 joergr
272  * Added support for conversion to XML.
273  *
274  * Revision 1.3 2000/10/18 17:07:30 joergr
275  * Added methods allowing direct access to certain content item values.
276  * Added doc++ comments.
277  * Made some functions inline.
278  *
279  * Revision 1.2 2000/10/16 11:57:23 joergr
280  * Added methods allowing direct access to certain content item values.
281  *
282  * Revision 1.1 2000/10/13 07:49:32 joergr
283  * Added new module 'dcmsr' providing access to DICOM structured reporting
284  * documents (supplement 23). Doc++ documentation not yet completed.
285  *
286  *
287  */


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2