OFFIS DCMTK  Version 3.6.0
dvpsdal.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: DVPSDisplayedArea_PList
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:16:36 $
23  * CVS/RCS Revision: $Revision: 1.12 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 #ifndef DVPSDAL_H
31 #define DVPSDAL_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 
37 class DVPSDisplayedArea;
39 
46 {
47 public:
50 
53 
59 
61  virtual ~DVPSDisplayedArea_PList();
62 
71  OFCondition read(DcmItem &dset);
72 
79  OFCondition write(DcmItem &dset);
80 
85  void clear();
86 
90  size_t size() const { return list_.size(); }
91 
97  DVPSDisplayedArea *findDisplayedArea(const char *instanceUID, unsigned long frame);
98 
115  DVPSReferencedSeries_PList& allReferences,
116  const char *sopclassUID,
117  const char *instanceUID,
118  unsigned long frame,
119  unsigned long numberOfFrames,
120  DVPSObjectApplicability applicability);
121 
129  void rotateAndFlip(
130  DVPSRotationType rotationFrom,
131  OFBool isFlippedFrom,
132  DVPSRotationType rotationTo,
133  OFBool isFlippedTo);
134 
135 private:
136 
140 
144 
145 };
146 
147 
148 #endif
149 
150 /*
151  * $Log: dvpsdal.h,v $
152  * Revision 1.12 2010-10-14 13:16:36 joergr
153  * Updated copyright header. Added reference to COPYRIGHT file.
154  *
155  * Revision 1.11 2010-10-07 14:31:35 joergr
156  * Removed leading underscore characters from preprocessor symbols (reserved).
157  *
158  * Revision 1.10 2009-11-24 14:12:57 uli
159  * Switched to logging mechanism provided by the "new" oflog module.
160  *
161  * Revision 1.9 2009-09-30 10:42:38 uli
162  * Make dcmpstat's include headers self-sufficient by including all
163  * needed headers directly and stop using dctk.h
164  *
165  * Revision 1.8 2005-12-08 16:03:40 meichel
166  * Changed include path schema for all DCMTK header files
167  *
168  * Revision 1.7 2003/09/05 14:30:06 meichel
169  * Introduced new API methods that allow Displayed Areas to be queried
170  * and set either relative to the image (ignoring rotation and flip) or
171  * in absolute values as defined in the standard. Rotate and flip methods
172  * now adjust displayed areas in the presentation state.
173  *
174  * Revision 1.6 2003/06/04 10:18:06 meichel
175  * Replaced private inheritance from template with aggregation
176  *
177  * Revision 1.5 2001/09/26 15:36:10 meichel
178  * Adapted dcmpstat to class OFCondition
179  *
180  * Revision 1.4 2001/06/01 15:50:14 meichel
181  * Updated copyright header
182  *
183  * Revision 1.3 2000/06/02 16:00:45 meichel
184  * Adapted all dcmpstat classes to use OFConsole for log and error output
185  *
186  * Revision 1.2 2000/03/08 16:28:51 meichel
187  * Updated copyright header.
188  *
189  * Revision 1.1 1999/07/22 16:39:06 meichel
190  * Adapted dcmpstat data structures and API to supplement 33 letter ballot text.
191  *
192  *
193  */
the list of displayed area selections contained in a presentation state (internal use only)...
Definition: dvpsdal.h:45
DVPSDisplayedArea * findDisplayedArea(const char *instanceUID, unsigned long frame)
checks if an displayed area selection exists for the given image and frame.
a class representing a list of DICOM elements in which each element has a different tag and elements ...
Definition: dcitem.h:51
DVPSDisplayedArea * createDisplayedArea(DVPSReferencedSeries_PList &allReferences, const char *sopclassUID, const char *instanceUID, unsigned long frame, unsigned long numberOfFrames, DVPSObjectApplicability applicability)
finds or creates a displayed area selection SQ item with an applicability controlled by the applicabi...
DVPSDisplayedArea_PList & operator=(const DVPSDisplayedArea_PList &)
private undefined assignment operator
void rotateAndFlip(DVPSRotationType rotationFrom, OFBool isFlippedFrom, DVPSRotationType rotationTo, OFBool isFlippedTo)
adjusts all displayed area coordinates for the rotation and flipping status of the image...
OFCondition read(DcmItem &dset)
reads a list of displayed area selections (DisplayedAreaSelectionSequence) from a DICOM dataset...
OFList< DVPSDisplayedArea * > list_
the list maintained by this object
Definition: dvpsdal.h:143
OFCondition write(DcmItem &dset)
writes the list of displayed area selections managed by this object to a DICOM dataset.
an item of the displayed area selection sequence in a presentation state.
Definition: dvpsda.h:43
size_t size() const
gets the number of displayed area selections in this list.
Definition: dvpsdal.h:90
DVPSDisplayedArea_PList * clone()
clone method.
Definition: dvpsdal.h:58
virtual ~DVPSDisplayedArea_PList()
destructor
the list of referenced series contained in a presentation state (internal use only).
Definition: dvpsrsl.h:45
size_t size() const
returns number of elements in the list.
Definition: oflist.h:358
DVPSDisplayedArea_PList()
default constructor
void clear()
reset the object to initial state.
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