maspack.geometry.io
Class VtkXmlReader

java.lang.Object
  extended by maspack.geometry.io.MeshReaderBase
      extended by maspack.geometry.io.VtkXmlReader
All Implemented Interfaces:
MeshReader

public class VtkXmlReader
extends MeshReaderBase

Reads a polygonal mesh from the VTK vtp format

Author:
antonio

Constructor Summary
VtkXmlReader(java.io.File file)
           
VtkXmlReader(java.io.InputStream is)
           
VtkXmlReader(java.lang.String fileName)
           
 
Method Summary
static PolygonalMesh read(java.io.File file)
           
static PolygonalMesh read(java.lang.String fileName)
           
 MeshBase readMesh(MeshBase mesh)
           
 PolygonalMesh readMesh(PolygonalMesh mesh)
           
 
Methods inherited from class maspack.geometry.io.MeshReaderBase
close, readMesh
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VtkXmlReader

public VtkXmlReader(java.io.InputStream is)
             throws java.io.IOException
Throws:
java.io.IOException

VtkXmlReader

public VtkXmlReader(java.io.File file)
             throws java.io.IOException
Throws:
java.io.IOException

VtkXmlReader

public VtkXmlReader(java.lang.String fileName)
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

readMesh

public MeshBase readMesh(MeshBase mesh)
                  throws java.io.IOException
Throws:
java.io.IOException

readMesh

public PolygonalMesh readMesh(PolygonalMesh mesh)
                       throws java.io.IOException
Throws:
java.io.IOException

read

public static PolygonalMesh read(java.io.File file)
                          throws java.io.IOException
Throws:
java.io.IOException

read

public static PolygonalMesh read(java.lang.String fileName)
                          throws java.io.IOException
Throws:
java.io.IOException