Public Member Functions | |
DVPSGraphicAnnotation () | |
default constructor | |
DVPSGraphicAnnotation (const DVPSGraphicAnnotation ©) | |
copy constructor | |
DVPSGraphicAnnotation * | clone () |
clone method. | |
virtual | ~DVPSGraphicAnnotation () |
destructor | |
OFCondition | read (DcmItem &dset) |
reads a graphic annotation from a DICOM dataset. | |
OFCondition | write (DcmItem &dset) |
writes the graphic annotation managed by this object to a DICOM dataset. | |
const char * | getAnnotationLayer () |
get annotation layer name. | |
void | setAnnotationLayer (const char *aLayer) |
set annotation layer name of this annotation. | |
OFCondition | addImageReference (const char *sopclassUID, const char *instanceUID, unsigned long frame, DVPSObjectApplicability applicability) |
add a new image reference. | |
OFBool | isEmpty () |
checks if this annotation layer is empty. | |
OFBool | isApplicable (const char *instanceUID, unsigned long frame, DVPSObjectApplicability applicability=DVPSB_currentFrame) |
checks if this annotation layer is applicable to the given image and frame. | |
size_t | getNumberOfTextObjects () |
returns the number of text objects in this annotation. | |
size_t | getNumberOfGraphicObjects () |
returns the number of graphic objects in this annotation. | |
DVPSTextObject * | getTextObject (size_t idx) |
returns a pointer to the text object with the given index or NULL if it does not exist. | |
DVPSGraphicObject * | getGraphicObject (size_t idx) |
returns a pointer to the graphic object with the given index or NULL if it does not exist. | |
void | addTextObject (DVPSTextObject *text) |
adds the given text object to the list of text objects managed by this object. | |
void | addGraphicObject (DVPSGraphicObject *graphic) |
adds the given graphic object to the list of graphic objects managed by this object. | |
DVPSTextObject * | removeTextObject (size_t idx) |
returns a pointer to the text object with the given index (or NULL if it does not exist) and removes it from the list. | |
DVPSGraphicObject * | removeGraphicObject (size_t idx) |
returns a pointer to the graphic object with the given index (or NULL if it does not exist) and removes it from the list. | |
void | setLog (OFConsole *stream, OFBool verbMode, OFBool dbgMode) |
sets a new log stream | |
Private Member Functions | |
DVPSGraphicAnnotation & | operator= (const DVPSGraphicAnnotation &) |
private undefined assignment operator | |
Private Attributes | |
DVPSReferencedImage_PList | referencedImageList |
ReferencedImageSequence, Type 1c. | |
DcmCodeString | graphicAnnotationLayer |
VR=CS, VM=1, Type 1. | |
DVPSTextObject_PList | textObjectList |
TextObjectSequence, Type 1c. | |
DVPSGraphicObject_PList | graphicObjectList |
GraphicObjectSequence, Type 1c. | |
OFConsole * | logstream |
output stream for error messages, never NULL | |
OFBool | verboseMode |
flag indicating whether we're operating in verbose mode | |
OFBool | debugMode |
flag indicating whether we're operating in debug mode |
This class manages the data structures comprising one item of the Graphic Annotation Sequence in a Presentation State object.
Definition at line 50 of file dvpsga.h.
|
adds the given graphic object to the list of graphic objects managed by this object.
|
|
add a new image reference. Checks if the referenced SOP instance UID already exists in this sequence. If it exists, an error code is returned. Otherwise a new image reference is created and added to the ReferencedImageSequence.
|
|
adds the given text object to the list of text objects managed by this object.
|
|
clone method.
Definition at line 63 of file dvpsga.h. References DVPSGraphicAnnotation(). |
|
get annotation layer name.
|
|
returns a pointer to the graphic object with the given index or NULL if it does not exist.
|
|
returns the number of graphic objects in this annotation.
|
|
returns the number of text objects in this annotation.
|
|
returns a pointer to the text object with the given index or NULL if it does not exist.
|
|
checks if this annotation layer is applicable to the given image and frame.
|
|
checks if this annotation layer is empty. An annotation layer is empty when it contains no text object and no graphic object.
|
|
reads a graphic annotation from a DICOM dataset. The DICOM elements of the Graphic Annotation 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.
|
|
returns a pointer to the graphic object with the given index (or NULL if it does not exist) and removes it from the list.
|
|
returns a pointer to the text object with the given index (or NULL if it does not exist) and removes it from the list.
|
|
set annotation layer name of this annotation.
|
|
sets a new log stream
|
|
writes the graphic annotation managed by this object to a DICOM dataset. Copies of the DICOM element managed by this object are inserted into the DICOM dataset.
|