Package mgui.io.foreign.wunil
Class WunilVolumeLoader
java.lang.Object
mgui.io.FileLoader
mgui.io.domestic.shapes.InterfaceShapeLoader
mgui.io.domestic.shapes.VolumeFileLoader
mgui.io.foreign.wunil.WunilVolumeLoader
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class WunilVolumeLoader extends VolumeFileLoader
Loader to load WUNIL IDF format volumes (University of Washington in St. Louis format used by Caret).
This format consists of an ASCII header file and a separate raw binary image file
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description protected WunilDataset
dataset
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 WunilVolumeLoader()
WunilVolumeLoader(java.io.File file)
-
Method Summary
Modifier and Type Method Description WunilDataset
getDataset()
VolumeMetadata
getVolumeMetadata()
Returns a set of metadata describing the current volume file.protected boolean
hasDataset()
protected boolean
loadDataset()
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
-
Field Details
-
dataset
-
-
Constructor Details
-
WunilVolumeLoader
public WunilVolumeLoader() -
WunilVolumeLoader
public WunilVolumeLoader(java.io.File file)
-
-
Method Details
-
setVolume3DBlocking
public boolean setVolume3DBlocking(Volume3DInt volume, java.lang.String column, int v, VolumeInputOptions options, ProgressUpdater progress) throws ShapeIOException- Specified by:
setVolume3DBlocking
in classVolumeFileLoader
- Throws:
ShapeIOException
-
getDataset
-
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
-
hasDataset
protected boolean hasDataset() -
loadDataset
protected boolean loadDataset()
-