maspack.geometry.io
Class MeshWriterBase

java.lang.Object
  extended by maspack.geometry.io.MeshWriterBase
All Implemented Interfaces:
MeshWriter
Direct Known Subclasses:
GtsWriter, OffWriter, PlyWriter, StlWriter, WavefrontWriter, XyzbWriter, XyzWriter

public abstract class MeshWriterBase
extends java.lang.Object
implements MeshWriter


Nested Class Summary
 
Nested classes/interfaces inherited from interface maspack.geometry.io.MeshWriter
MeshWriter.DataFormat, MeshWriter.FloatType
 
Field Summary
static java.lang.String DEFAULT_FORMAT
           
 
Method Summary
 void close()
           
 NumberFormat getFormat()
           
 void setFormat(NumberFormat fmt)
           
 void setFormat(java.lang.String fmtStr)
           
abstract  void writeMesh(MeshBase mesh)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FORMAT

public static final java.lang.String DEFAULT_FORMAT
See Also:
Constant Field Values
Method Detail

writeMesh

public abstract void writeMesh(MeshBase mesh)
                        throws java.io.IOException
Specified by:
writeMesh in interface MeshWriter
Throws:
java.io.IOException

setFormat

public void setFormat(java.lang.String fmtStr)
Specified by:
setFormat in interface MeshWriter

setFormat

public void setFormat(NumberFormat fmt)
Specified by:
setFormat in interface MeshWriter

getFormat

public NumberFormat getFormat()
Specified by:
getFormat in interface MeshWriter

close

public void close()
Specified by:
close in interface MeshWriter