DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Private Member Functions | Private Attributes
DVPSOverlay_PList Class Reference

the list of overlays contained in a presentation state (internal use only). More...

List of all members.

Public Member Functions

 DVPSOverlay_PList ()
 default constructor
 DVPSOverlay_PList (const DVPSOverlay_PList &copy)
 copy constructor
DVPSOverlay_PListclone ()
 clone method.
virtual ~DVPSOverlay_PList ()
 destructor
OFCondition read (DcmItem &dset)
 reads all overlay groups from a DICOM dataset.
OFCondition write (DcmItem &dset)
 writes the overlays managed by this object to a DICOM dataset.
void clear ()
 reset the object to initial state.
OFBool haveOverlayGroup (Uint16 group)
 check presence of overlay group
size_t size () const
 gets the number of overlays in managed by this object.
DVPSOverlaygetOverlay (size_t idx)
 gets the overlay object with the given index.
OFCondition removeOverlay (size_t idx)
 removes the overlay object with the given index.
OFCondition changeOverlayGroup (size_t idx, Uint16 newGroup)
 changes the repeating group used for an overlay.
OFCondition addOverlay (DcmItem &overlayIOD, Uint16 groupInItem, Uint16 newGroup)
 adds a new overlay bitmap.
DVPSOverlaygetOverlayGroup (Uint16 group)
 get overlay by group

Private Member Functions

DVPSOverlay_PListoperator= (const DVPSOverlay_PList &)
 private undefined assignment operator

Private Attributes

OFList< DVPSOverlay * > list_
 the list maintained by this object

Detailed Description

the list of overlays contained in a presentation state (internal use only).

This class manages the data structures comprising the list of overlays (all instances of the Overlay Plane Module repeating elements) contained in a Presentation State object.


Member Function Documentation

OFCondition DVPSOverlay_PList::addOverlay ( DcmItem overlayIOD,
Uint16  groupInItem,
Uint16  newGroup 
)

adds a new overlay bitmap.

The overlay is read from a DICOM dataset which must contain the attributes required for a graphic or ROI overlay, see class DVPSOverlay. The dataset can be an image or standalone overlay IOD. The overlay data is copied into the presentation state, i.e. the DICOM dataset can be deleted after execution of this method.

Parameters:
overlayIODthe DICOM dataset from which the overlay is to be read the repeating group 0x6000..0x61F (even) of the overlay to be read
newGrouprepeating group number 0x6000-0x601F (even) to be used for the overlay in the presentation state.
Returns:
EC_Normal upon success, an error code otherwise.
OFCondition DVPSOverlay_PList::changeOverlayGroup ( size_t  idx,
Uint16  newGroup 
)

changes the repeating group used for an overlay.

Parameters:
idxindex of the overlay, must be < size().
newGroupnew repeating group number 0x6000-0x601F (even)
Returns:
EC_Normal upon success, an error code otherwise.

reset the object to initial state.

After this call, the object is in the same state as after creation with the default constructor.

clone method.

Returns:
a pointer to a new DVPSOverlay_PList object containing a deep copy of this object.

gets the overlay object with the given index.

Parameters:
idxindex of the overlay, must be < size().
Returns:
pointer to overlay object or NULL.

get overlay by group

Parameters:
groupoverlay repeating group to be checked
Returns:
a pointer to the matching DVPSOverlay object if found, NULL otherwise.
OFBool DVPSOverlay_PList::haveOverlayGroup ( Uint16  group)

check presence of overlay group

Parameters:
groupoverlay repeating group to be checked
Returns:
OFTrue if the specified overlay group is present in the list of overlays managed by this object.

reads all overlay groups from a DICOM dataset.

This method checks which overlays are contained in the DICOM dataset. All overlays that contain the OverlayData element are copied into the "list of overlays" structure managed by this object. The completeness of the overlays (presence of all required elements, value multiplicity) is checked. If this method returns an error code, the object is in undefined state afterwards.

Parameters:
dsetthe DICOM dataset from which the overlays are read
Returns:
EC_Normal if successful, an error code otherwise.

removes the overlay object with the given index.

Parameters:
idxindex of the overlay, must be < size().
Returns:
EC_Normal upon success, an error code otherwise
size_t DVPSOverlay_PList::size ( ) const [inline]

gets the number of overlays in managed by this object.

Returns:
number of overlays in this list.

writes the overlays managed by this object to a DICOM dataset.

Copies of the DICOM elements managed by this object are inserted into the DICOM dataset.

Parameters:
dsetthe DICOM dataset to which the overlays are written
Returns:
EC_Normal if successful, an error code otherwise.

The documentation for this class was generated from the following file:


Generated on Tue May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027