DICOM data. More...
#include <VolumeViz/readers/dicom/SiDicomValue.h>
Public Types | |
enum | ValueType { BUFFER, STRING, INT, UINT, DOUBLE } |
Public Member Functions | |
virtual | ~SiDicomValue () |
virtual SiDicomValue * | clone () const =0 |
virtual ValueType | getValueType () const =0 |
virtual size_t | getLength () const =0 |
virtual SbString | asString () const =0 |
virtual void | getBuffer (SoBufferObject *buffer) const =0 |
virtual SbString | getString (const size_t idx=0) const =0 |
virtual int64_t | getInt (const size_t idx=0) const =0 |
virtual uint64_t | getUInt (const size_t idx=0) const =0 |
virtual double | getDouble (const size_t idx=0) const =0 |
Access value of a DICOM element.
SoVRDicomFileReader, SoVRDicomData, SoDicomTag, SiDicomDataSet, SiDicomElement, SiDicomSequence
virtual SiDicomValue::~SiDicomValue | ( | ) | [inline, virtual] |
Destructor.
virtual SbString SiDicomValue::asString | ( | ) | const [pure virtual] |
Return a printable version of the stored value.
virtual SiDicomValue* SiDicomValue::clone | ( | ) | const [pure virtual] |
Create a clone of the value.
virtual void SiDicomValue::getBuffer | ( | SoBufferObject * | buffer | ) | const [pure virtual] |
Copies the internal buffer to the given one.
buffer | the destination buffer. |
virtual double SiDicomValue::getDouble | ( | const size_t | idx = 0 |
) | const [pure virtual] |
Get an internally stored double precision floating point number.
If the value's type is not DOUBLE, this method will return 0.0.
idx | the index of the scalar value to get. |
virtual int64_t SiDicomValue::getInt | ( | const size_t | idx = 0 |
) | const [pure virtual] |
Get an internally stored signed integer.
If the value's type is not INT, this method will return 0.
idx | the index of the scalar value to get. |
virtual size_t SiDicomValue::getLength | ( | ) | const [pure virtual] |
Get the number of scalar values stored.
virtual SbString SiDicomValue::getString | ( | const size_t | idx = 0 |
) | const [pure virtual] |
Get the internally stored string.
If the value's type is not STRING, this method will return an empty string.
idx | the index of the scalar value to get. |
virtual uint64_t SiDicomValue::getUInt | ( | const size_t | idx = 0 |
) | const [pure virtual] |
Get an internally stored unsigned integer.
If the value's type is not UINT, this method will return 0.
idx | the index of the scalar value to get. |
virtual ValueType SiDicomValue::getValueType | ( | ) | const [pure virtual] |
Get the type of the value.