Class JDialogTreT1

All Implemented Interfaces:
AlgorithmInterface, ScriptableActionInterface, DialogDefaultsInterface, ActionDiscovery, AlgorithmTreParams, ActionListener, FocusListener, ItemListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class JDialogTreT1 extends JDialogTreMethod implements AlgorithmInterface, ActionDiscovery, AlgorithmTreParams
See Also:
  • Field Details

    • title

      private static String title
    • dialogWidthAdd

      private static int dialogWidthAdd
    • treTR

      private double treTR
    • irspgrTR

      private double irspgrTR
    • irspgrKy

      private double irspgrKy
    • irspgrFA

      private double irspgrFA
    • maxT1

      private double maxT1
    • maxM0

      private double maxM0
    • treFA

      private double[] treFA
    • irspgrTr

      private double[] irspgrTr
    • irspgrTI

      private double[] irspgrTI
    • spgrData

      private double[] spgrData
    • irspgrData

      private double[] irspgrData
    • scale

      private double scale
    • pointScale

      private double pointScale
    • scaleIncrement

      private double scaleIncrement
    • estimates

      private double[] estimates
    • residuals

      private double[] residuals
    • direction

      private int[] direction
    • spgrImageIndex

      private int[] spgrImageIndex
    • irspgrImageIndex

      private int[] irspgrImageIndex
    • b1ImageIndex

      private int b1ImageIndex
    • angleIncrement

      private double angleIncrement
    • Nsa

      private int Nsa
    • Nti

      private int Nti
    • maxAngle

      private double maxAngle
    • smoothB1Field

      private boolean smoothB1Field
    • mriStrength

      private AlgorithmTreParams.FieldStrength mriStrength
      The following GUI choices change algorithm operation using enums
    • scannerType

      private AlgorithmTreParams.ScannerType scannerType
    • inversionType

      private AlgorithmTreParams.InversionType inversionType
    • calculateT1

      private boolean calculateT1
      The list of possible maps that can be calculated
    • showB1Map

      private boolean showB1Map
    • calculateM0

      private boolean calculateM0
    • invertT1toR1

      private boolean invertT1toR1
    • useWeights

      private boolean useWeights
    • uniformAngleSpacing

      private boolean uniformAngleSpacing
    • wList

      private String[] wList
      The ordered list of images that the algorithm is dependent on.
    • titles

      private String[] titles
      The GUI list of images
    • cAlgo

      private AlgorithmTreT1 cAlgo
    • doConvTre

      private JRadioButton doConvTre
    • doHifiTre

      private JRadioButton doHifiTre
    • hifiPanel

      private JPanel hifiPanel
    • straightPanel

      private JPanel straightPanel
    • spgrPanel

      private JScrollPane spgrPanel
    • convSpec

      private JPanel convSpec
    • hifiSpec

      private JPanel hifiSpec
    • treLong

      private JScrollPane treLong
    • spgrImageComboBoxAr

      private JComboBox[] spgrImageComboBoxAr
    • flipAngleAr

      private JTextField[] flipAngleAr
    • spgrRepTime

      private JTextField spgrRepTime
    • spgrNumFA

      private JTextField spgrNumFA
    • irspgrNum

      private JTextField irspgrNum
    • isGEButton

      private JRadioButton isGEButton
    • isSiemensButton

      private JRadioButton isSiemensButton
    • irspgrTRField

      private JTextField irspgrTRField
    • irspgrFAField

      private JTextField irspgrFAField
    • numSlicesField

      private JTextField numSlicesField
    • doubleInvRadio

      private JRadioButton doubleInvRadio
    • singleInvRadio

      private JRadioButton singleInvRadio
    • t15Radio

      private JRadioButton t15Radio
    • t30Radio

      private JRadioButton t30Radio
    • smoothB1Box

      private JCheckBox smoothB1Box
    • irspgrCombo

      private JComboBox[] irspgrCombo
    • irspgrField

      private JTextField[] irspgrField
    • inversionGroup

      private ButtonGroup inversionGroup
    • fieldStrengthGroup

      private ButtonGroup fieldStrengthGroup
    • leastSquaresCheck

      private JCheckBox leastSquaresCheck
    • convRepTime

      private JTextField convRepTime
    • convFAFieldAr

      private JTextField[] convFAFieldAr
    • convimageComboAr

      private JComboBox[] convimageComboAr
    • b1Field

      private JComboBox b1Field
    • maxT1Field

      private JTextField maxT1Field
    • maxM0Field

      private JTextField maxM0Field
    • showT1Map

      private JCheckBox showT1Map
    • showM0Map

      private JCheckBox showM0Map
    • showR1Map

      private JCheckBox showR1Map
    • showB1Check

      private JCheckBox showB1Check
    • tab

      private JTabbedPane tab
    • irspgrGeneralPanel

      private JPanel irspgrGeneralPanel
    • irspgrPanel

      private JScrollPane irspgrPanel
    • performTreT1withPreCalculatedB1Map

      private boolean performTreT1withPreCalculatedB1Map
    • performStraightTreT1

      private boolean performStraightTreT1
    • performTreT1HIFI

      private boolean performTreT1HIFI
    • useB1Map

      private JCheckBox useB1Map
  • Constructor Details

    • JDialogTreT1

      public JDialogTreT1()
      Blank constructor needed for dynamic instantiation.
    • JDialogTreT1

      public JDialogTreT1(Frame theParentFrame, ModelImage im)
      Construct the TRE dialog.
      Parameters:
      theParentFrame - Parent frame.
      im - Source image.
  • Method Details

    • initParams

      private void initParams()
    • algorithmPerformed

      public void algorithmPerformed(AlgorithmBase algorithm)
      Description copied from interface: AlgorithmInterface
      Called after an algorithm this listener is registered to exits (maybe successfully, maybe not). If the algorithm is run in a separate thread, this call will be made within that thread. If not, this call will be made from that same, shared thread.
      Specified by:
      algorithmPerformed in interface AlgorithmInterface
      Parameters:
      algorithm - the algorithm which has just completed
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
    • buildHIFIPanel

      protected JPanel buildHIFIPanel()
    • buildConventionalTreT1Panel

      protected JPanel buildConventionalTreT1Panel()
    • buildSPGRPanel

      protected JScrollPane buildSPGRPanel()
    • buildSPGRPanelInner

      private JPanel buildSPGRPanelInner()
    • buildIRSPGRPanel

      protected JScrollPane buildIRSPGRPanel()
    • buildIRSPGRPanelGEInner

      private JPanel buildIRSPGRPanelGEInner()
    • buildIRSPGRPanelSiemensInner

      private JPanel buildIRSPGRPanelSiemensInner()
    • buildTreT1LongPanel

      protected JScrollPane buildTreT1LongPanel()
    • buildTreT1LongPanelInner

      private JPanel buildTreT1LongPanelInner()
    • buildTreT1SpecificsPanel

      protected JPanel buildTreT1SpecificsPanel()
    • buildTreT1SpecificsPanelInner

      private JPanel buildTreT1SpecificsPanelInner()
    • buildTreT1HIFISpecificsPanel

      protected JPanel buildTreT1HIFISpecificsPanel()
    • buildTreT1HIFISpecificsPanelInner

      private JPanel buildTreT1HIFISpecificsPanelInner()
    • callAlgorithm

      protected void callAlgorithm()
      Description copied from class: JDialogScriptableBase
      Starts the algorithm. Already exists in most algorithm dialogs. Should be called during scripted execution and regular operation.
      Specified by:
      callAlgorithm in class JDialogScriptableBase
    • displayTotalDialog

      protected void displayTotalDialog()
    • setDialogWidthAdd

      private void setDialogWidthAdd()
      Specifies an addendum to the preferred size of the dialog equal to the length of the longest image.
    • doPostAlgorithmActions

      protected void doPostAlgorithmActions()
      Store the result image in the script runner's image table now that the action execution is finished.
      Overrides:
      doPostAlgorithmActions in class JDialogScriptableBase
    • setGUIFromParams

      protected void setGUIFromParams()
      Description copied from class: JDialogScriptableBase
      Set the dialog GUI using the script parameters while running this algorithm as part of a script.
      Specified by:
      setGUIFromParams in class JDialogScriptableBase
    • storeParamsFromGUI

      protected void storeParamsFromGUI() throws ParserException
      Description copied from class: JDialogScriptableBase
      Record the parameters just used to run this algorithm in a script.
      Specified by:
      storeParamsFromGUI in class JDialogScriptableBase
      Throws:
      ParserException - If there is a problem creating/recording the new parameters.
    • buildConventionalTabs

      private void buildConventionalTabs()
      This method builds the conventional tabs based on possibly pre-defined values. Each method places these tabs in containers to allow for nice display.
    • buildHIFITabs

      private void buildHIFITabs()
    • run

      private void run()
    • setProcessConvUI

      private void setProcessConvUI()
    • setProcessHifiUI

      private void setProcessHifiUI()
    • setUI

      private String setUI(boolean process)
      Sets UI variables for either saving between processing steps or later reuse. When process is true, null values cause an issue to be returned, when process is false (indicating UI variables are just being transferred between processing steps), no action is taken for null values
      Parameters:
      process -
      Returns:
    • validateUI

      private boolean validateUI()
    • createInputParameters

      public ParameterTable createInputParameters()
      Returns a table listing the input parameters of this algorithm (which should match up with the scripting parameters used in setGUIFromParams()).
      Specified by:
      createInputParameters in interface ActionDiscovery
      Returns:
      A parameter table listing the inputs of this algorithm.
    • createOutputParameters

      public ParameterTable createOutputParameters()
      Returns a table listing the output parameters of this algorithm (usually just labels used to obtain output image names later).
      Specified by:
      createOutputParameters in interface ActionDiscovery
      Returns:
      A parameter table listing the outputs of this algorithm.
    • getActionMetadata

      public ActionMetadata getActionMetadata()
      Return meta-information about this discoverable action for categorization and labeling purposes.
      Specified by:
      getActionMetadata in interface ActionDiscovery
      Returns:
      Metadata for this action.
    • getOutputImageName

      public String getOutputImageName(String imageParamName)
      Returns the name of an image output by this algorithm, the image returned depends on the parameter label given (which can be used to retrieve the image object from the image registry).
      Specified by:
      getOutputImageName in interface ActionDiscovery
      Parameters:
      imageParamName - The output image parameter label for which to get the image name.
      Returns:
      The image name of the requested output image parameter label.
    • isActionComplete

      public boolean isActionComplete()
      Returns whether the action has successfully completed its execution.
      Specified by:
      isActionComplete in interface ActionDiscovery
      Returns:
      True, if the action is complete. False, if the action failed or is still running.