OFFIS DCMTK  Version 3.6.0
dvpsgr.h
1 /*
2  *
3  * Copyright (C) 1998-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: dcmpstat
15  *
16  * Author: Marco Eichelberg
17  *
18  * Purpose:
19  * classes: DVPSGraphicObject
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:16:36 $
23  * CVS/RCS Revision: $Revision: 1.10 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 #ifndef DVPSGR_H
31 #define DVPSGR_H
32 
33 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
34 #include "dcmtk/dcmdata/dctk.h"
35 #include "dcmtk/dcmpstat/dvpstyp.h"
36 
44 {
45 public:
48 
51 
56  DVPSGraphicObject *clone() { return new DVPSGraphicObject(*this); }
57 
59  virtual ~DVPSGraphicObject();
60 
70  OFCondition read(DcmItem &dset);
71 
78  OFCondition write(DcmItem &dset);
79 
83  DVPSannotationUnit getAnnotationUnits();
84 
88  size_t getNumberOfPoints();
89 
96  OFCondition getPoint(size_t idx, Float32& x, Float32& y);
97 
101  DVPSGraphicType getGraphicType();
102 
106  OFBool isFilled();
107 
115  OFCondition setData(size_t number, const Float32 *data, DVPSannotationUnit unit);
116 
121  OFCondition setGraphicType(DVPSGraphicType gtype);
122 
127  OFCondition setFilled(OFBool filled);
128 
129 private:
130 
133 
144 };
145 
146 #endif
147 
148 /*
149  * $Log: dvpsgr.h,v $
150  * Revision 1.10 2010-10-14 13:16:36 joergr
151  * Updated copyright header. Added reference to COPYRIGHT file.
152  *
153  * Revision 1.9 2010-10-07 14:31:35 joergr
154  * Removed leading underscore characters from preprocessor symbols (reserved).
155  *
156  * Revision 1.8 2009-11-24 14:12:57 uli
157  * Switched to logging mechanism provided by the "new" oflog module.
158  *
159  * Revision 1.7 2005-12-08 16:03:47 meichel
160  * Changed include path schema for all DCMTK header files
161  *
162  * Revision 1.6 2001/09/26 15:36:11 meichel
163  * Adapted dcmpstat to class OFCondition
164  *
165  * Revision 1.5 2001/06/01 15:50:16 meichel
166  * Updated copyright header
167  *
168  * Revision 1.4 2000/06/02 16:00:47 meichel
169  * Adapted all dcmpstat classes to use OFConsole for log and error output
170  *
171  * Revision 1.3 2000/03/08 16:28:52 meichel
172  * Updated copyright header.
173  *
174  * Revision 1.2 1998/12/14 16:10:30 meichel
175  * Implemented Presentation State interface for graphic layers,
176  * text and graphic annotations, presentation LUTs.
177  *
178  * Revision 1.1 1998/11/27 14:50:28 meichel
179  * Initial Release.
180  *
181  *
182  */
OFCondition read(DcmItem &dset)
reads a graphic object from a DICOM dataset.
a class representing a list of DICOM elements in which each element has a different tag and elements ...
Definition: dcitem.h:51
DVPSannotationUnit getAnnotationUnits()
gets the graphic annotation units.
virtual ~DVPSGraphicObject()
destructor
OFCondition setFilled(OFBool filled)
sets the graphic filled status for the graphic object
DVPSGraphicObject()
default constructor
OFCondition setData(size_t number, const Float32 *data, DVPSannotationUnit unit)
sets the graphic data for this graphic object.
OFBool isFilled()
checks if the graphic is filled
DVPSGraphicObject & operator=(const DVPSGraphicObject &)
private undefined assignment operator
OFCondition write(DcmItem &dset)
writes the graphic object managed by this object to a DICOM dataset.
a class representing the DICOM value representation 'Code String' (CS)
Definition: dcvrcs.h:40
DcmCodeString graphicAnnotationUnits
VR=CS, VM=1, Type 1.
Definition: dvpsgr.h:135
size_t getNumberOfPoints()
gets the number of graphic points.
DcmUnsignedShort numberOfGraphicPoints
VR=US, VM=1, Type 1.
Definition: dvpsgr.h:137
DVPSGraphicObject * clone()
clone method.
Definition: dvpsgr.h:56
an item of the graphic object sequence in a presentation state (internal use only).
Definition: dvpsgr.h:43
a class representing the DICOM value representation 'Unsigned Short' (US)
Definition: dcvrus.h:40
DVPSGraphicType getGraphicType()
gets the graphic type of this graphic object.
OFCondition getPoint(size_t idx, Float32 &x, Float32 &y)
gets one point from the graphic data.
a class representing the DICOM value representation 'Floating Point Single' (FL)
Definition: dcvrfl.h:40
DcmCodeString graphicFilled
VR=CS, VM=1, Type 1c.
Definition: dvpsgr.h:143
DcmCodeString graphicType
VR=CS, VM=1, Type 1.
Definition: dvpsgr.h:141
DcmFloatingPointSingle graphicData
VR=FL, VM=2-n, Type 1.
Definition: dvpsgr.h:139
OFCondition setGraphicType(DVPSGraphicType gtype)
sets the graphic type for the graphic object
General purpose class for condition codes.
Definition: ofcond.h:305


Generated on Wed Jan 4 2017 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.6