Am file reader. More...
#include <VolumeViz/readers/SoVRAmFileReader.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoVRAmFileReader () | |
virtual ReadError | getDataChar (SbBox3f &size, SoDataSet::DataType &type, SbVec3i32 &dim) |
virtual void | getSubSlice (const SbBox2i32 &subSlice, int sliceNumber, void *data) |
virtual ReaderType | getReaderType () |
int | getHeaderSize () |
virtual SbBool | isRGBA () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
AmiraMesh file format.
Amira mesh is a general purpose file format that can contain many different kinds of data. This is the native file format for the Amira and Avizo applications (http://www.amira.com). Many other visualization and analysis applications import and export this format.
The VolumeViz file reader can load Amira mesh files containing a 3-dimensional "Lattice" data object with uniform coordinates and any data type.
Note: VolumeViz cannot automatically open Amira/Avizo format data files unless they have the file name extension ".am". To open an Amira/Avizo data file with a different extension, the application must explicitly create an instance of this reader and use the SoVolumeData method setReader().
LIMITATIONS:
SoVRAmFileReader::SoVRAmFileReader | ( | ) |
Constructor.
static SoType SoVRAmFileReader::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoVolumeReader.
virtual ReadError SoVRAmFileReader::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.
int SoVRAmFileReader::getHeaderSize | ( | ) |
virtual ReaderType SoVRAmFileReader::getReaderType | ( | ) | [inline, virtual] |
Returns the reader type.
Reimplemented from SoVolumeReader.
virtual void SoVRAmFileReader::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 SoVRAmFileReader::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoVolumeReader.
virtual SbBool SoVRAmFileReader::isRGBA | ( | ) | const [virtual] |
Returns TRUE if the data set contains RGBA color values.
Reimplemented from SoVolumeReader.