Package mgui.io.domestic.shapes
Class Mesh3DWriter
java.lang.Object
mgui.io.FileWriter
mgui.io.domestic.shapes.SurfaceFileWriter
mgui.io.domestic.shapes.Mesh3DWriter
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class Mesh3DWriter extends SurfaceFileWriter
Default writer for a
Mesh3DInt
object. Writes as an Ascii tri file.- 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 Mesh3DWriter()
Mesh3DWriter(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, InterfaceIOOptions options, ProgressUpdater progress_bar)
Writemesh
with thisFileWriter
.boolean
writeSurfaceBlocking(Mesh3DInt mesh, 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, 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
-
Mesh3DWriter
public Mesh3DWriter() -
Mesh3DWriter
public Mesh3DWriter(java.io.File surfaceFile)
-
-
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:
-
writeSurfaceBlocking
-
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:
-