23#ifndef _SO_VR_LDM_FILE_READER_
24#define _SO_VR_LDM_FILE_READER_
26#include <Inventor/STL/string>
27#include <LDM/readers/SoLDMReader.h>
28#include <Inventor/threads/SbThread.h>
29#include <Inventor/STL/vector>
32#pragma warning( push )
33#pragma warning(disable:4251)
133 virtual SbBool getHistogramAndValues(std::vector<int64_t>& numVox, std::vector<double>& values);
136 virtual SbBool hasHistogram();
138 virtual void saveCustomsTags(FILE* ldmHeader);
154 int m_numSignificantBits;
157 int64_t m_dataMin , m_dataMax;
158 double m_dataMinD, m_dataMaxD;
161 std::vector<int> m_entries;
162 std::vector<int64_t> m_values;
163 std::vector<double> m_valuesD;
164 std::vector<int64_t> m_numVoxels;
166 virtual int handleHeader(TiXmlElement *);
170 bool isTagCustom(
const SbString& tagValue );
175 std::set<SbString> ldmKnownTags;
179#pragma warning( pop )
Class for smart character strings.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Portable mutex c...
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> Data set...
DataType
Supported data type.
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> Base cla...
virtual ReadError getDataChar(SbBox3f &size, SoDataSet::DataType &type, SbVec3i32 &dim) override
Gets the characteristics (file header) of the data volume.
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> LDM file...
virtual SbBool getMinMax(int64_t &min, int64_t &max)
Returns the minimum and maximum data values.
virtual ReadError getDataChar(SbBox3f &size, SoDataSet::DataType &type, SbVec3i32 &dim) override
Gets the characteristics (file header) of the data volume.
virtual SbBool getHistogram(std::vector< int64_t > &numVox)
Returns the distribution of data values, i.e., the number of voxels per data value.
virtual SbBool isThreadSafe() const
Return true as this reader is thread safe.
SoVRLdmFileReader()
Default constructor.
SoDEPRECATED void getSubSlice(const SbBox2i32 &subSlice, int sliceNumber, void *data)
virtual SoDEPRECATED SbBool getMinMax(int &min, int &max)
Returns the minimum and maximum data values.
virtual int getNumSignificantBits()
Returns the number of significant bits.
virtual SbBool getMinMax(double &min, double &max)
Returns the minimum and maximum data values (for float values).