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
-
public class FilePolylineVOIXML extends FileXML
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
FilePolylineVOIXML.MyXMLHandler
Handle events generated while parsing the XML file.-
Nested classes/interfaces inherited from class gov.nih.mipav.model.file.FileXML
FileXML.XMLAttributes
-
-
Field Summary
Fields Modifier and Type Field Description (package private) float[]
box
(package private) int[]
direction
private java.lang.String
fileDir
File directory where the VOI is to read or written.private java.lang.String
fileName
File name of the VOI.(package private) boolean
flip
(package private) double[][]
inverseDicomArray
(package private) float[]
origin
private static java.lang.String
W3C_XML_SCHEMA
The 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_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 FilePolylineVOIXML(java.lang.String fileName, java.lang.String fileDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float[]
getBox()
int[]
getDirection()
boolean
getFlip()
double[][]
getInverseDicomArray()
float[]
getOrigin()
java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector3f>
readVOI(boolean doLabel)
This method read a VOI file that has been saved in the MIPAV VOI format.private boolean
readXML(java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector3f> coordVector)
-
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
-
-
-
-
Field Detail
-
W3C_XML_SCHEMA
private static final java.lang.String W3C_XML_SCHEMA
The W3C XML schema.- See Also:
- Constant Field Values
-
fileDir
private java.lang.String fileDir
File directory where the VOI is to read or written.
-
fileName
private java.lang.String fileName
File name of the VOI.
-
box
float[] box
-
direction
int[] direction
-
origin
float[] origin
-
inverseDicomArray
double[][] inverseDicomArray
-
flip
boolean flip
-
-
Method Detail
-
readVOI
public java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector3f> readVOI(boolean doLabel) throws java.io.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:
java.io.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
private boolean readXML(java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector3f> coordVector)
-
-