SiDicomValue Class Reference
[Readers]

VolumeViz DICOM data. More...

#include <VolumeViz/readers/dicom/SiDicomValue.h>

List of all members.

Public Types

enum  ValueType {
  BUFFER,
  STRING,
  INT,
  UINT,
  DOUBLE
}

Public Member Functions

virtual ~SiDicomValue ()
virtual SiDicomValueclone () 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

Detailed Description

VolumeViz DICOM data.

Access value of a DICOM element.

SEE ALSO

SoVRDicomFileReader, SoVRDicomData, SoDicomTag, SiDicomDataSet, SiDicomElement, SiDicomSequence


Member Enumeration Documentation

Enumerator:
BUFFER 
STRING 
INT 
UINT 
DOUBLE 

Constructor & Destructor Documentation

virtual SiDicomValue::~SiDicomValue (  )  [inline, virtual]

Destructor.


Member Function Documentation

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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
idx the index of the scalar value to get.
virtual ValueType SiDicomValue::getValueType (  )  const [pure virtual]

Get the type of the value.


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

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/