Package gov.nih.mipav.model.file
Class FilePolylineVOIXML
java.lang.Object
gov.nih.mipav.model.file.FileBase
gov.nih.mipav.model.file.FileXML
gov.nih.mipav.model.file.FilePolylineVOIXML
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classHandle events generated while parsing the XML file.Nested classes/interfaces inherited from class gov.nih.mipav.model.file.FileXML
FileXML.XMLAttributes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) float[](package private) int[]private StringFile directory where the VOI is to read or written.private StringFile name of the VOI.(package private) boolean(package private) double[][](package private) float[]private static final StringThe W3C XML schema.Fields inherited from class gov.nih.mipav.model.file.FileXML
bw, fileInfo, m_kHandler, MIPAV_HEADER, pInterface, TAB, tabLevel, XML_ENCODING, XML_HEADERFields inherited from class gov.nih.mipav.model.file.FileBase
BIG_ENDIAN, bitsPerPixel, fileNames, LITTLE_ENDIAN, pBarVisible, raFile, READ, READ_WRITE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class gov.nih.mipav.model.file.FileXML
closedTag, closedTag, closedTag, finalize, openTag, readHeader, setPBarMethods 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
-
Field Details
-
W3C_XML_SCHEMA
The W3C XML schema.- See Also:
-
fileDir
File directory where the VOI is to read or written. -
fileName
File name of the VOI. -
box
float[] box -
direction
int[] direction -
origin
float[] origin -
inverseDicomArray
double[][] inverseDicomArray -
flip
boolean flip
-
-
Constructor Details
-
FilePolylineVOIXML
- Throws:
IOException
-
-
Method Details
-
readVOI
public Vector<WildMagic.LibFoundation.Mathematics.Vector3f> readVOI(boolean doLabel) throws IOException This method read a VOI file that has been saved in the MIPAV VOI format.- Parameters:
doLabel- boolean telling to read the files as VOITexts (labels)- Returns:
- the VOI read off the disk
- Throws:
IOException- if there is an error reading the file
-
getBox
public float[] getBox() -
getDirection
public int[] getDirection() -
getOrigin
public float[] getOrigin() -
getInverseDicomArray
public double[][] getInverseDicomArray() -
getFlip
public boolean getFlip() -
readXML
-