Class SoVRGenericFileReader
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.misc.SoBase
com.openinventor.inventor.fields.SoFieldContainer
com.openinventor.ldm.readers.SoVolumeReader
com.openinventor.volumeviz.readers.SoVRGenericFileReader
- All Implemented Interfaces:
SafeDisposable
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:
- Create an instance of
SoVRGenericFileReader
.- Call
setFilename()
to specify the filename. - Call
setDataChar()
to specify the dimensions, data type and header size.
- Call
- Create an instance of
SoVolumeData
.- Call setReader() with the instance of
SoVRGenericFileReader
.
- Call setReader() with the instance of
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.ldm.readers.SoVolumeReader
SoVolumeReader.Axis, SoVolumeReader.CoordinateTypes, SoVolumeReader.DataInfo, SoVolumeReader.ReadErrors, SoVolumeReader.ReaderTypes
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setDataChar
(SbBox3f size, SoDataSet.DataTypes type, SbVec3i32 dim) Calls setDataChar(size, type, dim, (int)0).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.Methods inherited from class com.openinventor.ldm.readers.SoVolumeReader
closeAllHandles, getAppropriateReader, getBorderFlag, getConfiguredWriter, getCoordinateType, getDataChar, getDirectCoordSys, getDirectCoordSysAutoDetection, getDoubleMinMax, getFilename, getIntMinMax, getMinMax, getNumSignificantBits, getNumVoxels, getOriginalFilename, getReaderType, getSizeToAllocate, getSubSlice, getTileMinMax, getTileSize, isDataConverted, isIgnoredFile, isRGBA, isThreadSafe, readTile, readTile, reloadTileMinMax, restoreAllHandles, setDirectCoordSysAutoDetection, setDirectCoorSys, setFilename, setInputDataRange, setOutputDataType, setRectilinearCoordinates, setRGBA
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Constructor Details
-
SoVRGenericFileReader
public SoVRGenericFileReader()Constructor.
-
-
Method Details
-
setDataChar
Calls setDataChar(size, type, dim, (int)0). -
setDataChar
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.
-