Class SoVRGenericFileReader

  • All Implemented Interfaces:
    SafeDisposable

    public class SoVRGenericFileReader
    extends SoVolumeReader
    Generic file reader. Reader for volume data files containing only binary data values or else a fixed size header followed by binary data values.

    Many volume data formats that are not directly supported by VolumeViz can be loaded using this reader.

    The application must know:

    • The size of the header, if any, in bytes,
    • The dimensions of the volume, and
    • The data type (char, unsigned int, ...)

    Steps to follow:

    • Constructor Detail

      • SoVRGenericFileReader

        public SoVRGenericFileReader()
        Constructor.
    • Method Detail

      • setDataChar

        public void setDataChar​(SbBox3f size,
                                SoDataSet.DataTypes type,
                                SbVec3i32 dim,
                                int headerSize)
        Since the format is raw data, it is necessary to specify the dimension and data size of the volume. You can also specify a header size to add support for your own file format.