DCMTK
Version 3.6.4
OFFIS DICOM Toolkit
|
the list of overlays contained in a presentation state (internal use only). More...
Public Member Functions | |
DVPSOverlay_PList () | |
default constructor | |
DVPSOverlay_PList (const DVPSOverlay_PList ©) | |
copy constructor | |
DVPSOverlay_PList * | clone () |
clone method. More... | |
virtual | ~DVPSOverlay_PList () |
destructor | |
OFCondition | read (DcmItem &dset) |
reads all overlay groups from a DICOM dataset. More... | |
OFCondition | write (DcmItem &dset) |
writes the overlays managed by this object to a DICOM dataset. More... | |
void | clear () |
reset the object to initial state. More... | |
OFBool | haveOverlayGroup (Uint16 group) |
check presence of overlay group More... | |
size_t | size () const |
gets the number of overlays in managed by this object. More... | |
DVPSOverlay * | getOverlay (size_t idx) |
gets the overlay object with the given index. More... | |
OFCondition | removeOverlay (size_t idx) |
removes the overlay object with the given index. More... | |
OFCondition | changeOverlayGroup (size_t idx, Uint16 newGroup) |
changes the repeating group used for an overlay. More... | |
OFCondition | addOverlay (DcmItem &overlayIOD, Uint16 groupInItem, Uint16 newGroup) |
adds a new overlay bitmap. More... | |
DVPSOverlay * | getOverlayGroup (Uint16 group) |
get overlay by group More... | |
Private Member Functions | |
DVPSOverlay_PList & | operator= (const DVPSOverlay_PList &) |
private undefined assignment operator | |
Private Attributes | |
OFList< DVPSOverlay * > | list_ |
the list maintained by this object | |
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.
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.
overlayIOD | the DICOM dataset from which the overlay is to be read the repeating group 0x6000..0x61F (even) of the overlay to be read |
newGroup | repeating group number 0x6000-0x601F (even) to be used for the overlay in the presentation state. |
OFCondition DVPSOverlay_PList::changeOverlayGroup | ( | size_t | idx, |
Uint16 | newGroup | ||
) |
changes the repeating group used for an overlay.
idx | index of the overlay, must be < size(). |
newGroup | new repeating group number 0x6000-0x601F (even) |
void DVPSOverlay_PList::clear | ( | ) |
reset the object to initial state.
After this call, the object is in the same state as after creation with the default constructor.
|
inline |
clone method.
DVPSOverlay* DVPSOverlay_PList::getOverlay | ( | size_t | idx | ) |
gets the overlay object with the given index.
idx | index of the overlay, must be < size(). |
DVPSOverlay* DVPSOverlay_PList::getOverlayGroup | ( | Uint16 | group | ) |
get overlay by group
group | overlay repeating group to be checked |
OFBool DVPSOverlay_PList::haveOverlayGroup | ( | Uint16 | group | ) |
check presence of overlay group
group | overlay repeating group to be checked |
OFCondition DVPSOverlay_PList::read | ( | DcmItem & | dset | ) |
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.
dset | the DICOM dataset from which the overlays are read |
OFCondition DVPSOverlay_PList::removeOverlay | ( | size_t | idx | ) |
removes the overlay object with the given index.
idx | index of the overlay, must be < size(). |
|
inline |
gets the number of overlays in managed by this object.
OFCondition DVPSOverlay_PList::write | ( | DcmItem & | dset | ) |
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.
dset | the DICOM dataset to which the overlays are written |