Inheritance diagram for DSRImageReferenceValue:
Public Member Functions | |
DSRImageReferenceValue () | |
default contructor | |
DSRImageReferenceValue (const OFString &sopClassUID, const OFString &sopInstanceUID) | |
constructor. | |
DSRImageReferenceValue (const OFString &imageSOPClassUID, const OFString &imageSOPInstanceUID, const OFString &pstateSOPClassUID, const OFString &pstateSOPInstanceUID) | |
constructor. | |
DSRImageReferenceValue (const DSRImageReferenceValue &referenceValue) | |
copy constructor | |
DSRImageReferenceValue (const DSRCompositeReferenceValue &imageReferenceValue, const DSRCompositeReferenceValue &pstateReferenceValue) | |
copy constructor | |
virtual | ~DSRImageReferenceValue () |
destructor | |
DSRImageReferenceValue & | operator= (const DSRImageReferenceValue &referenceValue) |
assignment operator | |
virtual void | clear () |
clear all internal variables. | |
virtual OFBool | isValid () const |
check whether the current image reference value is valid. | |
virtual OFBool | isShort (const size_t flags) const |
check whether the content is short. | |
virtual OFCondition | print (ostream &stream, const size_t flags) const |
print image reference. | |
virtual OFCondition | readXML (const DSRXMLDocument &doc, DSRXMLCursor cursor) |
read image reference from XML document | |
virtual OFCondition | writeXML (ostream &stream, const size_t flags, OFConsole *logStream) const |
write image reference in XML format | |
virtual OFCondition | renderHTML (ostream &docStream, ostream &annexStream, size_t &annexNumber, const size_t flags, OFConsole *logStream) const |
render image reference value in HTML format | |
const DSRImageReferenceValue & | getValue () const |
get reference to image reference value | |
OFCondition | getValue (DSRImageReferenceValue &referenceValue) const |
get copy of image reference value | |
OFCondition | setValue (const DSRImageReferenceValue &referenceValue) |
set image reference value. | |
const DSRCompositeReferenceValue & | getPresentationState () const |
get reference to presentation state value | |
OFCondition | setPresentationState (const DSRCompositeReferenceValue &referenceValue) |
set presentation state value. | |
DSRImageFrameList & | getFrameList () |
get reference to list of referenced frame numbers | |
OFBool | appliesToFrame (const Sint32 frameNumber) const |
check whether the image reference applies to a specific frame. | |
Protected Member Functions | |
DSRImageReferenceValue * | getValuePtr () |
get pointer to image reference value | |
virtual OFCondition | readItem (DcmItem &dataset, OFConsole *logStream) |
read image reference value from dataset | |
virtual OFCondition | writeItem (DcmItem &dataset, OFConsole *logStream) const |
write image reference value to dataset | |
virtual OFBool | checkSOPClassUID (const OFString &sopClassUID) const |
check the specified SOP class UID for validity. | |
OFBool | checkPresentationState (const DSRCompositeReferenceValue &referenceValue) const |
check the presentation state object for validity. | |
Private Attributes | |
DSRCompositeReferenceValue | PresentationState |
composite reference value (SOP class/instance UID) to presentation state (optional) | |
DSRImageFrameList | FrameList |
list of referenced frame numbers (associated DICOM VR=IS, VM=1-n, type 1C) | |
Friends | |
class | DSRContentItem |
Definition at line 51 of file dsrimgvl.h.
|
constructor. The UID pair is only set if it passed the validity check (see setValue()).
|
|
constructor. The UID 4-tuple is only set if it passed the validity check (see setValue()).
|
|
copy constructor
|
|
copy constructor
|
|
check whether the image reference applies to a specific frame. The image reference applies to a frame (of multiframe images) if the list of referenced frame numbers is empty or the frame number is part of the list.
|
|
check the presentation state object for validity. The presentation state object is "valid" if both UIDs are empty or both are not empty and SOP class UID equals to "GrayscaleSoftcopyPresentationStateStorage".
|
|
check the specified SOP class UID for validity. The only check that is currently performed is that the UID is not empty. Later on it might be checked whether the specified SOP class is really an image storage SOP class.
Reimplemented from DSRCompositeReferenceValue. |
|
clear all internal variables. Since an empty image reference is invalid the reference becomes invalid afterwards. Reimplemented from DSRCompositeReferenceValue. Reimplemented in DSRImageTreeNode. |
|
get reference to list of referenced frame numbers
Definition at line 218 of file dsrimgvl.h. References FrameList. |
|
get reference to presentation state value
Definition at line 202 of file dsrimgvl.h. References PresentationState. |
|
get copy of image reference value
|
|
get reference to image reference value
Reimplemented from DSRCompositeReferenceValue. Definition at line 180 of file dsrimgvl.h. |
|
get pointer to image reference value
Reimplemented from DSRCompositeReferenceValue. Definition at line 237 of file dsrimgvl.h. |
|
check whether the content is short. This method is used to check whether the rendered output of this content item can be expanded inline or not (used for renderHTML()).
Reimplemented in DSRImageTreeNode. |
|
check whether the current image reference value is valid. The reference value is valid if SOP class UID and SOP instance UID are valid (see checkSOP...UID() for details) and the optional presentation state is valid (see checkPresentationState()).
Reimplemented from DSRCompositeReferenceValue. Reimplemented in DSRImageTreeNode. |
|
assignment operator
|
|
print image reference. The output of a typical image reference value looks like this: (CT image,"1.2.3") or (CT image,"1.2.3"),(GSPS,"1.2.3.4") if a presentation state is present. If the SOP class UID is unknown the UID is printed instead of the related name.
Reimplemented from DSRCompositeReferenceValue. Reimplemented in DSRImageTreeNode. |
|
read image reference value from dataset
Reimplemented from DSRCompositeReferenceValue. |
|
read image reference from XML document
Reimplemented from DSRCompositeReferenceValue. |
|
render image reference value in HTML format
Reimplemented from DSRCompositeReferenceValue. |
|
set presentation state value. Before setting the reference it is checked (see checkPresentationState()). If the value is invalid the current value is not replaced and remains unchanged.
|
|
set image reference value. Before setting the reference it is checked (see checkXXX()). If the value is invalid the current value is not replaced and remains unchanged.
|
|
write image reference value to dataset
Reimplemented from DSRCompositeReferenceValue. |
|
write image reference in XML format
Reimplemented from DSRCompositeReferenceValue. Reimplemented in DSRImageTreeNode. |