Package mgui.io.foreign.freesurfer
Class FreesurferSurfaceWriter
java.lang.Object
mgui.io.FileWriter
mgui.io.domestic.shapes.SurfaceFileWriter
mgui.io.foreign.freesurfer.FreesurferSurfaceWriter
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class FreesurferSurfaceWriter extends SurfaceFileWriter
Writes a Freesurfer surface to file, in binary or Ascii format.
See: http://www.grahamwideman.com/gw/brain/fs/surfacefileformats.htm.
- Since:
- 1.0
- 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 FreesurferSurfaceWriter()
FreesurferSurfaceWriter(java.io.File file)
Instantiates a writer with the specified output file. -
Method Summary
Modifier and Type Method Description boolean
writeSurface(Mesh3DInt mesh, InterfaceIOOptions options, ProgressUpdater progress_bar)
Writemesh
with thisFileWriter
.protected boolean
writeSurfaceAscii(Mesh3DInt mesh, InterfaceIOOptions options, ProgressUpdater progress_bar)
Methods inherited from class mgui.io.domestic.shapes.SurfaceFileWriter
getFailureMessage, getObjectIcon, getSuccessMessage, getSupportedObjects, getTitle, setFormat, write, writeSurface, writeSurfaces, writeSurfaces
Methods inherited from class mgui.io.FileWriter
getComplementIOType, getFile, getIOType, getLoaderComplement, 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
-
FreesurferSurfaceWriter
public FreesurferSurfaceWriter() -
FreesurferSurfaceWriter
public FreesurferSurfaceWriter(java.io.File file)Instantiates a writer with the specified output file.- Parameters:
file
-
-
-
Method Details
-
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:
-
writeSurfaceAscii
protected boolean writeSurfaceAscii(Mesh3DInt mesh, InterfaceIOOptions options, ProgressUpdater progress_bar)
-