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_formatFields 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 InterfaceIOTypegetLoaderComplement()Returns theInterfaceIOTypeof aFileLoaderwhich is the complement of this writer; i.e., reads what this writer writes with identical encoding.booleanwriteSurface(Mesh3DInt mesh)Writemeshwith thisFileWriter.booleanwriteSurface(Mesh3DInt mesh, InterfaceIOOptions options, ProgressUpdater progress_bar)Writemeshwith thisFileWriter.Methods inherited from class mgui.io.domestic.shapes.SurfaceFileWriter
getFailureMessage, getObjectIcon, getSuccessMessage, getSupportedObjects, getTitle, setFormat, write, writeSurfaces, writeSurfacesMethods inherited from class mgui.io.FileWriter
getComplementIOType, getFile, getIOType, getOptions, getProgressMessage, getURL, setFile, setOptions, setURL, toString, write, writeMethods 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:SurfaceFileWriterWritemeshwith thisFileWriter.- Overrides:
writeSurfacein classSurfaceFileWriter- Returns:
-
writeSurface
public boolean writeSurface(Mesh3DInt mesh, InterfaceIOOptions options, ProgressUpdater progress_bar)Description copied from class:SurfaceFileWriterWritemeshwith thisFileWriter.- Specified by:
writeSurfacein classSurfaceFileWriter- Returns:
-
getLoaderComplement
Description copied from class:FileWriterReturns theInterfaceIOTypeof aFileLoaderwhich 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
nullif no complement is defined.- Overrides:
getLoaderComplementin classFileWriter- Returns:
-