Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SiDicomDataSet.h
1/*=======================================================================
2** VSG_COPYRIGHT_TAG
3**=======================================================================*/
4
5#pragma once
6
7#include <Inventor/devices/SoBufferObject.h>
8#include <VolumeViz/readers/dicom/SoDicomTag.h>
9
10class SiDicomElement;
11class SiDicomValue;
12
42{
43public:
47 virtual ~SiDicomDataSet() {}
48
55 virtual SiDicomDataSet* clone() const = 0;
56
60 virtual size_t getLength() const = 0;
61
68 virtual const SiDicomElement* getElement( const SoDicomTag& tag ) const = 0;
69
77 virtual const SiDicomElement* getElement( const size_t idx ) const = 0;
78
86 virtual const SiDicomValue* getElementValue( const SoDicomTag& tag ) const = 0;
87
96 virtual bool getElementBufferValue( const SoDicomTag& tag, SoBufferObject* buffer ) const = 0;
97
111 virtual SbString getElementStringValue( const SoDicomTag& tag, const size_t idx, const SbString& defaultValue ) const = 0;
112
126 virtual int64_t getElementIntValue( const SoDicomTag& tag, const size_t idx, const int64_t defaultValue ) const = 0;
127
142 virtual uint64_t getElementUIntValue( const SoDicomTag& tag, const size_t idx, const uint64_t defaultValue ) const = 0;
143
157 virtual double getElementDoubleValue( const SoDicomTag& tag, const size_t idx, const double defaultValue ) const = 0;
158};
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 double getElementDoubleValue(const SoDicomTag &tag, const size_t idx, const double defaultValue) const =0
Shortcut to extract a DOUBLE element's value.
virtual uint64_t getElementUIntValue(const SoDicomTag &tag, const size_t idx, const uint64_t defaultValue) const =0
Shortcut to extract a UINT element's value.
virtual const SiDicomValue * getElementValue(const SoDicomTag &tag) const =0
Shortcut to get an element's value fast.
virtual ~SiDicomDataSet()
Destructor.
virtual const SiDicomElement * getElement(const size_t idx) const =0
Get the n-th element of this data set.
virtual int64_t getElementIntValue(const SoDicomTag &tag, const size_t idx, const int64_t defaultValue) const =0
Shortcut to extract a INT element's value.
virtual const SiDicomElement * getElement(const SoDicomTag &tag) const =0
Get an element of this data set.
virtual bool getElementBufferValue(const SoDicomTag &tag, SoBufferObject *buffer) const =0
Shortcut to extract an element's buffer value.
virtual size_t getLength() const =0
Get the number of elements in the data set.
virtual SbString getElementStringValue(const SoDicomTag &tag, const size_t idx, const SbString &defaultValue) const =0
Shortcut to extract a STRING element's value.
virtual SiDicomDataSet * clone() const =0
Create a clone of the current data set.
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> DICOM data.
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> DICOM data.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> DICOM data.
Definition SoDicomTag.h:28