Class FileInfoMGH

All Implemented Interfaces:
Serializable, Cloneable

public class FileInfoMGH extends FileInfoBase
See Also:
  • Field Details

    • 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 String transformFileName
    • cmdlines

      private String[] cmdlines
    • matrix

      private TransMatrix matrix
  • Constructor Details

    • FileInfoMGH

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

    • 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(String transformFileName)
      Parameters:
      transformFileName -
    • setCmdlines

      public void setCmdlines(String[] cmdlines)
      Parameters:
      cmdlines -
    • setMatrix

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

      public TransMatrix getMatrix()
    • stateChanged

      public void stateChanged(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 String setString(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: