Class FileInfoMGH

    • Field Detail

      • version

        private int version
        Currently version number is 1
      • dof

        private int dof
      • leftCenter

        private float leftCenter
      • posteriorCenter

        private float posteriorCenter
      • superiorCenter

        private float superiorCenter
      • tr

        private float tr
      • flipAngle

        private float flipAngle
      • te

        private float te
      • ti

        private float ti
      • fov

        private float fov
      • transformFileName

        private java.lang.String transformFileName
      • cmdlines

        private java.lang.String[] cmdlines
    • Constructor Detail

      • FileInfoMGH

        public FileInfoMGH​(java.lang.String name,
                           java.lang.String directory,
                           int format)
        file info storage constructor.
        Parameters:
        name - file name
        directory - directory
        format - file format
    • Method Detail

      • displayAboutInfo

        public void displayAboutInfo​(JDialogBase dlog,
                                     TransMatrix matrix)
        Displays the file information.
        Specified by:
        displayAboutInfo in class FileInfoBase
        Parameters:
        dlog - dialog box that is written to
        matrix - transformation matrix
      • setVersion

        public void setVersion​(int version)
        Parameters:
        version -
      • setDOF

        public void setDOF​(int dof)
        Parameters:
        dof -
      • setLeftCenter

        public void setLeftCenter​(float leftCenter)
        Parameters:
        leftCenter -
      • setPosteriorCenter

        public void setPosteriorCenter​(float posteriorCenter)
        Parameters:
        posteriorCenter -
      • setSuperiorCenter

        public void setSuperiorCenter​(float superiorCenter)
        Parameters:
        superiorCenter -
      • setTR

        public void setTR​(float tr)
        Parameters:
        tr -
      • setFlipAngle

        public void setFlipAngle​(float flipAngle)
        Parameters:
        flipAngle -
      • setTE

        public void setTE​(float te)
        Parameters:
        te -
      • setTI

        public void setTI​(float ti)
        Parameters:
        ti -
      • setFOV

        public void setFOV​(float fov)
        Parameters:
        fov -
      • setTransformFileName

        public void setTransformFileName​(java.lang.String transformFileName)
        Parameters:
        transformFileName -
      • setCmdlines

        public void setCmdlines​(java.lang.String[] cmdlines)
        Parameters:
        cmdlines -
      • setMatrix

        public void setMatrix​(TransMatrix matrix)
        DOCUMENT ME!
        Parameters:
        matrix - DOCUMENT ME!
      • stateChanged

        public void stateChanged​(java.util.Vector ce)
        .
        ce[0] = table 0 = primary, 1 = secondary, etC
        ce[1] = line of table
        ce[2] = string name eg, "Type"
        ce[3] = Vector codeValue eg, "B"
        ce[4] = string value eg, "Big"
        "ce" comes from ChangeEvent upon which this is based. care to make our own ChangeEvent to store and handle this?
        Parameters:
        ce - DOCUMENT ME!
      • updateFileInfos

        public void updateFileInfos​(FileInfoMGH fInfo)
        Propogates the current file info to another FileInfoMGH.

        It does not copy over the datatypeCode. (though, aside from, "it isn't in the about table", I can't think of a reason why it shouldn't. but it doesn't.) Also, copied over is bitPix, aux_file.

        Parameters:
        fInfo - DOCUMENT ME!
      • setString

        protected java.lang.String setString​(java.lang.String str,
                                             int len)
        verifies string is not larger than len length; strings larger than len, are clipped before being returned.
        Returns:
        String new substring
        See Also:
        String.substring(int, int)