edu.jhu.ece.iacl.jist.io
Class SurfaceVtkReaderWriter

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.io.FileReaderWriter<EmbeddedSurface>
      extended by edu.jhu.ece.iacl.jist.io.SurfaceReaderWriter
          extended by edu.jhu.ece.iacl.jist.io.SurfaceVtkReaderWriter

public class SurfaceVtkReaderWriter
extends SurfaceReaderWriter

The Class SurfaceVtkReaderWriter.


Field Summary
protected static SurfaceVtkReaderWriter readerWriter
          The Constant readerWriter.
 
Fields inherited from class edu.jhu.ece.iacl.jist.io.FileReaderWriter
extensionFilter, fileName
 
Constructor Summary
SurfaceVtkReaderWriter()
          Instantiates a new surface vtk reader writer.
 
Method Summary
static SurfaceVtkReaderWriter getInstance()
          Gets the single instance of SurfaceVtkReaderWriter.
protected  EmbeddedSurface readObject(java.io.File f)
          Read object.
protected  boolean writeObject(EmbeddedSurface mesh, java.io.File f)
          writeObject should be overwritten by all extending classes This method is protected because users should call write() From there, other reader/writer methods (including this one) are called as needed.
 
Methods inherited from class edu.jhu.ece.iacl.jist.io.SurfaceReaderWriter
writeObjectToDirectory
 
Methods inherited from class edu.jhu.ece.iacl.jist.io.FileReaderWriter
accept, getExtensionFilter, getFileExtension, getFileExtension, getFileName, getFileName, getFileName, getFullFileName, read, setExtensionFilter, setFileName, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

readerWriter

protected static final SurfaceVtkReaderWriter readerWriter
The Constant readerWriter.

Constructor Detail

SurfaceVtkReaderWriter

public SurfaceVtkReaderWriter()
Instantiates a new surface vtk reader writer.

Method Detail

getInstance

public static SurfaceVtkReaderWriter getInstance()
Gets the single instance of SurfaceVtkReaderWriter.

Returns:
single instance of SurfaceVtkReaderWriter

readObject

protected EmbeddedSurface readObject(java.io.File f)
Description copied from class: FileReaderWriter
Read object.

Overrides:
readObject in class SurfaceReaderWriter
Parameters:
f - the f
Returns:
the t

writeObject

protected boolean writeObject(EmbeddedSurface mesh,
                              java.io.File f)
Description copied from class: FileReaderWriter
writeObject should be overwritten by all extending classes This method is protected because users should call write() From there, other reader/writer methods (including this one) are called as needed.

Overrides:
writeObject in class SurfaceReaderWriter
Parameters:
mesh - The object being written
f - Where the file should be written
Returns:
true if successful, false otherwise