Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SiDicomValue Class Referenceabstract

VolumeViz 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 SiDicomValueclone () 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.
 

Detailed Description

VolumeViz DICOM data.

Access value of a DICOM element.

SEE ALSO

SoVRDicomFileReader, SoVRDicomData, SoDicomTag, SiDicomDataSet, SiDicomElement, SiDicomSequence

Definition at line 26 of file SiDicomValue.h.

Member Enumeration Documentation

◆ ValueType

Enumerator
BUFFER 
STRING 
INT 
UINT 
DOUBLE 

Definition at line 29 of file SiDicomValue.h.

Constructor & Destructor Documentation

◆ ~SiDicomValue()

virtual SiDicomValue::~SiDicomValue ( )
inlinevirtual

Destructor.

Definition at line 41 of file SiDicomValue.h.

Member Function Documentation

◆ asString()

virtual SbString SiDicomValue::asString ( ) const
pure virtual

Return a printable version of the stored value.

◆ clone()

virtual SiDicomValue * SiDicomValue::clone ( ) const
pure virtual

Create a clone of the value.

◆ getBuffer()

virtual void SiDicomValue::getBuffer ( SoBufferObject buffer) const
pure virtual

Copies the internal buffer to the given one.

Parameters
bufferthe destination buffer.

◆ getDouble()

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.

Parameters
idxthe index of the scalar value to get.

◆ getInt()

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.

Parameters
idxthe index of the scalar value to get.

◆ getLength()

virtual size_t SiDicomValue::getLength ( ) const
pure virtual

Get the number of scalar values stored.

◆ getString()

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.

Parameters
idxthe index of the scalar value to get.

◆ getUInt()

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.

Parameters
idxthe index of the scalar value to get.

◆ getValueType()

virtual ValueType SiDicomValue::getValueType ( ) const
pure virtual

Get the type of the value.


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