Package mgui.io.standard.gifti
Class GiftiSurfaceLoader
java.lang.Object
mgui.io.FileLoader
mgui.io.domestic.shapes.InterfaceShapeLoader
mgui.io.domestic.shapes.SurfaceFileLoader
mgui.io.standard.gifti.GiftiSurfaceLoader
- All Implemented Interfaces:
InterfaceIO,IconObject
public class GiftiSurfaceLoader extends SurfaceFileLoader
Loads an XML-format GIFTI file. See
http://www.nitrc.org/projects/gifti/ for details and specification.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.io.FileLoader
dataFile, dataURL, options -
Constructor Summary
Constructors Constructor Description GiftiSurfaceLoader()GiftiSurfaceLoader(java.io.File file) -
Method Summary
Modifier and Type Method Description InterfaceIOTypegetWriterComplement()Returns theInterfaceIOTypeof aFileWriterwhich is the complement of this loader; i.e., writes what this loader reads with identical encoding.booleanload(InterfaceIOOptions options, ProgressUpdater progress_bar)Loads data from the set of files or URLs specified byoptions.Mesh3DIntloadSurface(ProgressUpdater progress_bar, InterfaceIOOptions options)Loads a single surface from the appropriate source.Methods inherited from class mgui.io.domestic.shapes.SurfaceFileLoader
getFailureMessage, getObjectIcon, getSuccessMessage, getSupportedObjects, getTitle, loadObject, loadShape, loadSurface, loadSurface, loadSurfacesMethods inherited from class mgui.io.FileLoader
getComplementIOType, getFile, getIOType, getOptions, getProgressMessage, load, load, loadObject, loadObject, loadObject, setFile, setOptions, setURL, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
GiftiSurfaceLoader
public GiftiSurfaceLoader() -
GiftiSurfaceLoader
public GiftiSurfaceLoader(java.io.File file)
-
-
Method Details
-
load
Description copied from class:FileLoaderLoads 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:
loadin classSurfaceFileLoaderprogress_bar- An optional progress updater. Can benull.- Returns:
-
loadSurface
public Mesh3DInt loadSurface(ProgressUpdater progress_bar, InterfaceIOOptions options) throws java.io.IOExceptionDescription copied from class:SurfaceFileLoaderLoads a single surface from the appropriate source. Returns a Mesh3DInt object if load was successful, or null otherwise. This method should also set the file loader and reference URL for the object.- Specified by:
loadSurfacein classSurfaceFileLoader- Returns:
- Mesh3DInt mesh representing the surface being loaded
- Throws:
java.io.IOException
-
getWriterComplement
Description copied from class:FileLoaderReturns theInterfaceIOTypeof aFileWriterwhich is the complement of this loader; i.e., writes what this loader reads with identical encoding. Transfer between loader and writer should be lossless.Returns
nullif no complement is defined.- Overrides:
getWriterComplementin classFileLoader- Returns:
-