Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SiDicomValue.h
1/*=======================================================================
2** VSG_COPYRIGHT_TAG
3**=======================================================================*/
4
5#pragma once
6
7#include <Inventor/SbString.h>
8#include <Inventor/devices/SoBufferObject.h>
9
27{
28public:
37
41 virtual ~SiDicomValue() {}
42
46 virtual SiDicomValue* clone() const = 0;
47
51 virtual ValueType getValueType() const = 0;
52
56 virtual size_t getLength() const = 0;
57
61 virtual SbString asString() const = 0;
62
68 virtual void getBuffer( SoBufferObject* buffer ) const = 0;
69
77 virtual SbString getString( const size_t idx = 0 ) const = 0;
78
86 virtual int64_t getInt( const size_t idx = 0 ) const = 0;
87
95 virtual uint64_t getUInt( const size_t idx = 0 ) const = 0;
96
104 virtual double getDouble( const size_t idx = 0 ) const = 0;
105};
Class for smart character strings.
Definition SbString.h:202
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> DICOM data.
virtual int64_t getInt(const size_t idx=0) const =0
Get an internally stored signed integer.
virtual SbString asString() const =0
Return a printable version of the stored value.
virtual double getDouble(const size_t idx=0) const =0
Get an internally stored double precision floating point number.
virtual size_t getLength() const =0
Get the number of scalar values stored.
virtual SbString getString(const size_t idx=0) const =0
Get the internally stored string.
virtual ValueType getValueType() const =0
Get the type of the value.
virtual uint64_t getUInt(const size_t idx=0) const =0
Get an internally stored unsigned integer.
virtual SiDicomValue * clone() const =0
Create a clone of the value.
virtual ~SiDicomValue()
Destructor.
virtual void getBuffer(SoBufferObject *buffer) const =0
Copies the internal buffer to the given one.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...