Package mgui.io.foreign.minc
Class MincSurfaceWriter
java.lang.Object
mgui.io.FileWriter
mgui.io.domestic.shapes.SurfaceFileWriter
mgui.io.foreign.minc.MincSurfaceWriter
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class MincSurfaceWriter extends SurfaceFileWriter
Writes a mesh to disk in MINC obj format.
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.domestic.shapes.SurfaceFileWriter
number_format
Fields inherited from class mgui.io.FileWriter
dataFile, dataURL, failure_message, options, success_message
-
Constructor Summary
Constructors Constructor Description MincSurfaceWriter()
MincSurfaceWriter(java.io.File surfaceFile)
-
Method Summary
Modifier and Type Method Description InterfaceIOType
getLoaderComplement()
Returns theInterfaceIOType
of aFileLoader
which is the complement of this writer; i.e., reads what this writer writes with identical encoding.boolean
writeSurface(Mesh3DInt mesh)
Writemesh
with thisFileWriter
.boolean
writeSurface(Mesh3DInt mesh, InterfaceIOOptions options, ProgressUpdater progress_bar)
Writemesh
with thisFileWriter
.Methods inherited from class mgui.io.domestic.shapes.SurfaceFileWriter
getFailureMessage, getObjectIcon, getSuccessMessage, getSupportedObjects, getTitle, setFormat, write, writeSurfaces, writeSurfaces
Methods inherited from class mgui.io.FileWriter
getComplementIOType, getFile, getIOType, getOptions, getProgressMessage, getURL, setFile, setOptions, setURL, toString, write, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
MincSurfaceWriter
public MincSurfaceWriter() -
MincSurfaceWriter
public MincSurfaceWriter(java.io.File surfaceFile)
-
-
Method Details
-
writeSurface
Description copied from class:SurfaceFileWriter
Writemesh
with thisFileWriter
.- Overrides:
writeSurface
in classSurfaceFileWriter
- Returns:
-
writeSurface
public boolean writeSurface(Mesh3DInt mesh, InterfaceIOOptions options, ProgressUpdater progress_bar)Description copied from class:SurfaceFileWriter
Writemesh
with thisFileWriter
.- Specified by:
writeSurface
in classSurfaceFileWriter
- Returns:
-
getLoaderComplement
Description copied from class:FileWriter
Returns theInterfaceIOType
of aFileLoader
which is the complement of this writer; i.e., reads what this writer writes with identical encoding. Transfer between loader and writer should be lossless.Returns
null
if no complement is defined.- Overrides:
getLoaderComplement
in classFileWriter
- Returns:
-