DCMTK
Version 3.6.7
OFFIS DICOM Toolkit
|
an item of the graphic object sequence in a presentation state (internal use only). More...
Public Member Functions | |
DVPSGraphicObject () | |
default constructor | |
DVPSGraphicObject (const DVPSGraphicObject ©) | |
copy constructor | |
DVPSGraphicObject * | clone () |
clone method. More... | |
virtual | ~DVPSGraphicObject () |
destructor | |
OFCondition | read (DcmItem &dset) |
reads a graphic object from a DICOM dataset. More... | |
OFCondition | write (DcmItem &dset) |
writes the graphic object managed by this object to a DICOM dataset. More... | |
DVPSannotationUnit | getAnnotationUnits () |
gets the graphic annotation units. More... | |
size_t | getNumberOfPoints () |
gets the number of graphic points. More... | |
OFCondition | getPoint (size_t idx, Float32 &x, Float32 &y) |
gets one point from the graphic data. More... | |
DVPSGraphicType | getGraphicType () |
gets the graphic type of this graphic object. More... | |
OFBool | isFilled () |
checks if the graphic is filled More... | |
OFCondition | setData (size_t number, const Float32 *data, DVPSannotationUnit unit) |
sets the graphic data for this graphic object. More... | |
OFCondition | setGraphicType (DVPSGraphicType gtype) |
sets the graphic type for the graphic object More... | |
OFCondition | setFilled (OFBool filled) |
sets the graphic filled status for the graphic object More... | |
Private Member Functions | |
DVPSGraphicObject & | operator= (const DVPSGraphicObject &) |
private undefined assignment operator | |
Private Attributes | |
DcmCodeString | graphicAnnotationUnits |
VR=CS, VM=1, Type 1. | |
DcmUnsignedShort | numberOfGraphicPoints |
VR=US, VM=1, Type 1. | |
DcmFloatingPointSingle | graphicData |
VR=FL, VM=2-n, Type 1. | |
DcmCodeString | graphicType |
VR=CS, VM=1, Type 1. | |
DcmCodeString | graphicFilled |
VR=CS, VM=1, Type 1c. | |
an item of the graphic object sequence in a presentation state (internal use only).
This class manages the data structures comprising one item of the Graphic Object Sequence which is contained in the Graphic Annotation Sequence in a Presentation State object.
|
inline |
clone method.
DVPSannotationUnit DVPSGraphicObject::getAnnotationUnits | ( | ) |
gets the graphic annotation units.
DVPSGraphicType DVPSGraphicObject::getGraphicType | ( | ) |
gets the graphic type of this graphic object.
size_t DVPSGraphicObject::getNumberOfPoints | ( | ) |
gets the number of graphic points.
OFCondition DVPSGraphicObject::getPoint | ( | size_t | idx, |
Float32 & | x, | ||
Float32 & | y | ||
) |
gets one point from the graphic data.
idx | index of the graphic point, must be < getNumberOfPoints(); |
x | upon success the x value of the point is returned in this parameter |
y | upon success the y value of the point is returned in this parameter |
OFBool DVPSGraphicObject::isFilled | ( | ) |
checks if the graphic is filled
OFCondition DVPSGraphicObject::read | ( | DcmItem & | dset | ) |
reads a graphic object from a DICOM dataset.
The DICOM elements of the Graphic 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.
dset | the item of the GraphicObjectSequence from which the data is to be read |
OFCondition DVPSGraphicObject::setData | ( | size_t | number, |
const Float32 * | data, | ||
DVPSannotationUnit | unit | ||
) |
sets the graphic data for this graphic object.
number | number of graphic points in parameter "data" |
data | pointer to an array of Float32 values with a size of (at least) 2*number. The values are copied into the graphic object. |
unit | the graphic annotation units for this data. |
OFCondition DVPSGraphicObject::setFilled | ( | OFBool | filled | ) |
sets the graphic filled status for the graphic object
filled | OFTrue if graphic is filled, OFFalse otherwise. |
OFCondition DVPSGraphicObject::setGraphicType | ( | DVPSGraphicType | gtype | ) |
sets the graphic type for the graphic object
gtype | the graphic type |
OFCondition DVPSGraphicObject::write | ( | DcmItem & | dset | ) |
writes the graphic object 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 the item of the GraphicObjectSequence to which the data is written |