Package mgui.io.foreign.minc
Class MincSurfaceDataLoader
java.lang.Object
mgui.io.FileLoader
mgui.io.domestic.shapes.SurfaceDataFileLoader
mgui.io.foreign.minc.MincSurfaceDataLoader
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class MincSurfaceDataLoader extends SurfaceDataFileLoader
-
Field Summary
Fields Modifier and Type Field Description int
format
static int
FORMAT_DOUBLE
static int
FORMAT_FLOAT
static int
FORMAT_INT
Fields inherited from class mgui.io.FileLoader
dataFile, dataURL, options
-
Constructor Summary
Constructors Constructor Description MincSurfaceDataLoader()
MincSurfaceDataLoader(int format)
MincSurfaceDataLoader(java.io.File file)
MincSurfaceDataLoader(java.io.File file, int format)
-
Method Summary
Modifier and Type Method Description boolean
load(InterfaceIOOptions options, ProgressUpdater progress_bar)
Loads data from the set of files or URLs specified byoptions
.java.util.ArrayList<MguiNumber>
loadValues(ProgressUpdater progress_bar)
void
setFormat(int format)
Methods inherited from class mgui.io.domestic.shapes.SurfaceDataFileLoader
getFailureMessage, getObjectIcon, getSuccessMessage, getSupportedObjects, getTitle, loadObject, loadValues
Methods inherited from class mgui.io.FileLoader
getComplementIOType, getFile, getIOType, getOptions, getProgressMessage, 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
-
FORMAT_FLOAT
public static final int FORMAT_FLOAT- See Also:
- Constant Field Values
-
FORMAT_DOUBLE
public static final int FORMAT_DOUBLE- See Also:
- Constant Field Values
-
FORMAT_INT
public static final int FORMAT_INT- See Also:
- Constant Field Values
-
format
public int format
-
-
Constructor Details
-
MincSurfaceDataLoader
public MincSurfaceDataLoader() -
MincSurfaceDataLoader
public MincSurfaceDataLoader(int format) -
MincSurfaceDataLoader
public MincSurfaceDataLoader(java.io.File file) -
MincSurfaceDataLoader
public MincSurfaceDataLoader(java.io.File file, int format)
-
-
Method Details
-
setFormat
public void setFormat(int format) -
load
Description copied from class:FileLoader
Loads data from the set of files or URLs specified byoptions
. Loading is controlled by the specifications ofoptions
. If loaded object is of typePersistentObject
, this method should also set the file loader and reference URL for the object.This method should also set the URL reference and writer and loader attributes to match this one and its complement.
- Overrides:
load
in classSurfaceDataFileLoader
progress_bar
- An optional progress updater. Can benull
.- Returns:
-
loadValues
- Specified by:
loadValues
in classSurfaceDataFileLoader
-