Package mgui.io.foreign.minc
Class MincSurfaceLoader
java.lang.Object
mgui.io.FileLoader
mgui.io.domestic.shapes.InterfaceShapeLoader
mgui.io.domestic.shapes.SurfaceFileLoader
mgui.io.foreign.minc.MincSurfaceLoader
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class MincSurfaceLoader extends SurfaceFileLoader
Reads a MINC obj file into a Mesh3D shape.
See: http://www.bic.mni.mcgill.ca/~david/FAQ/polygons_format.txt
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.io.FileLoader
dataFile, dataURL, options
-
Constructor Summary
Constructors Constructor Description MincSurfaceLoader()
MincSurfaceLoader(java.io.File file)
-
Method Summary
Modifier and Type Method Description InterfaceIOType
getWriterComplement()
Returns theInterfaceIOType
of aFileWriter
which is the complement of this loader; i.e., writes what this loader reads with identical encoding.Mesh3DInt
loadSurface()
Loads a single surface from the appropriate source.Mesh3DInt
loadSurface(ProgressUpdater progress_bar, InterfaceIOOptions options)
Loads a single surface from the appropriate source.protected Mesh3DInt
loadSurfaceBlocking(ProgressUpdater progress_bar)
Methods inherited from class mgui.io.domestic.shapes.SurfaceFileLoader
getFailureMessage, getObjectIcon, getSuccessMessage, getSupportedObjects, getTitle, load, loadObject, loadShape, loadSurface, loadSurfaces
Methods inherited from class mgui.io.FileLoader
getComplementIOType, getFile, getIOType, getOptions, getProgressMessage, 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
-
MincSurfaceLoader
public MincSurfaceLoader() -
MincSurfaceLoader
public MincSurfaceLoader(java.io.File file)
-
-
Method Details
-
loadSurface
Description copied from class:SurfaceFileLoader
Loads 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.- Overrides:
loadSurface
in classSurfaceFileLoader
- Returns:
- Throws:
java.io.IOException
-
loadSurface
public Mesh3DInt loadSurface(ProgressUpdater progress_bar, InterfaceIOOptions options) throws java.io.IOExceptionDescription copied from class:SurfaceFileLoader
Loads 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:
loadSurface
in classSurfaceFileLoader
- Returns:
- Mesh3DInt mesh representing the surface being loaded
- Throws:
java.io.IOException
-
loadSurfaceBlocking
- Throws:
java.io.IOException
-
getWriterComplement
Description copied from class:FileLoader
Returns theInterfaceIOType
of aFileWriter
which 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
null
if no complement is defined.- Overrides:
getWriterComplement
in classFileLoader
- Returns:
-