Class FileSurfaceVTKXML_J3D
- java.lang.Object
-
- gov.nih.mipav.model.file.FileBase
-
- gov.nih.mipav.model.file.FileXML
-
- gov.nih.mipav.model.file.FileSurfaceVTKXML
-
- gov.nih.mipav.view.renderer.J3D.model.file.FileSurfaceVTKXML_J3D
-
public class FileSurfaceVTKXML_J3D extends FileSurfaceVTKXML
This class facilitates reading and writing vtk xml- Author:
- pandyan
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nih.mipav.model.file.FileXML
FileXML.XMLAttributes
-
-
Field Summary
-
Fields inherited from class gov.nih.mipav.model.file.FileXML
bw, fileDir, fileInfo, fileName, m_kHandler, MIPAV_HEADER, pInterface, TAB, tabLevel, W3C_XML_SCHEMA, XML_ENCODING, XML_HEADER
-
Fields inherited from class gov.nih.mipav.model.file.FileBase
BIG_ENDIAN, bitsPerPixel, fileNames, LITTLE_ENDIAN, pBarVisible, raFile, READ, READ_WRITE
-
-
Constructor Summary
Constructors Constructor Description FileSurfaceVTKXML_J3D(java.lang.String fName, java.lang.String fDir)
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelTriangleMesh
readXMLSurface(java.lang.String absPath)
Parses vtk xmlboolean
writeXMLsurface(java.lang.String fileName, ModelTriangleMesh mesh)
Saves as vtk xml-
Methods inherited from class gov.nih.mipav.model.file.FileXML
closedTag, closedTag, closedTag, finalize, openTag, readHeader, setPBar
-
Methods inherited from class gov.nih.mipav.model.file.FileBase
addProgressChangeListener, bytesToDouble, bytesToFloat, bytesToInt, bytesToShort, doubleToBytes, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, floatToBytes, getBufferDouble, getBufferFloat, getBufferInt, getBufferLong, getBufferShort, getBufferUShort, getDataType, getDouble, getFloat, getInt, getLong, getProgressChangeListeners, getRaFile, getSignedShort, getString, getUInt, getUnsignedByte, getUnsignedShort, intToBytes, isBigEndian, isProgressBarVisible, linkProgress, longToBytes, readDouble, readFloat, readInt, readLong, readShort, readString, readUnsignedShort, removeProgressChangeListener, setBigEndian, setBufferFloat, setBufferInt, setBufferLong, setBufferShort, setBufferString, setDataType, setEndianess, shortToBytes, writeBytes, writeDouble, writeFloat, writeInt, writeLong, writeShort
-
-
-
-
Method Detail
-
writeXMLsurface
public boolean writeXMLsurface(java.lang.String fileName, ModelTriangleMesh mesh) throws java.io.IOException
Saves as vtk xml- Parameters:
fileName
-kMesh
-- Returns:
- boolean
- Throws:
java.io.IOException
-
readXMLSurface
public ModelTriangleMesh readXMLSurface(java.lang.String absPath)
Parses vtk xml- Parameters:
absPath
-- Returns:
- ModelTriangleMesh
-
-