DSRGraphicDataList Class Reference
Class for graphic data lists.
More...
List of all members.
Detailed Description
Class for graphic data lists.
Definition at line 112 of file dsrscogr.h.
Constructor & Destructor Documentation
copy constructor
- Parameters:
-
Member Function Documentation
void DSRGraphicDataList::addItem |
( |
const Float32 |
column, |
|
|
const Float32 |
row | |
|
) |
| | |
add value pair to the list
- Parameters:
-
| column | column value to be added |
| row | row value to be added |
OFCondition DSRGraphicDataList::getItem |
( |
const size_t |
idx, |
|
|
Float32 & |
column, |
|
|
Float32 & |
row | |
|
) |
| | const |
get copy of the specified value pair
- Parameters:
-
| idx | index of the value pair to be returned (starting from 1) |
| column | column value of the specified index (set to 0 first) |
| row | row value of the specified index (set to 0 first) |
- Returns:
- status, EC_Normal if successful, an error code otherwise
get reference to the specified item
- Parameters:
-
| idx | index of the item to be returned (starting from 1) |
- Returns:
- reference to the specified item if successful, EmptyItem otherwise
Reimplemented from DSRListOfItems< DSRGraphicDataItem >.
OFCondition DSRGraphicDataList::print |
( |
ostream & |
stream, |
|
|
const size_t |
flags = 0 , |
|
|
const char |
pairSeparator = '/' , |
|
|
const char |
itemSeparator = ',' | |
|
) |
| | const |
print list of graphic data.
The output of a typical list looks like this: 0/0,127/127,255/255
- Parameters:
-
| stream | output stream to which the list should be printed |
| flags | flag used to customize the output (see DSRTypes::PF_xxx) |
| pairSeparator | character specifying the separator between the value pairs |
| itemSeparator | character specifying the separator between the list items |
- Returns:
- status, EC_Normal if successful, an error code otherwise
OFCondition DSRGraphicDataList::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 pairs.
- Parameters:
-
| stringValue | string value to be set |
- Returns:
- status, EC_Normal if successful, an error code otherwise
read list of graphic data
- Parameters:
-
| dataset | DICOM dataset from which the list should be read |
| logStream | pointer to error/warning output stream (output disabled if NULL) |
- Returns:
- status, EC_Normal if successful, an error code otherwise
write list of graphic data
- Parameters:
-
| dataset | DICOM dataset to which the list should be written |
| logStream | pointer to error/warning output stream (output disabled if NULL) |
- Returns:
- status, EC_Normal if successful, an error code otherwise
The documentation for this class was generated from the following file: