Class FilePolylineVOIXML


  • public class FilePolylineVOIXML
    extends FileXML
    • 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
    • Constructor Detail

      • FilePolylineVOIXML

        public FilePolylineVOIXML​(java.lang.String fileName,
                                  java.lang.String fileDir)
                           throws java.io.IOException
        Throws:
        java.io.IOException
    • 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)