Package mgui.io.foreign.interfile
Class InterfileLoader
java.lang.Object
mgui.io.FileLoader
mgui.io.domestic.shapes.InterfaceShapeLoader
mgui.io.domestic.shapes.VolumeFileLoader
mgui.io.foreign.interfile.InterfileLoader
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class InterfileLoader extends VolumeFileLoader
Loads volume data stored in Interfile format. Header information is stored in an ASCII file with
extension 'hdr' or 'ihr'. Voxel data is stored in a binary file with the extension 'img'. The data
type for the img file is specified in the header file.
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
InterfileLoader.InterfileHeader
-
Field Summary
Fields inherited from class mgui.io.domestic.shapes.VolumeFileLoader
dataMax, dataMin, flipX, flipY, flipZ, maxAlpha, minAlpha, setAlpha
Fields inherited from class mgui.io.FileLoader
dataFile, dataURL, options
-
Constructor Summary
Constructors Constructor Description InterfileLoader()
-
Method Summary
Modifier and Type Method Description VolumeMetadata
getVolumeMetadata()
Returns a set of metadata describing the current volume file.boolean
setGrid3D(Grid3D grid)
void
setHeader()
protected boolean
setVolume3DBlocking(Volume3DInt volume, java.lang.String column, int v, VolumeInputOptions options, ProgressUpdater progress)
Methods inherited from class mgui.io.domestic.shapes.VolumeFileLoader
getDefaultOptions, getObjectIcon, getSupportedObjects, getVolCount, getVolume3D, getVolume3D, getVolume3D, getVolume3D, getVolume3D, getVolume3DCustom, load, loadObject, loadShape, loadVolume, loadVolume, loadVolume, setAlpha, setAlpha, setVolume3D, setVolume3D, setVolume3D, setVolume3D, setVolume3DWorker
Methods inherited from class mgui.io.FileLoader
getComplementIOType, getFailureMessage, getFile, getIOType, getOptions, getProgressMessage, getSuccessMessage, getTitle, getWriterComplement, load, load, loadObject, loadObject, loadObject, setFile, setOptions, setURL, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
InterfileLoader
public InterfileLoader()
-
-
Method Details
-
setGrid3D
-
setHeader
public void setHeader() -
getVolumeMetadata
Description copied from class:VolumeFileLoader
Returns a set of metadata describing the current volume file.- Specified by:
getVolumeMetadata
in classVolumeFileLoader
- Returns:
- Throws:
java.io.IOException
java.io.FileNotFoundException
-
setVolume3DBlocking
protected boolean setVolume3DBlocking(Volume3DInt volume, java.lang.String column, int v, VolumeInputOptions options, ProgressUpdater progress) throws ShapeIOException- Specified by:
setVolume3DBlocking
in classVolumeFileLoader
- Throws:
ShapeIOException
-