OFFIS DCMTK  Version 3.6.0
dvpsall.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: DVPSOverlayCurveActivationLayer
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:16:36 $
23  * CVS/RCS Revision: $Revision: 1.13 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 #ifndef DVPSALL_H
31 #define DVPSALL_H
32 
33 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
34 #include "dcmtk/dcmdata/dcitem.h"
35 #include "dcmtk/dcmpstat/dvpstyp.h" /* for enum types */
36 
38 class DVPSOverlay_PList;
40 
50 {
51 public:
54 
57 
63 
66 
73  OFCondition read(DcmItem &dset);
74 
81  OFCondition write(DcmItem &dset);
82 
87  void clear();
88 
104  DVPSGraphicLayer_PList &gLayerList,
105  DVPSOverlay_PList &overlayList,
106  DVPSoverlayActivation overlayActivation,
107  OFBool curveActivation,
108  DVPSGraphicLayering layering);
109 
116  OFCondition setActivation(Uint16 group, const char *layer);
117 
120  void removeActivation(Uint16 group);
121 
125  const char *getActivationLayer(Uint16 group);
126 
134  void renameLayer(const char *oldName, const char *newName);
135 
140  void removeLayer(const char *name);
141 
147  OFBool usesLayerName(const char *name);
148 
158  size_t getNumberOfActivations(const char *layer, OFBool isCurve);
159 
168  Uint16 getActivationGroup(const char *layer, size_t idx, OFBool isCurve);
169 
170 private:
171 
174 
178 
179 };
180 
181 #endif
182 
183 /*
184  * $Log: dvpsall.h,v $
185  * Revision 1.13 2010-10-14 13:16:36 joergr
186  * Updated copyright header. Added reference to COPYRIGHT file.
187  *
188  * Revision 1.12 2010-10-07 14:31:35 joergr
189  * Removed leading underscore characters from preprocessor symbols (reserved).
190  *
191  * Revision 1.11 2009-11-24 14:12:57 uli
192  * Switched to logging mechanism provided by the "new" oflog module.
193  *
194  * Revision 1.10 2009-09-30 10:42:38 uli
195  * Make dcmpstat's include headers self-sufficient by including all
196  * needed headers directly and stop using dctk.h
197  *
198  * Revision 1.9 2005-12-08 16:03:35 meichel
199  * Changed include path schema for all DCMTK header files
200  *
201  * Revision 1.8 2003/06/04 10:18:06 meichel
202  * Replaced private inheritance from template with aggregation
203  *
204  * Revision 1.7 2001/09/26 15:36:08 meichel
205  * Adapted dcmpstat to class OFCondition
206  *
207  * Revision 1.6 2001/06/01 15:50:12 meichel
208  * Updated copyright header
209  *
210  * Revision 1.5 2000/06/02 16:00:43 meichel
211  * Adapted all dcmpstat classes to use OFConsole for log and error output
212  *
213  * Revision 1.4 2000/03/08 16:28:49 meichel
214  * Updated copyright header.
215  *
216  * Revision 1.3 1998/12/22 17:57:04 meichel
217  * Implemented Presentation State interface for overlays,
218  * VOI LUTs, VOI windows, curves. Added test program that
219  * allows to add curve data to DICOM images.
220  *
221  * Revision 1.2 1998/12/14 16:10:26 meichel
222  * Implemented Presentation State interface for graphic layers,
223  * text and graphic annotations, presentation LUTs.
224  *
225  * Revision 1.1 1998/11/27 14:50:25 meichel
226  * Initial Release.
227  *
228  *
229  */
void removeLayer(const char *name)
deletes all activation belonging to the given activation layer name.
a class representing a list of DICOM elements in which each element has a different tag and elements ...
Definition: dcitem.h:51
the list of graphic layers contained in a presentation state (internal use only). ...
Definition: dvpsgll.h:45
a curve or overlay activation layer in a presentation state (internal use only).
Definition: dvpsal.h:45
const char * getActivationLayer(Uint16 group)
get activation layer name of the given repeating group.
OFList< DVPSOverlayCurveActivationLayer * > list_
the list maintained by this object
Definition: dvpsall.h:177
virtual ~DVPSOverlayCurveActivationLayer_PList()
destructor
the list of curve and overlay activation layers contained in a presentation state (internal use only)...
Definition: dvpsall.h:49
void renameLayer(const char *oldName, const char *newName)
renames the activation layer name in all activations with a matching old activation layer name...
OFCondition write(DcmItem &dset)
writes the curve and overlay activations managed by this object to a DICOM dataset.
OFCondition setActivation(Uint16 group, const char *layer)
set activation layer for given repeating group.
void clear()
reset the object to initial state.
DVPSOverlayCurveActivationLayer_PList()
default constructor
OFCondition createFromImage(DcmItem &dset, DVPSGraphicLayer_PList &gLayerList, DVPSOverlay_PList &overlayList, DVPSoverlayActivation overlayActivation, OFBool curveActivation, DVPSGraphicLayering layering)
create graphic layers and activations for DICOM image.
Uint16 getActivationGroup(const char *layer, size_t idx, OFBool isCurve)
gets the repeating group of the overlay/curve activation with the given index on the given layer...
the list of overlays contained in a presentation state (internal use only).
Definition: dvpsovl.h:44
OFBool usesLayerName(const char *name)
checks if the given layer name is used for any of the activation layers managed by this object...
DVPSOverlayCurveActivationLayer_PList * clone()
clone method.
Definition: dvpsall.h:62
size_t getNumberOfActivations(const char *layer, OFBool isCurve)
returns the number of activations for the given graphic layer and object type (curve or overlay)...
void removeActivation(Uint16 group)
remove activation for given repeating group.
DVPSOverlayCurveActivationLayer_PList & operator=(const DVPSOverlayCurveActivationLayer_PList &)
private undefined assignment operator
OFCondition read(DcmItem &dset)
reads the curve and overlay activations from a DICOM dataset.
General purpose class for condition codes.
Definition: ofcond.h:305


Generated on Thu Aug 27 2015 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.9.1