Inheritance diagram for DSRSpatialCoordinatesValue:
Public Member Functions | |
DSRSpatialCoordinatesValue () | |
default contructor | |
DSRSpatialCoordinatesValue (const DSRTypes::E_GraphicType graphicType) | |
constructor | |
DSRSpatialCoordinatesValue (const DSRSpatialCoordinatesValue &coordinatesValue) | |
copy constructor | |
virtual | ~DSRSpatialCoordinatesValue () |
destructor | |
DSRSpatialCoordinatesValue & | operator= (const DSRSpatialCoordinatesValue &coordinatesValue) |
assignment operator | |
virtual void | clear () |
clear all internal variables. | |
virtual OFBool | isValid () const |
check whether the current spatial coordinates value is valid. | |
virtual OFBool | isShort (const size_t flags) const |
check whether the content is short. | |
virtual OFCondition | print (ostream &stream, const size_t flags) const |
print spatial coordinates. | |
virtual OFCondition | read (DcmItem &dataset, OFConsole *logStream) |
read spatial coordinates value from dataset | |
virtual OFCondition | write (DcmItem &dataset, OFConsole *logStream) const |
write spatial coordinates reference value to dataset | |
virtual OFCondition | readXML (const DSRXMLDocument &doc, DSRXMLCursor cursor) |
read spatial coordinates value from XML document | |
virtual OFCondition | writeXML (ostream &stream, const size_t flags, OFConsole *logStream) const |
write spatial coordinates value in XML format | |
virtual OFCondition | renderHTML (ostream &docStream, ostream &annexStream, size_t &annexNumber, const size_t flags, OFConsole *logStream) const |
render spatial coordinates value in HTML format | |
const DSRSpatialCoordinatesValue & | getValue () const |
get reference to spatial coordinates value | |
DSRTypes::E_GraphicType | getGraphicType () const |
get current graphic type. | |
OFCondition | setGraphicType (const DSRTypes::E_GraphicType graphicType) |
set current graphic type. | |
OFCondition | getValue (DSRSpatialCoordinatesValue &coordinatesValue) const |
get copy of spatial coordinates value | |
OFCondition | setValue (const DSRSpatialCoordinatesValue &coordinatesValue) |
set spatial coordinates value. | |
DSRGraphicDataList & | getGraphicDataList () |
get reference to graphic data list. | |
Protected Member Functions | |
DSRSpatialCoordinatesValue * | getValuePtr () |
get pointer to spatial coordinates value | |
OFBool | checkData (const DSRTypes::E_GraphicType graphicType, const DSRGraphicDataList &graphicDataList, OFConsole *logStream=NULL) const |
check the graphic type and data for validity. | |
Private Attributes | |
DSRTypes::E_GraphicType | GraphicType |
graphic type (associated DICOM VR=CS, type 1) | |
DSRGraphicDataList | GraphicDataList |
graphic data (associated DICOM VR=FL, VM=2-n, type 1) | |
Friends | |
class | DSRContentItem |
Definition at line 50 of file dsrscovl.h.
|
constructor
|
|
copy constructor
|
|
check the graphic type and data for validity. If 'graphicType' is valid the number of entries in the 'graphicDatalist' are checked. A POINT needs exactly 1 value pair (column,row), a MULTIPOINT at least 1?, a closed POLYLINE at least 1? where the first and last pair are equal, a CIRCLE exactly 2 and an ELLIPSE exactly 4.
|
|
clear all internal variables. Graphic type is set to GT_invalid. Since an empty list of graphic data is invalid the spatial coordinates value becomes invalid afterwards. Reimplemented in DSRSCoordTreeNode. |
|
get reference to graphic data list. This list contains an ordered set of (columns,rows) pairs that denote positions in an image. The allowed number of pairs is depending on the graphic type.
Definition at line 206 of file dsrscovl.h. References GraphicDataList. |
|
get current graphic type. The graphic type specifies the geometry of the coordinates stored in the graphic data list.
Definition at line 174 of file dsrscovl.h. References GraphicType. |
|
get copy of spatial coordinates value
|
|
get reference to spatial coordinates value
Definition at line 164 of file dsrscovl.h. |
|
get pointer to spatial coordinates value
Definition at line 217 of file dsrscovl.h. |
|
check whether the content is short. This method is used to check whether the rendered output of this content item can be expanded inline or not (used for renderHTML()).
Reimplemented in DSRSCoordTreeNode. |
|
check whether the current spatial coordinates value is valid. The value is valid if the graphic type is not GT_invalid and the graphic data is valid (see checkData() for details).
Reimplemented in DSRSCoordTreeNode. |
|
assignment operator
|
|
print spatial coordinates. The output of a typical spatial coordinates value looks like this: (CIRCLE,0/0,255/255).
Reimplemented in DSRSCoordTreeNode. |
|
read spatial coordinates value from dataset
|
|
read spatial coordinates value from XML document
|
|
render spatial coordinates value in HTML format
|
|
set current graphic type. The graphic type specifies the geometry of the coordinates stored in the graphic data list.
|
|
set spatial coordinates value. Before setting the value the graphic type and data are checked (see checkData()). If the value is invalid the current value is not replaced and remains unchanged.
|
|
write spatial coordinates reference value to dataset
|
|
write spatial coordinates value in XML format
Reimplemented in DSRSCoordTreeNode. |