DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Private Member Functions | Private Attributes
DVPSGraphicObject Class Reference

an item of the graphic object sequence in a presentation state (internal use only). More...

List of all members.

Public Member Functions

 DVPSGraphicObject ()
 default constructor
 DVPSGraphicObject (const DVPSGraphicObject &copy)
 copy constructor
DVPSGraphicObjectclone ()
 clone method.
virtual ~DVPSGraphicObject ()
 destructor
OFCondition read (DcmItem &dset)
 reads a graphic object from a DICOM dataset.
OFCondition write (DcmItem &dset)
 writes the graphic object managed by this object to a DICOM dataset.
DVPSannotationUnit getAnnotationUnits ()
 gets the graphic annotation units.
size_t getNumberOfPoints ()
 gets the number of graphic points.
OFCondition getPoint (size_t idx, Float32 &x, Float32 &y)
 gets one point from the graphic data.
DVPSGraphicType getGraphicType ()
 gets the graphic type of this graphic object.
OFBool isFilled ()
 checks if the graphic is filled
OFCondition setData (size_t number, const Float32 *data, DVPSannotationUnit unit)
 sets the graphic data for this graphic object.
OFCondition setGraphicType (DVPSGraphicType gtype)
 sets the graphic type for the graphic object
OFCondition setFilled (OFBool filled)
 sets the graphic filled status for the graphic object

Private Member Functions

DVPSGraphicObjectoperator= (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.

Detailed Description

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.


Member Function Documentation

clone method.

Returns:
a pointer to a new DVPSGraphicObject object containing a copy of this object.
DVPSannotationUnit DVPSGraphicObject::getAnnotationUnits ( )

gets the graphic annotation units.

Returns:
annotation units
DVPSGraphicType DVPSGraphicObject::getGraphicType ( )

gets the graphic type of this graphic object.

Returns:
graphic type

gets the number of graphic points.

Returns:
number of graphic points
OFCondition DVPSGraphicObject::getPoint ( size_t  idx,
Float32 &  x,
Float32 &  y 
)

gets one point from the graphic data.

Parameters:
idxindex of the graphic point, must be < getNumberOfPoints();
xupon success the x value of the point is returned in this parameter
yupon success the y value of the point is returned in this parameter
Returns:
EC_Normal if successful, an error code otherwise.

checks if the graphic is filled

Returns:
OFTrue if graphic is filled.

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.

Parameters:
dsetthe item of the GraphicObjectSequence from which the data is to be read
Returns:
EC_Normal if successful, an error code otherwise.
OFCondition DVPSGraphicObject::setData ( size_t  number,
const Float32 *  data,
DVPSannotationUnit  unit 
)

sets the graphic data for this graphic object.

Parameters:
numbernumber of graphic points in parameter "data"
datapointer to an array of Float32 values with a size of (at least) 2*number. The values are copied into the graphic object.
unitthe graphic annotation units for this data.
Returns:
EC_Normal if successful, an error code otherwise.

sets the graphic filled status for the graphic object

Parameters:
isFilledOFTrue if graphic is filled, OFFalse otherwise.
Returns:
EC_Normal if successful, an error code otherwise.
OFCondition DVPSGraphicObject::setGraphicType ( DVPSGraphicType  gtype)

sets the graphic type for the graphic object

Parameters:
gtypethe graphic type
Returns:
EC_Normal if successful, an error code otherwise.

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.

Parameters:
dsetthe the item of the GraphicObjectSequence to which the data is written
Returns:
EC_Normal if successful, an error code otherwise.

The documentation for this class was generated from the following file:


Generated on Tue May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027