Class SoVRVoxFileReader
- 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.SoVRVoxFileReader
-
- All Implemented Interfaces:
SafeDisposable
public class SoVRVoxFileReader extends SoVolumeReader
VOX file reader. 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:
- "Volume Size" which describes the size of the volume in voxels.
- "Voxel Size" which describes the size of voxel data (only 8-bit and 16-bit are supported).
- "Endian" which describes the endianness of the data (both little-endian and big-endian modes are supported).
- "Volume Scale" which describes the volume of one voxel.
- "Volume Position" which describes the origin position of the first voxel.
Since Open Inventor 10.3, the following custom attributes are supported when specified in the "Field" descriptor:
- Scale: Define a scaling to apply to data values.
- Offset: Define an offset to apply to data values.
If Scale and Offset are specified and are not exactly 1 and 0 respectively:
- The actual data value will be : newValue = Scale * fileValue + Offset.
- The volume data type is automatically changed to SIGNED_SHORT.
This means that, even if the file is specified as unsigned 8 bit, the data will be loaded as signed 16 bit values.
Other attributes have no effect on the reader and loaded data.
-
-
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 Constructor Description SoVRVoxFileReader()
Constructor.
-
Method Summary
-
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
-
-