OFFIS DCMTK  Version 3.6.0
dvpsrsl.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: DVPSReferencedSeries_PList
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:16:36 $
23  * CVS/RCS Revision: $Revision: 1.14 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 #ifndef DVPSRSL_H
31 #define DVPSRSL_H
32 
33 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
34 #include "dcmtk/dcmdata/dcitem.h"
35 
36 
39 
46 {
47 public:
50 
53 
59 
62 
71  OFCondition read(DcmItem &dset);
72 
79  OFCondition write(DcmItem &dset);
80 
85  void clear();
86 
91  OFBool isValid();
92 
97  OFBool checkSOPClass(const char *uid);
98 
105  DVPSReferencedSeries *findSeriesReference(const char *seriesUID);
106 
114  DVPSReferencedImage *findImageReference(const char *seriesUID, const char *instanceUID);
115 
121  void removeSeriesReference(const char *seriesUID);
122 
129  void removeImageReference(const char *seriesUID, const char *instanceUID);
130 
148  const char *seriesUID,
149  const char *sopclassUID,
150  const char *instanceUID,
151  const char *frames=NULL,
152  const char *aetitle=NULL,
153  const char *filesetID=NULL,
154  const char *filesetUID=NULL);
155 
159  size_t numberOfImageReferences();
160 
173  size_t idx,
174  OFString& seriesUID,
175  OFString& sopclassUID,
176  OFString& instanceUID,
177  OFString& frames,
178  OFString& aetitle,
179  OFString& filesetID,
180  OFString& filesetUID);
181 
182 private:
183 
186 
190 };
191 
192 #endif
193 
194 /*
195  * $Log: dvpsrsl.h,v $
196  * Revision 1.14 2010-10-14 13:16:36 joergr
197  * Updated copyright header. Added reference to COPYRIGHT file.
198  *
199  * Revision 1.13 2010-10-07 14:31:36 joergr
200  * Removed leading underscore characters from preprocessor symbols (reserved).
201  *
202  * Revision 1.12 2009-11-24 14:12:57 uli
203  * Switched to logging mechanism provided by the "new" oflog module.
204  *
205  * Revision 1.11 2009-09-30 10:42:38 uli
206  * Make dcmpstat's include headers self-sufficient by including all
207  * needed headers directly and stop using dctk.h
208  *
209  * Revision 1.10 2005-12-08 16:04:02 meichel
210  * Changed include path schema for all DCMTK header files
211  *
212  * Revision 1.9 2003/06/04 10:18:06 meichel
213  * Replaced private inheritance from template with aggregation
214  *
215  * Revision 1.8 2001/09/26 15:36:15 meichel
216  * Adapted dcmpstat to class OFCondition
217  *
218  * Revision 1.7 2001/06/01 15:50:21 meichel
219  * Updated copyright header
220  *
221  * Revision 1.6 2000/06/02 16:00:51 meichel
222  * Adapted all dcmpstat classes to use OFConsole for log and error output
223  *
224  * Revision 1.5 2000/03/08 16:28:56 meichel
225  * Updated copyright header.
226  *
227  * Revision 1.4 1999/07/22 16:39:11 meichel
228  * Adapted dcmpstat data structures and API to supplement 33 letter ballot text.
229  *
230  * Revision 1.3 1999/01/15 17:33:04 meichel
231  * added methods to DVPresentationState allowing to access the image
232  * references in the presentation state. Also added methods allowing to
233  * get the width and height of the attached image.
234  *
235  * Revision 1.2 1998/12/14 16:10:34 meichel
236  * Implemented Presentation State interface for graphic layers,
237  * text and graphic annotations, presentation LUTs.
238  *
239  * Revision 1.1 1998/11/27 14:50:33 meichel
240  * Initial Release.
241  *
242  *
243  */
void clear()
reset the object to initial state.
a class representing a list of DICOM elements in which each element has a different tag and elements ...
Definition: dcitem.h:51
DVPSReferencedSeries * findSeriesReference(const char *seriesUID)
find series reference in this list.
size_t numberOfImageReferences()
gets the number of image references in all series managed by this list.
OFCondition write(DcmItem &dset)
writes the list of series references managed by this object to a DICOM dataset.
an item of the referenced series sequence in a presentation state (internal use only).
Definition: dvpsrs.h:44
OFCondition addImageReference(const char *seriesUID, const char *sopclassUID, const char *instanceUID, const char *frames=NULL, const char *aetitle=NULL, const char *filesetID=NULL, const char *filesetUID=NULL)
add new image reference.
DVPSReferencedSeries_PList()
default constructor
OFList< DVPSReferencedSeries * > list_
the list maintained by this object
Definition: dvpsrsl.h:189
void removeImageReference(const char *seriesUID, const char *instanceUID)
removes image reference.
OFCondition read(DcmItem &dset)
reads a list of series references (ReferencedSeriesSequence) from a DICOM dataset.
void removeSeriesReference(const char *seriesUID)
removes series reference.
an item of the referenced image sequence in a presentation state (internal use only).
Definition: dvpsri.h:43
DVPSReferencedSeries_PList & operator=(const DVPSReferencedSeries_PList &)
private undefined assignment operator
OFBool checkSOPClass(const char *uid)
checks whether all images referenced in this series use the passed SOP class UID. ...
OFBool isValid()
checks whether at least one series is referenced, whether all referenced series contain image referen...
DVPSReferencedSeries_PList * clone()
clone method.
Definition: dvpsrsl.h:58
the list of referenced series contained in a presentation state (internal use only).
Definition: dvpsrsl.h:45
a simple string class that implements a subset of std::string.
Definition: ofstring.h:86
virtual ~DVPSReferencedSeries_PList()
destructor
OFCondition getImageReference(size_t idx, OFString &seriesUID, OFString &sopclassUID, OFString &instanceUID, OFString &frames, OFString &aetitle, OFString &filesetID, OFString &filesetUID)
gets an image reference with the given index.
DVPSReferencedImage * findImageReference(const char *seriesUID, const char *instanceUID)
find image reference in this list.
General purpose class for condition codes.
Definition: ofcond.h:305


Generated on Wed Dec 14 2016 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.11