Public Member Functions | |
DVPSGraphicAnnotation_PList () | |
default constructor | |
DVPSGraphicAnnotation_PList (const DVPSGraphicAnnotation_PList ©) | |
copy constructor | |
DVPSGraphicAnnotation_PList * | clone () |
clone method. | |
virtual | ~DVPSGraphicAnnotation_PList () |
destructor | |
OFCondition | read (DcmItem &dset) |
reads a list of graphic annotations from a DICOM dataset. | |
OFCondition | write (DcmItem &dset) |
writes the list of graphic annotations managed by this object to a DICOM dataset. | |
void | clear () |
reset the object to initial state. | |
void | renameLayer (const char *oldName, const char *newName) |
renames the graphic annotation layer name in all activations with a matching old graphic annotation layer name. | |
void | removeLayer (const char *name) |
deletes all graphic annotation layers belonging to the given graphic annotation layer name. | |
void | cleanupLayers () |
deletes all graphic annotation sequence items containing no text and no graphic object. | |
OFBool | usesLayerName (const char *name) |
checks if the given layer name is used for any of the graphic annotation layers managed by this object. | |
size_t | getNumberOfTextObjects (const char *layer, const char *instanceUID, unsigned long frame) |
returns the number of text objects for the given graphic layer that apply to the given image and frame. | |
DVPSTextObject * | getTextObject (const char *layer, const char *instanceUID, unsigned long frame, size_t idx) |
gets the text object (applicable to the current image and frame) with the given index on the given layer. | |
DVPSTextObject * | addTextObject (const char *layer, const char *sopclassUID, const char *instanceUID, unsigned long frame, DVPSObjectApplicability applicability, DVPSTextObject *text=NULL) |
creates a new text object on the given layer. | |
OFCondition | removeTextObject (const char *layer, const char *instanceUID, unsigned long frame, size_t idx) |
deletes the text object (applicable to the current image and frame) with the given index on the given layer. | |
OFCondition | moveTextObject (const char *old_layer, const char *sopclassUID, const char *instanceUID, unsigned long frame, size_t idx, DVPSObjectApplicability applicability, const char *new_layer) |
moves the text object (applicable to the current image and frame) with the given index on the given layer to a different layer. | |
size_t | getNumberOfGraphicObjects (const char *layer, const char *instanceUID, unsigned long frame) |
returns the number of graphic objects for the given graphic layer. | |
DVPSGraphicObject * | getGraphicObject (const char *layer, const char *instanceUID, unsigned long frame, size_t idx) |
gets the graphic object with the given index on the given layer. | |
DVPSGraphicObject * | addGraphicObject (const char *layer, const char *sopclassUID, const char *instanceUID, unsigned long frame, DVPSObjectApplicability applicability, DVPSGraphicObject *graphic=NULL) |
creates a new graphic object on the given layer. | |
OFCondition | removeGraphicObject (const char *layer, const char *instanceUID, unsigned long frame, size_t idx) |
deletes the graphic object with the given index on the given layer. | |
OFCondition | moveGraphicObject (const char *old_layer, const char *sopclassUID, const char *instanceUID, unsigned long frame, size_t idx, DVPSObjectApplicability applicability, const char *new_layer) |
moves the graphic object with the given index on the given layer to a different layer. | |
void | setLog (OFConsole *stream, OFBool verbMode, OFBool dbgMode) |
sets a new log stream | |
Private Member Functions | |
DVPSGraphicAnnotation_PList & | operator= (const DVPSGraphicAnnotation_PList &) |
private undefined assignment operator | |
Private Attributes | |
OFList< DVPSGraphicAnnotation * > | list_ |
the list maintained by this object | |
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 the complete Graphic Annotation Sequence in a Presentation State object.
Definition at line 51 of file dvpsgal.h.
|
creates a new graphic object on the given layer. Returns a pointer to the new graphic object. If the graphic layer does not exist or if the creation of the graphic object fails, NULL is returned.
|
|
creates a new text object on the given layer. Returns a pointer to the new text object. If no graphic layer with appropriate applicability exists, it is created. If the creation of the layer or text object fails, NULL is returned.
|
|
deletes all graphic annotation sequence items containing no text and no graphic object. Called before writing a presentation state. |
|
reset the object to initial state. After this call, the object is in the same state as after creation with the default constructor. |
|
clone method.
Definition at line 64 of file dvpsgal.h. References DVPSGraphicAnnotation_PList(). |
|
gets the graphic object with the given index on the given layer. If the graphic object or the graphic layer does not exist, NULL is returned.
|
|
returns the number of graphic objects for the given graphic layer.
|
|
returns the number of text objects for the given graphic layer that apply to the given image and frame.
|
|
gets the text object (applicable to the current image and frame) with the given index on the given layer. If the text object or the graphic layer does not exist, NULL is returned.
|
|
moves the graphic object with the given index on the given layer to a different layer.
|
|
moves the text object (applicable to the current image and frame) with the given index on the given layer to a different layer.
|
|
reads a list of graphic annotations from a DICOM dataset. The DICOM elements of the Graphic Annotation Sequence 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.
|
|
deletes the graphic object with the given index on the given layer.
|
|
deletes all graphic annotation layers belonging to the given graphic annotation layer name.
|
|
deletes the text object (applicable to the current image and frame) with the given index on the given layer.
|
|
renames the graphic annotation layer name in all activations with a matching old graphic annotation layer name. Required to keep the presentation consistent when a graphic layer is renamed.
|
|
sets a new log stream
|
|
checks if the given layer name is used for any of the graphic annotation layers managed by this object.
|
|
writes the list of graphic annotations managed by this object to a DICOM dataset. Copies of the DICOM elements managed by this object are inserted into the DICOM dataset.
|