23#ifndef _SO_VR_GENERIC_FILE_READER_
24#define _SO_VR_GENERIC_FILE_READER_
89 m_headerSize = headerSize;
105 SbVec3i32 dim(smalldim[0],smalldim[1],smalldim[2]);
#define SO_FIELDCONTAINER_HEADER(className)
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> 3D vector class.
static int dataSize(DataType dataType)
Returns the number of bytes per voxel of the specified data type.
DataType
Supported data type.
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> Generic file reader.
virtual SoVolumeReader::ReaderType getReaderType()
Returns the reader type.
SoVRGenericFileReader()
Constructor.
virtual ReadError getDataChar(SbBox3f &size, SoDataSet::DataType &type, SbVec3i32 &dim) override
Gets the characteristics (file header) of the data volume.
virtual void getSubSlice(const SbBox2i32 &subSlice, int sliceNumber, void *data)
Must copy the rectangular part defined by subSlice of the XY slice sliceNumber to the memory refe...
SoDEPRECATED void setDataChar(SbBox3f &size, SoDataSet::DataType &type, SbVec3s &smalldim, int headerSize=0)
void setDataChar(const SbBox3f &size, const SoDataSet::DataType &type, const SbVec3i32 &dim, int headerSize=0)
Since the format is raw data, it is necessary to specify the dimension and data size of the volume.
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> Abstract...
ReaderType
Available reader type.