maspack.geometry.io
Class GenericMeshWriter

java.lang.Object
  extended by maspack.geometry.io.GenericMeshWriter
All Implemented Interfaces:
MeshWriter

public class GenericMeshWriter
extends java.lang.Object
implements MeshWriter


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

Constructor Detail

GenericMeshWriter

public GenericMeshWriter(java.lang.String fileName)
                  throws java.io.IOException
Throws:
java.io.IOException

GenericMeshWriter

public GenericMeshWriter(java.io.File file)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

setFormat

public void setFormat(GenericMeshReader reader)

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

writeMesh

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

close

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

writeMesh

public static void writeMesh(java.lang.String fileName,
                             MeshBase mesh)
                      throws java.io.IOException
Throws:
java.io.IOException

writeMesh

public static void writeMesh(java.io.File file,
                             MeshBase mesh)
                      throws java.io.IOException
Throws:
java.io.IOException