DCMTK
Version 3.6.6
OFFIS DICOM Toolkit
|
an item of the referenced series sequence in a presentation state (internal use only). More...
Public Member Functions | |
DVPSReferencedSeries () | |
default constructor | |
DVPSReferencedSeries (const DVPSReferencedSeries ©) | |
copy constructor | |
DVPSReferencedSeries * | clone () |
clone method. More... | |
virtual | ~DVPSReferencedSeries () |
destructor | |
OFCondition | read (DcmItem &dset) |
reads an series reference from a DICOM dataset. More... | |
OFCondition | write (DcmItem &dset) |
writes the series reference managed by this object to a DICOM dataset. More... | |
OFBool | isValid (OFString &sopclassuid) |
check if the passed SOP Class UID is equal to the ones stored in this object. More... | |
OFBool | isSeriesUID (const char *uid) |
compare SOP Instance UID. More... | |
DVPSReferencedImage * | findImageReference (const char *sopinstanceuid) |
checks if an image reference with the given SOP instance UID exists in the ReferencedImageSequence of this series reference. More... | |
void | removeImageReference (const char *sopinstanceuid) |
remove image reference from this series reference if present. More... | |
void | setSeriesInstanceUID (const char *uid) |
set Series Instance UID of this series reference. More... | |
void | setRetrieveLocation (const char *aetitle=NULL, const char *filesetID=NULL, const char *filesetUID=NULL) |
set the optional retrieve location for this series reference. More... | |
const char * | getRetrieveAETitle () |
gets the retrieveAETitle for this series reference. More... | |
const char * | getStorageMediaFileSetID () |
gets the storageMediaFileSetID for this series reference. More... | |
const char * | getStorageMediaFileSetUID () |
gets the storageMediaFileSetUID for this series reference. More... | |
OFCondition | addImageReference (const char *sopclassUID, const char *instanceUID, const char *frames=NULL) |
add image reference to this series reference. More... | |
size_t | numberOfImageReferences () const |
gets the number of image references in this object. More... | |
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. More... | |
Private Member Functions | |
DVPSReferencedSeries & | operator= (const DVPSReferencedSeries &) |
private undefined assignment operator | |
Private Attributes | |
DVPSReferencedImage_PList | referencedImageList |
Referenced Image Sequence. | |
DcmUniqueIdentifier | seriesInstanceUID |
VR=UI, VM=1, Type 1c. | |
DcmApplicationEntity | retrieveAETitle |
VR=AE, VM=1, Type 3. | |
DcmShortString | storageMediaFileSetID |
VR=SH, VM=1, Type 3. | |
DcmUniqueIdentifier | storageMediaFileSetUID |
VR=UI, VM=1, Type 3. | |
an item of the referenced series sequence in a presentation state (internal use only).
This class manages the data structures comprising one item of the Referenced Series Sequence in a Presentation State object.
OFCondition DVPSReferencedSeries::addImageReference | ( | const char * | sopclassUID, |
const char * | instanceUID, | ||
const char * | frames = NULL |
||
) |
add image reference to this series reference.
A new image reference for this series is created. The image SOP instance UID must be unique (must not yet exist as a reference in this series), otherwise an error code is returned.
sopclassUID | a pointer to the Image SOP Class UID, which is copied into the new image reference |
instanceUID | a pointer to the Image SOP Instance UID, which is copied into the new image reference |
frames | a list of frame numbers in DICOM IS format (integer numbers separated by '\' characters). Default: frame numbers absent. The frame numbers are required if the referenced image is a multiframe image. |
|
inline |
clone method.
DVPSReferencedImage* DVPSReferencedSeries::findImageReference | ( | const char * | sopinstanceuid | ) |
checks if an image reference with the given SOP instance UID exists in the ReferencedImageSequence of this series reference.
sopinstanceuid | the SOP instance UID of the searched image reference |
OFCondition DVPSReferencedSeries::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.
idx | index, must be < numberOfImageReferences(). |
seriesUID | the Series Instance UID is returned in this string |
sopclassUID | the SOP Class UID is returned in this string |
instanceUID | the SOP Instance UID is returned in this string |
frames | the list of frames is returned in this string |
aetitle | the series retrieveAETitle is returned in this string |
filesetID | the series storageMediaFileSetID is returned in this string |
filesetUID | the series storageMediaFileSetUID is returned in this string |
const char* DVPSReferencedSeries::getRetrieveAETitle | ( | ) |
gets the retrieveAETitle for this series reference.
const char* DVPSReferencedSeries::getStorageMediaFileSetID | ( | ) |
gets the storageMediaFileSetID for this series reference.
const char* DVPSReferencedSeries::getStorageMediaFileSetUID | ( | ) |
gets the storageMediaFileSetUID for this series reference.
OFBool DVPSReferencedSeries::isSeriesUID | ( | const char * | uid | ) |
compare SOP Instance UID.
uid | the UID to be compared |
OFBool DVPSReferencedSeries::isValid | ( | OFString & | sopclassuid | ) |
check if the passed SOP Class UID is equal to the ones stored in this object.
This method checks whether this object contains at least one image reference and whether all image references use the same SOP class UID as the one passed. If sopclassuid is empty, the referencedSOPClassUID of the first image reference is assigned to it.
sopclassuid | the SOP class UID to be validated |
|
inline |
gets the number of image references in this object.
OFCondition DVPSReferencedSeries::read | ( | DcmItem & | dset | ) |
reads an series reference from a DICOM dataset.
The DICOM elements of the referenced series item are copied from the dataset to this object. The completeness of the item (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 item of the ReferencedSeriesSequence from which the data is to be read |
void DVPSReferencedSeries::removeImageReference | ( | const char * | sopinstanceuid | ) |
remove image reference from this series reference if present.
If an image reference with a SOP instance UID corresponding to the passed UID is found, it is removed from this series reference.
uid | a pointer to the image SOP instance UID. |
void DVPSReferencedSeries::setRetrieveLocation | ( | const char * | aetitle = NULL , |
const char * | filesetID = NULL , |
||
const char * | filesetUID = NULL |
||
) |
set the optional retrieve location for this series reference.
aetitle | the retrieveAETitle, must be a valid DICOM 'AE' value. Default: value absent. |
filesetID | the storageMediaFileSetID, must be a valid DICOM 'SH' value. Default: value absent. |
filesetUID | the storageMediaFileSetUID, must be a valid DICOM UID. Default: value absent. |
void DVPSReferencedSeries::setSeriesInstanceUID | ( | const char * | uid | ) |
set Series Instance UID of this series reference.
uid | a pointer to the UID, which is copied into this object. |
OFCondition DVPSReferencedSeries::write | ( | DcmItem & | dset | ) |
writes the series reference managed by this object to a DICOM dataset.
Copies of the DICOM element managed by this object are inserted into the DICOM dataset.
dset | the the item of the ReferencedSeriesSequence to which the data is written |