DICOM data.
More...
#include <VolumeViz/readers/dicom/SiDicomValue.h>
Public Types | |
| enum | ValueType { BUFFER , STRING , INT , UINT , DOUBLE } |
Public Member Functions | |
| virtual | ~SiDicomValue () |
| Destructor. | |
| virtual SiDicomValue * | clone () const =0 |
| Create a clone of the value. | |
| virtual ValueType | getValueType () const =0 |
| Get the type of the value. | |
| virtual size_t | getLength () const =0 |
| Get the number of scalar values stored. | |
| virtual SbString | asString () const =0 |
| Return a printable version of the stored value. | |
| virtual void | getBuffer (SoBufferObject *buffer) const =0 |
| Copies the internal buffer to the given one. | |
| virtual SbString | getString (const size_t idx=0) const =0 |
| Get the internally stored string. | |
| virtual int64_t | getInt (const size_t idx=0) const =0 |
| Get an internally stored signed integer. | |
| virtual uint64_t | getUInt (const size_t idx=0) const =0 |
| Get an internally stored unsigned integer. | |
| virtual double | getDouble (const size_t idx=0) const =0 |
| Get an internally stored double precision floating point number. | |
Access value of a DICOM element.
SoVRDicomFileReader, SoVRDicomData, SoDicomTag, SiDicomDataSet, SiDicomElement, SiDicomSequence
Definition at line 26 of file SiDicomValue.h.
| Enumerator | |
|---|---|
| BUFFER | |
| STRING | |
| INT | |
| UINT | |
| DOUBLE | |
Definition at line 29 of file SiDicomValue.h.
|
inlinevirtual |
Destructor.
Definition at line 41 of file SiDicomValue.h.
|
pure virtual |
Return a printable version of the stored value.
|
pure virtual |
Create a clone of the value.
|
pure virtual |
Copies the internal buffer to the given one.
| buffer | the destination buffer. |
|
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. |
|
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. |
|
pure virtual |
Get the number of scalar values stored.
|
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. |
|
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. |
|
pure virtual |
Get the type of the value.