DCMTK
Version 3.6.2
OFFIS DICOM Toolkit
|
the list of Annotations contained in a stored print object. More...
Public Member Functions | |
DVPSAnnotationContent_PList () | |
default constructor | |
DVPSAnnotationContent_PList (const DVPSAnnotationContent_PList ©) | |
copy constructor | |
DVPSAnnotationContent_PList * | clone () |
clone method. More... | |
virtual | ~DVPSAnnotationContent_PList () |
destructor | |
OFCondition | read (DcmItem &dset) |
reads a list of annotations (AnnotationContentSequence) from a DICOM dataset. More... | |
OFCondition | write (DcmItem &dset) |
writes the list of annotations managed by this object to a DICOM dataset. More... | |
void | clear () |
reset the object to initial state. More... | |
size_t | size () const |
gets the number of annotations in this list. More... | |
OFCondition | addAnnotationBox (const char *instanceuid, const char *text, Uint16 position) |
creates a new annotation object and sets the content of this annotation object. More... | |
OFCondition | deleteAnnotation (size_t idx) |
deletes one of the registered annotations. More... | |
OFCondition | deleteMultipleAnnotations (size_t number) |
deletes multiple of the registered annotations, starting with the first one. More... | |
OFCondition | setAnnotationSOPInstanceUID (size_t idx, const char *value) |
sets the SOP instance UID for the given annotation. More... | |
const char * | getSOPInstanceUID (size_t idx) |
gets the current SOP Instance UID for the given registered annotation. More... | |
OFCondition | prepareBasicAnnotationBox (size_t idx, DcmItem &dset) |
writes the attributes managed by the referenced object that are part of a basic annotation box N-SET request into the DICOM dataset. More... | |
void | clearAnnotationSOPInstanceUIDs () |
removes all UIDs from the annotation boxes managed by this object | |
Private Member Functions | |
DVPSAnnotationContent_PList & | operator= (const DVPSAnnotationContent_PList &) |
private undefined assignment operator | |
DVPSAnnotationContent * | getAnnotationBox (size_t idx) |
returns a pointer to the annotation with the given index or NULL if it does not exist. More... | |
Private Attributes | |
OFList< DVPSAnnotationContent * > | list_ |
the list maintained by this object | |
the list of Annotations contained in a stored print object.
This class manages the data structures comprising one complete Annotation Content Sequence in a Stored Print object.
OFCondition DVPSAnnotationContent_PList::addAnnotationBox | ( | const char * | instanceuid, |
const char * | text, | ||
Uint16 | position | ||
) |
creates a new annotation object and sets the content of this annotation object.
instanceuid | SOP instance UID of this annotation |
text | annotation text string |
position | annotation box position |
void DVPSAnnotationContent_PList::clear | ( | ) |
reset the object to initial state.
After this call, the object is in the same state as after creation with the default constructor.
|
inline |
clone method.
OFCondition DVPSAnnotationContent_PList::deleteAnnotation | ( | size_t | idx | ) |
deletes one of the registered annotations.
idx | index, must be < size() |
OFCondition DVPSAnnotationContent_PList::deleteMultipleAnnotations | ( | size_t | number | ) |
deletes multiple of the registered annotations, starting with the first one.
number | number of annotations to delete, must be <= size() |
|
private |
returns a pointer to the annotation with the given index or NULL if it does not exist.
idx | index, must be < size() |
const char* DVPSAnnotationContent_PList::getSOPInstanceUID | ( | size_t | idx | ) |
gets the current SOP Instance UID for the given registered annotation.
idx | index, must be < getNumberOfAnnotations() |
OFCondition DVPSAnnotationContent_PList::prepareBasicAnnotationBox | ( | size_t | idx, |
DcmItem & | dset | ||
) |
writes the attributes managed by the referenced object that are part of a basic annotation box N-SET request into the DICOM dataset.
Copies of the DICOM element managed by this object are inserted into the DICOM dataset.
idx | index, must be < getNumberOfAnnotations() |
dset | the dataset to which the data is written |
OFCondition DVPSAnnotationContent_PList::read | ( | DcmItem & | dset | ) |
reads a list of annotations (AnnotationContentSequence) from a DICOM dataset.
The DICOM elements of the annotations are copied from the dataset to this object. The completeness of all items (presence of all required elements, value multiplicity) is checked. If this method returns an error code, the object is in undefined state afterwards.
dset | the DICOM dataset from which the sequence is to be read |
OFCondition DVPSAnnotationContent_PList::setAnnotationSOPInstanceUID | ( | size_t | idx, |
const char * | value | ||
) |
sets the SOP instance UID for the given annotation.
idx | index, must be < getNumberOfAnnotations() |
value | new attribute value, must not be NULL. |
|
inline |
gets the number of annotations in this list.
OFCondition DVPSAnnotationContent_PList::write | ( | DcmItem & | dset | ) |
writes the list of annotations managed by this object to a DICOM dataset.
Copies of the DICOM element managed by this object are inserted into the DICOM dataset.
dset | the DICOM dataset to which the AnnotationContentSequence is written |