DCMTK
Version 3.6.1 20120515
OFFIS DICOM Toolkit
|
Class for graphic data (3D) lists. More...
Public Member Functions | |
DSRGraphicData3DList () | |
default constructor | |
DSRGraphicData3DList (const DSRGraphicData3DList &lst) | |
copy constructor | |
virtual | ~DSRGraphicData3DList () |
destructor | |
DSRGraphicData3DList & | operator= (const DSRGraphicData3DList &lst) |
assignment operator | |
OFCondition | print (STD_NAMESPACE ostream &stream, const size_t flags=0, const char tripletSeparator= '/', const char itemSeparator= ',') const |
print list of graphic data. | |
OFCondition | read (DcmItem &dataset) |
read list of graphic data | |
OFCondition | write (DcmItem &dataset) const |
write list of graphic data | |
const DSRGraphicData3DItem & | getItem (const size_t idx) const |
get reference to the specified item | |
OFCondition | getItem (const size_t idx, Float32 &x, Float32 &y, Float32 &z) const |
get copy of the specified value triplet | |
void | addItem (const Float32 x, const Float32 y, const Float32 z) |
add value triplet to the list | |
OFCondition | putString (const char *stringValue) |
put list of graphic data as a string. |
Class for graphic data (3D) lists.
DSRGraphicData3DList::DSRGraphicData3DList | ( | const DSRGraphicData3DList & | lst | ) |
copy constructor
lst | list to be copied |
void DSRGraphicData3DList::addItem | ( | const Float32 | x, |
const Float32 | y, | ||
const Float32 | z | ||
) |
add value triplet to the list
x | x value to be added |
y | y value to be added |
z | z value to be added |
const DSRGraphicData3DItem& DSRGraphicData3DList::getItem | ( | const size_t | idx | ) | const |
get reference to the specified item
idx | index of the item to be returned (starting from 1) |
Reimplemented from DSRListOfItems< DSRGraphicData3DItem >.
OFCondition DSRGraphicData3DList::getItem | ( | const size_t | idx, |
Float32 & | x, | ||
Float32 & | y, | ||
Float32 & | z | ||
) | const |
get copy of the specified value triplet
idx | index of the value triplet to be returned (starting from 1) |
x | x value of the specified index (set to 0 first) |
y | y value of the specified index (set to 0 first) |
z | z value of the specified index (set to 0 first) |
DSRGraphicData3DList& DSRGraphicData3DList::operator= | ( | const DSRGraphicData3DList & | lst | ) |
assignment operator
lst | list to be copied |
OFCondition DSRGraphicData3DList::print | ( | STD_NAMESPACE ostream & | stream, |
const size_t | flags = 0 , |
||
const char | tripletSeparator = '/' , |
||
const char | itemSeparator = ',' |
||
) | const |
print list of graphic data.
The output of a typical list looks like this: 0/0/0,127/127/127,255/255/255
stream | output stream to which the list should be printed |
flags | flag used to customize the output (see DSRTypes::PF_xxx) |
tripletSeparator | character specifying the separator between the value triplets |
itemSeparator | character specifying the separator between the list items |
OFCondition DSRGraphicData3DList::putString | ( | const char * | stringValue | ) |
put list of graphic data as a string.
This function expects the same input format as created by print(), i.e. a comma separated list of numerical value triplets.
stringValue | string value to be set |
OFCondition DSRGraphicData3DList::read | ( | DcmItem & | dataset | ) |
read list of graphic data
dataset | DICOM dataset from which the list should be read |
OFCondition DSRGraphicData3DList::write | ( | DcmItem & | dataset | ) | const |
write list of graphic data
dataset | DICOM dataset to which the list should be written |