DCMTK  Version 3.6.6
OFFIS DICOM Toolkit
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DVPSReferencedSeries Class Reference

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)
 copy constructor
 
DVPSReferencedSeriesclone ()
 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...
 
DVPSReferencedImagefindImageReference (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

DVPSReferencedSeriesoperator= (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.
 

Detailed Description

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.

Member Function Documentation

◆ addImageReference()

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.

Parameters
sopclassUIDa pointer to the Image SOP Class UID, which is copied into the new image reference
instanceUIDa pointer to the Image SOP Instance UID, which is copied into the new image reference
framesa 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.
Returns
EC_Normal if successful, an error code otherwise.

◆ clone()

DVPSReferencedSeries* DVPSReferencedSeries::clone ( )
inline

clone method.

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

◆ findImageReference()

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.

Parameters
sopinstanceuidthe SOP instance UID of the searched image reference
Returns
a pointer to the matching DVPSReferencedImage if found, NULL otherwise.

◆ getImageReference()

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.

Parameters
idxindex, must be < numberOfImageReferences().
seriesUIDthe Series Instance UID is returned in this string
sopclassUIDthe SOP Class UID is returned in this string
instanceUIDthe SOP Instance UID is returned in this string
framesthe list of frames is returned in this string
aetitlethe series retrieveAETitle is returned in this string
filesetIDthe series storageMediaFileSetID is returned in this string
filesetUIDthe series storageMediaFileSetUID is returned in this string
Returns
EC_Normal if successful, an error code otherwise.

◆ getRetrieveAETitle()

const char* DVPSReferencedSeries::getRetrieveAETitle ( )

gets the retrieveAETitle for this series reference.

Returns
retrieveAETitle if present, NULL otherwise.

◆ getStorageMediaFileSetID()

const char* DVPSReferencedSeries::getStorageMediaFileSetID ( )

gets the storageMediaFileSetID for this series reference.

Returns
storageMediaFileSetID if present, NULL otherwise.

◆ getStorageMediaFileSetUID()

const char* DVPSReferencedSeries::getStorageMediaFileSetUID ( )

gets the storageMediaFileSetUID for this series reference.

Returns
storageMediaFileSetUID if present, NULL otherwise.

◆ isSeriesUID()

OFBool DVPSReferencedSeries::isSeriesUID ( const char *  uid)

compare SOP Instance UID.

Parameters
uidthe UID to be compared
Returns
OFTrue if the SeriesInstanceUID of this object is equal to uid, OFFalse otherwise.

◆ isValid()

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.

Parameters
sopclassuidthe SOP class UID to be validated
Returns
OFTrue if successful, OFFalse if unsuccessful.

◆ numberOfImageReferences()

size_t DVPSReferencedSeries::numberOfImageReferences ( ) const
inline

gets the number of image references in this object.

Returns
the number of image references.

◆ read()

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.

Parameters
dsetthe item of the ReferencedSeriesSequence from which the data is to be read
Returns
EC_Normal if successful, an error code otherwise.

◆ removeImageReference()

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.

Parameters
uida pointer to the image SOP instance UID.

◆ setRetrieveLocation()

void DVPSReferencedSeries::setRetrieveLocation ( const char *  aetitle = NULL,
const char *  filesetID = NULL,
const char *  filesetUID = NULL 
)

set the optional retrieve location for this series reference.

Parameters
aetitlethe retrieveAETitle, must be a valid DICOM 'AE' value. Default: value absent.
filesetIDthe storageMediaFileSetID, must be a valid DICOM 'SH' value. Default: value absent.
filesetUIDthe storageMediaFileSetUID, must be a valid DICOM UID. Default: value absent.

◆ setSeriesInstanceUID()

void DVPSReferencedSeries::setSeriesInstanceUID ( const char *  uid)

set Series Instance UID of this series reference.

Parameters
uida pointer to the UID, which is copied into this object.

◆ write()

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.

Parameters
dsetthe the item of the ReferencedSeriesSequence to which the data is written
Returns
EC_Normal if successful, an error code otherwise.

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


Generated on Thu Jan 14 2021 for DCMTK Version 3.6.6 by Doxygen 1.8.18