OFFIS DCMTK  Version 3.6.0
dcovlay.h
1 /*
2  *
3  * Copyright (C) 1994-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: dcmdata
15  *
16  * Author: Andreas Barth
17  *
18  * Purpose: Interface of class DcmOverlayData
19  *
20  * Last Update: $Author: joergr $
21  * Update Date: $Date: 2010-10-21 08:21:13 $
22  * CVS/RCS Revision: $Revision: 1.13 $
23  * Status: $State: Exp $
24  *
25  * CVS/RCS Log at end of file
26  *
27  */
28 
29 #ifndef DCOVLAY_H
30 #define DCOVLAY_H
31 
32 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
33 #include "dcmtk/dcmdata/dcvrpobw.h"
34 
38 {
39 public:
40 
45  DcmOverlayData(const DcmTag &tag,
46  const Uint32 len = 0)
47  : DcmPolymorphOBOW(tag, len)
48  {
49  }
50 
55  : DcmPolymorphOBOW(oldObj)
56  {
57  }
58 
61  virtual ~DcmOverlayData()
62  {
63  }
64 
69  {
71  return *this;
72  }
73 
77  virtual DcmObject *clone() const
78  {
79  return new DcmOverlayData(*this);
80  }
81 
94  virtual OFCondition copyFrom(const DcmObject &rhs)
95  {
96  if (this != &rhs)
97  {
98  if (rhs.ident() != ident()) return EC_IllegalCall;
99  *this = OFstatic_cast(const DcmOverlayData &, rhs);
100  }
101  return EC_Normal;
102  }
103 
110  virtual DcmEVR ident() const
111  {
112  return EVR_OverlayData;
113  }
114 };
115 
116 #endif
117 
118 /*
119 ** CVS/RCS Log:
120 ** $Log: dcovlay.h,v $
121 ** Revision 1.13 2010-10-21 08:21:13 joergr
122 ** Use type cast macros (e.g. OFstatic_cast) where appropriate.
123 ** Added missing API documentation and slightly reformatted source code.
124 **
125 ** Revision 1.12 2010-10-14 13:15:41 joergr
126 ** Updated copyright header. Added reference to COPYRIGHT file.
127 **
128 ** Revision 1.11 2009-11-04 09:58:07 uli
129 ** Switched to logging mechanism provided by the "new" oflog module
130 **
131 ** Revision 1.10 2008-07-17 11:19:49 onken
132 ** Updated copyFrom() documentation.
133 **
134 ** Revision 1.9 2008-07-17 10:30:23 onken
135 ** Implemented copyFrom() method for complete DcmObject class hierarchy, which
136 ** permits setting an instance's value from an existing object. Implemented
137 ** assignment operator where necessary.
138 **
139 ** Revision 1.8 2007-11-29 14:30:35 meichel
140 ** Updated doxygen API documentation
141 **
142 ** Revision 1.7 2005/12/08 16:28:28 meichel
143 ** Changed include path schema for all DCMTK header files
144 **
145 ** Revision 1.6 2004/07/01 12:28:25 meichel
146 ** Introduced virtual clone method for DcmObject and derived classes.
147 **
148 ** Revision 1.5 2001/06/01 15:48:42 meichel
149 ** Updated copyright header
150 **
151 ** Revision 1.4 2000/03/08 16:26:16 meichel
152 ** Updated copyright header.
153 **
154 ** Revision 1.3 1999/03/31 09:24:43 meichel
155 ** Updated copyright header in module dcmdata
156 **
157 ** Revision 1.2 1998/11/12 16:47:41 meichel
158 ** Implemented operator= for all classes derived from DcmObject.
159 **
160 ** Revision 1.1 1997/07/21 07:54:00 andreas
161 ** - Support for CP 14. PixelData and OverlayData can have VR OW or OB
162 ** (depending on the transfer syntax). New internal value
163 ** representation (only for ident()) for OverlayData.
164 **
165 */


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