VOX file reader. More...
#include <VolumeViz/readers/SoVRVoxFileReader.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoVRVoxFileReader () | |
virtual int | setFilename (const SbString &filename) |
virtual ReadError | getDataChar (SbBox3f &size, SoDataSet::DataType &type, SbVec3i32 &dim) |
virtual void | getSubSlice (const SbBox2i32 &subSlice, int sliceNumber, void *data) |
virtual int | getNumSignificantBits () |
virtual ReaderType | getReaderType () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Reader for TeraRecon ".vox" data files (vox1999 format).
VOX is a volume interchange format defined by TeraRecon Inc. (www.terarecon.com). The VolumeViz reader can load "Vox1999a" files containing 8- or 16-bit voxels (first volume only).
The following attributes are supported:
Others attributes are no effect on the reader and loaded data.
SoVRVoxFileReader::SoVRVoxFileReader | ( | ) |
Constructor.
static SoType SoVRVoxFileReader::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoVolumeReader.
virtual ReadError SoVRVoxFileReader::getDataChar | ( | SbBox3f & | size, | |
SoDataSet::DataType & | type, | |||
SbVec3i32 & | dim | |||
) | [virtual] |
Gets the characteristics (file header) of the data volume.
See SoVolumeData. size is the size of the actual volume. type is the type of the data. dim is the dimension of the data.
Implements SoVolumeReader.
virtual int SoVRVoxFileReader::getNumSignificantBits | ( | ) | [inline, virtual] |
This method is optional.
It returns the number of significant bits of the volume data.
If it is not implemented, the default return value is 0, meaning the number of bits depends on the data type. See the last parameter of SoVolumeData::setVolumeData(). This method is called immediately after getDataChar().
Reimplemented from SoVolumeReader.
virtual ReaderType SoVRVoxFileReader::getReaderType | ( | ) | [inline, virtual] |
Returns the reader type.
Reimplemented from SoVolumeReader.
virtual void SoVRVoxFileReader::getSubSlice | ( | const SbBox2i32 & | subSlice, | |
int | sliceNumber, | |||
void * | data | |||
) | [virtual] |
New method required by VolumeViz 3.0 when using large volume support.
Must copy a rectangular part of an XY slice to the memory specified by data. Slices will not always be read sequentially.
Implements SoVolumeReader.
virtual SoType SoVRVoxFileReader::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoVolumeReader.
virtual int SoVRVoxFileReader::setFilename | ( | const SbString & | filename | ) | [virtual] |
Specifies the path of the file.
Returns 0 for success. Any other return value indicates failure.
Reimplemented from SoVolumeReader.