Public Member Functions | |
DVPSTextObject () | |
default constructor | |
DVPSTextObject (const DVPSTextObject ©) | |
copy constructor | |
DVPSTextObject * | clone () |
clone method. | |
virtual | ~DVPSTextObject () |
destructor | |
OFCondition | read (DcmItem &dset) |
reads a text object from a DICOM dataset. | |
OFCondition | write (DcmItem &dset) |
writes the text object managed by this object to a DICOM dataset. | |
OFBool | haveAnchorPoint () |
checks if this text object contains an anchor point. | |
OFBool | haveBoundingBox () |
checks if this text object contains bounding box. | |
OFCondition | setAnchorPoint (double x, double y, DVPSannotationUnit unit, OFBool isVisible) |
sets an anchor point for this text object. | |
OFCondition | setBoundingBox (double TLHC_x, double TLHC_y, double BRHC_x, double BRHC_y, DVPSannotationUnit unit, DVPSTextJustification justification) |
sets bounding box for this text object. | |
OFCondition | setText (const char *text) |
assigns a new "unformatted text value" for this text object. | |
void | removeAnchorPoint () |
removes any anchor point from the text object. | |
void | removeBoundingBox () |
removes any bounding box from the text object. | |
const char * | getText () |
gets the unformatted text value for this text object. | |
double | getBoundingBoxTLHC_x () |
gets the bounding box TLHC x value. | |
double | getBoundingBoxTLHC_y () |
gets the bounding box TLHC y value. | |
double | getBoundingBoxBRHC_x () |
gets the bounding box BRHC x value. | |
double | getBoundingBoxBRHC_y () |
gets the bounding box BRHC y value. | |
DVPSannotationUnit | getBoundingBoxAnnotationUnits () |
gets the bounding box annotation units. | |
DVPSTextJustification | getBoundingBoxHorizontalJustification () |
gets the bounding box horizontal justification. | |
double | getAnchorPoint_x () |
gets the anchor point x value. | |
double | getAnchorPoint_y () |
gets the anchor point y value. | |
OFBool | anchorPointIsVisible () |
gets the anchor point visibility May only be called when an anchor point is present (haveAnchorPoint()==OFTrue) | |
DVPSannotationUnit | getAnchorPointAnnotationUnits () |
gets the anchor point annotation units. | |
void | setLog (OFConsole *stream, OFBool verbMode, OFBool dbgMode) |
sets a new log stream | |
Private Member Functions | |
DVPSTextObject & | operator= (const DVPSTextObject &) |
private undefined assignment operator | |
Private Attributes | |
DcmCodeString | boundingBoxAnnotationUnits |
VR=CS, VM=1, Type 1c. | |
DcmCodeString | anchorPointAnnotationUnits |
VR=CS, VM=1, Type 1c. | |
DcmShortText | unformattedTextValue |
VR=ST, VM=1, Type 1. | |
DcmFloatingPointSingle | boundingBoxTLHC |
VR=FL, VM=2, Type 1c. | |
DcmFloatingPointSingle | boundingBoxBRHC |
VR=FL, VM=2, Type 1c. | |
DcmCodeString | boundingBoxTextHorizontalJustification |
VR=CS, VM=1, Type 1c. | |
DcmFloatingPointSingle | anchorPoint |
VR=FL, VM=2, Type 1c. | |
DcmCodeString | anchorPointVisibility |
VR=CS, VM=1, 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 Text Object Sequence which is contained in the Graphic Annotation Sequence in a Presentation State object.
Definition at line 47 of file dvpstx.h.
|
gets the anchor point visibility May only be called when an anchor point is present (haveAnchorPoint()==OFTrue)
|
|
clone method.
Definition at line 60 of file dvpstx.h. References DVPSTextObject(). |
|
gets the anchor point x value. May only be called when an anchor point is present (haveAnchorPoint()==OFTrue)
|
|
gets the anchor point y value. May only be called when an anchor point is present (haveAnchorPoint()==OFTrue)
|
|
gets the anchor point annotation units. May only be called when an anchor point is present (haveAnchorPoint()==OFTrue)
|
|
gets the bounding box annotation units. May only be called when a bounding box is present (haveBoundingBox()==OFTrue)
|
|
gets the bounding box BRHC x value. May only be called when a bounding box is present (haveBoundingBox()==OFTrue)
|
|
gets the bounding box BRHC y value. May only be called when a bounding box is present (haveBoundingBox()==OFTrue)
|
|
gets the bounding box horizontal justification. May only be called when a bounding box is present (haveBoundingBox()==OFTrue)
|
|
gets the bounding box TLHC x value. May only be called when a bounding box is present (haveBoundingBox()==OFTrue)
|
|
gets the bounding box TLHC y value. May only be called when a bounding box is present (haveBoundingBox()==OFTrue)
|
|
gets the unformatted text value for this text object.
|
|
checks if this text object contains an anchor point.
|
|
checks if this text object contains bounding box.
|
|
reads a text object from a DICOM dataset. The DICOM elements of the Text Object 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.
|
|
removes any anchor point from the text object. Attention: A text object must always contain either anchor point, bounding box or both. This property is not asserted by the text object itself. |
|
removes any bounding box from the text object. Attention: A text object must always contain either anchor point, bounding box or both. This property is not asserted by the text object itself. |
|
sets an anchor point for this text object.
|
|
sets bounding box for this text object.
|
|
sets a new log stream
|
|
assigns a new "unformatted text value" for this text object.
|
|
writes the text object managed by this object to a DICOM dataset. Copies of the DICOM element managed by this object are inserted into the DICOM dataset.
|