Public Member Functions | |
DVPSTextObject_PList () | |
default constructor | |
DVPSTextObject_PList (const DVPSTextObject_PList ©) | |
copy constructor | |
DVPSTextObject_PList * | clone () |
clone method. | |
virtual | ~DVPSTextObject_PList () |
destructor | |
OFCondition | read (DcmItem &dset) |
reads a list of text objects from a DICOM dataset. | |
OFCondition | write (DcmItem &dset) |
writes the list of text objects managed by this object to a DICOM dataset. | |
void | clear () |
reset the object to initial state. | |
size_t | size () const |
get number of text objects in this list. | |
DVPSTextObject * | getTextObject (size_t idx) |
returns a pointer to the text 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. | |
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. | |
void | setLog (OFConsole *stream, OFBool verbMode, OFBool dbgMode) |
sets a new log stream | |
Private Member Functions | |
DVPSTextObject_PList & | operator= (const DVPSTextObject_PList &) |
private undefined assignment operator | |
Private Attributes | |
OFList< DVPSTextObject * > | 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 one complete Text Object Sequence which is contained in one item of the Graphic Annotation Sequence in a Presentation State object.
Definition at line 50 of file dvpstxl.h.
|
adds the given text object to the list of text objects managed by this object.
|
|
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 63 of file dvpstxl.h. References DVPSTextObject_PList(). |
|
returns a pointer to the text object with the given index or NULL if it does not exist.
|
|
reads a list of text objects from a DICOM dataset. The DICOM elements of the Text Object 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.
|
|
returns a pointer to the text object with the given index (or NULL if it does not exist) and removes it from the list.
|
|
sets a new log stream
|
|
get number of text objects in this list.
Definition at line 96 of file dvpstxl.h. References list_, and OFList< T >::size(). |
|
writes the list of text objects managed by this object to a DICOM dataset. Copies of the DICOM elements managed by this object are inserted into the DICOM dataset.
|