Class FileSurfaceVTKXML_WM
- 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.WildMagic.Interface.FileSurfaceVTKXML_WM
-
public class FileSurfaceVTKXML_WM 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_WM(java.lang.String fName, java.lang.String fDir)
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Vector<VOIContour>
readXMLPolylines_WM(java.lang.String absPath)
WildMagic.LibGraphics.SceneGraph.TriMesh
readXMLSurface_WM(java.lang.String absPath)
Parses vtk xmlboolean
writeXMLpolylines(java.lang.String fileName, java.util.Vector<VOIContour> polylines)
Output a collection of polylines as vtk xmlboolean
writeXMLsurface(java.lang.String fileName, WildMagic.LibGraphics.SceneGraph.TriMesh kMesh)
Output TriMesh 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
-
readXMLSurface_WM
public WildMagic.LibGraphics.SceneGraph.TriMesh readXMLSurface_WM(java.lang.String absPath)
Parses vtk xml- Parameters:
absPath
-- Returns:
- TriMesh
-
writeXMLsurface
public boolean writeXMLsurface(java.lang.String fileName, WildMagic.LibGraphics.SceneGraph.TriMesh kMesh) throws java.io.IOException
Output TriMesh as vtk xml- Parameters:
fileName
- file namekMesh
- TriMesh- Returns:
- true on write success
- Throws:
java.io.IOException
- I/O write error.
-
readXMLPolylines_WM
public java.util.Vector<VOIContour> readXMLPolylines_WM(java.lang.String absPath)
-
writeXMLpolylines
public boolean writeXMLpolylines(java.lang.String fileName, java.util.Vector<VOIContour> polylines) throws java.io.IOException
Output a collection of polylines as vtk xml- Parameters:
fileName
- file nameVector
-- Returns:
- true on write success
- Throws:
java.io.IOException
- I/O write error.
-
-