33 #include "dcmtk/config/osconfig.h" 34 #include "dcmtk/dcmdata/dcitem.h" 35 #include "dcmtk/dcmpstat/dvpstyp.h" 96 void renameLayer(
const char *oldName,
const char *newName);
153 const char *sopclassUID,
154 const char *instanceUID,
156 DVPSObjectApplicability applicability,
181 const char *old_layer,
182 const char *sopclassUID,
183 const char *instanceUID,
186 DVPSObjectApplicability applicability,
187 const char *new_layer);
225 const char *sopclassUID,
226 const char *instanceUID,
228 DVPSObjectApplicability applicability,
253 const char *old_layer,
254 const char *sopclassUID,
255 const char *instanceUID,
258 DVPSObjectApplicability applicability,
259 const char *new_layer);
a class representing a list of DICOM elements in which each element has a different tag and elements ...
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.
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...
void clear()
reset the object to initial state.
OFCondition read(DcmItem &dset)
reads a list of graphic annotations from a DICOM dataset.
size_t getNumberOfGraphicObjects(const char *layer, const char *instanceUID, unsigned long frame)
returns the number of graphic objects for the given graphic layer.
an item of the text object sequence in a presentation state (internal use only).
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 l...
OFList< DVPSGraphicAnnotation * > list_
the list maintained by this object
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.
virtual ~DVPSGraphicAnnotation_PList()
destructor
an item of the graphic annotation sequence in a presentation state (internal use only).
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 fram...
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 la...
DVPSGraphicAnnotation_PList & operator=(const DVPSGraphicAnnotation_PList &)
private undefined assignment operator
DVPSGraphicAnnotation_PList()
default constructor
an item of the graphic object sequence in a presentation state (internal use only).
OFCondition write(DcmItem &dset)
writes the list of graphic annotations managed by this object to a DICOM dataset. ...
void renameLayer(const char *oldName, const char *newName)
renames the graphic annotation layer name in all activations with a matching old graphic annotation l...
the list of graphic annotations contained in a presentation state (internal use only).
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.
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.
void removeLayer(const char *name)
deletes all graphic annotation layers belonging to the given graphic annotation layer name...
OFBool usesLayerName(const char *name)
checks if the given layer name is used for any of the graphic annotation layers managed by this objec...
DVPSGraphicAnnotation_PList * clone()
clone method.
void cleanupLayers()
deletes all graphic annotation sequence items containing no text and no graphic object.
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.
General purpose class for condition codes.