LDM file reader. More...
#include <LDM/readers/SoVRLdmFileReader.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoVRLdmFileReader () | |
virtual ReadError | getDataChar (SbBox3f &size, SoDataSet::DataType &type, SbVec3i32 &dim) |
virtual SbBool | getMinMax (int64_t &min, int64_t &max) |
virtual SbBool | getMinMax (double &min, double &max) |
virtual SbBool | getHistogram (std::vector< int64_t > &numVox) |
virtual int | getNumSignificantBits () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Deprecated | |
| |
SoDEPRECATED void | getSubSlice (const SbBox2i32 &subSlice, int sliceNumber, void *data) |
virtual SoDEPRECATED SbBool | getMinMax (int &min, int &max) |
LDM is a format for storing hierarchical multi-resolution volume data, defined by VSG. VolumeViz includes a utility program that can convert other formats (supported by VolumeViz) into this format. Preprocessing volume data into this format provides the maximum benefits from the VolumeViz large data management (LDM) features.
The default VolumeViz LDM file format is based on an octree topology. The data is stored in tiles of different subsampling resolution.
The first tile in the file represents the entire volume at its lowest resolution and corresponds to the root of the octree. The next 8 tiles represent octants of the entire volume at a lower subsample step. There is another set of 8 tiles for each of these tiles, and so on, until reaching tiles of full resolution.
The tile index starts at 0 for the root and increments linearly into the octree (1 to 8 for octree children, 9 to 16 for children of tile 1, and so on).
The data of a tile is accessed with the readTile function by passing an index and allocated buffer.
SoVRLdmFileReader::SoVRLdmFileReader | ( | ) |
Default constructor.
static SoType SoVRLdmFileReader::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoLDMReader.
Reimplemented in SoVRLdmFileBorderReader.
virtual ReadError SoVRLdmFileReader::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.
Reimplemented from SoLDMReader.
Reimplemented in SoVRLdmFileBorderReader.
virtual SbBool SoVRLdmFileReader::getHistogram | ( | std::vector< int64_t > & | numVox | ) | [virtual] |
Returns the distribution of data values, i.e., the number of voxels per data value.
numVox(0) is the number of voxels with value 0, numVox(1) is the number of voxels with value 1, and so on.
Reimplemented from SoLDMReader.
virtual SoDEPRECATED SbBool SoVRLdmFileReader::getMinMax | ( | int & | min, | |
int & | max | |||
) | [virtual] |
Returns the minimum and maximum data values.
Reimplemented from SoLDMReader.
virtual SbBool SoVRLdmFileReader::getMinMax | ( | double & | min, | |
double & | max | |||
) | [virtual] |
Returns the minimum and maximum data values (for float values).
Reimplemented from SoLDMReader.
virtual SbBool SoVRLdmFileReader::getMinMax | ( | int64_t & | min, | |
int64_t & | max | |||
) | [virtual] |
Returns the minimum and maximum data values.
Reimplemented from SoLDMReader.
virtual int SoVRLdmFileReader::getNumSignificantBits | ( | ) | [inline, virtual] |
Returns the number of significant bits.
Reimplemented from SoVolumeReader.
SoDEPRECATED void SoVRLdmFileReader::getSubSlice | ( | const SbBox2i32 & | subSlice, | |
int | sliceNumber, | |||
void * | data | |||
) | [virtual] |
Reimplemented from SoLDMReader.
virtual SoType SoVRLdmFileReader::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoLDMReader.
Reimplemented in SoVRLdmFileBorderReader.