Class JDialogTreT1

    • Field Detail

      • title

        private static java.lang.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
      • 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 java.lang.String[] wList
        The ordered list of images that the algorithm is dependent on.
      • titles

        private java.lang.String[] titles
        The GUI list of images
      • doConvTre

        private javax.swing.JRadioButton doConvTre
      • doHifiTre

        private javax.swing.JRadioButton doHifiTre
      • hifiPanel

        private javax.swing.JPanel hifiPanel
      • straightPanel

        private javax.swing.JPanel straightPanel
      • spgrPanel

        private javax.swing.JScrollPane spgrPanel
      • convSpec

        private javax.swing.JPanel convSpec
      • hifiSpec

        private javax.swing.JPanel hifiSpec
      • treLong

        private javax.swing.JScrollPane treLong
      • spgrImageComboBoxAr

        private javax.swing.JComboBox[] spgrImageComboBoxAr
      • flipAngleAr

        private javax.swing.JTextField[] flipAngleAr
      • spgrRepTime

        private javax.swing.JTextField spgrRepTime
      • spgrNumFA

        private javax.swing.JTextField spgrNumFA
      • irspgrNum

        private javax.swing.JTextField irspgrNum
      • isGEButton

        private javax.swing.JRadioButton isGEButton
      • isSiemensButton

        private javax.swing.JRadioButton isSiemensButton
      • irspgrTRField

        private javax.swing.JTextField irspgrTRField
      • irspgrFAField

        private javax.swing.JTextField irspgrFAField
      • numSlicesField

        private javax.swing.JTextField numSlicesField
      • doubleInvRadio

        private javax.swing.JRadioButton doubleInvRadio
      • singleInvRadio

        private javax.swing.JRadioButton singleInvRadio
      • t15Radio

        private javax.swing.JRadioButton t15Radio
      • t30Radio

        private javax.swing.JRadioButton t30Radio
      • smoothB1Box

        private javax.swing.JCheckBox smoothB1Box
      • irspgrCombo

        private javax.swing.JComboBox[] irspgrCombo
      • irspgrField

        private javax.swing.JTextField[] irspgrField
      • inversionGroup

        private javax.swing.ButtonGroup inversionGroup
      • fieldStrengthGroup

        private javax.swing.ButtonGroup fieldStrengthGroup
      • leastSquaresCheck

        private javax.swing.JCheckBox leastSquaresCheck
      • convRepTime

        private javax.swing.JTextField convRepTime
      • convFAFieldAr

        private javax.swing.JTextField[] convFAFieldAr
      • convimageComboAr

        private javax.swing.JComboBox[] convimageComboAr
      • b1Field

        private javax.swing.JComboBox b1Field
      • maxT1Field

        private javax.swing.JTextField maxT1Field
      • maxM0Field

        private javax.swing.JTextField maxM0Field
      • showT1Map

        private javax.swing.JCheckBox showT1Map
      • showM0Map

        private javax.swing.JCheckBox showM0Map
      • showR1Map

        private javax.swing.JCheckBox showR1Map
      • showB1Check

        private javax.swing.JCheckBox showB1Check
      • tab

        private javax.swing.JTabbedPane tab
      • irspgrGeneralPanel

        private javax.swing.JPanel irspgrGeneralPanel
      • irspgrPanel

        private javax.swing.JScrollPane irspgrPanel
      • performTreT1withPreCalculatedB1Map

        private boolean performTreT1withPreCalculatedB1Map
      • performStraightTreT1

        private boolean performStraightTreT1
      • performTreT1HIFI

        private boolean performTreT1HIFI
      • useB1Map

        private javax.swing.JCheckBox useB1Map
    • Constructor Detail

      • JDialogTreT1

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

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

      • 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​(java.awt.event.ActionEvent event)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
        Overrides:
        actionPerformed in class JDialogBase
      • buildHIFIPanel

        protected javax.swing.JPanel buildHIFIPanel()
      • buildConventionalTreT1Panel

        protected javax.swing.JPanel buildConventionalTreT1Panel()
      • buildSPGRPanel

        protected javax.swing.JScrollPane buildSPGRPanel()
      • buildSPGRPanelInner

        private javax.swing.JPanel buildSPGRPanelInner()
      • buildIRSPGRPanel

        protected javax.swing.JScrollPane buildIRSPGRPanel()
      • buildIRSPGRPanelGEInner

        private javax.swing.JPanel buildIRSPGRPanelGEInner()
      • buildIRSPGRPanelSiemensInner

        private javax.swing.JPanel buildIRSPGRPanelSiemensInner()
      • buildTreT1LongPanel

        protected javax.swing.JScrollPane buildTreT1LongPanel()
      • buildTreT1LongPanelInner

        private javax.swing.JPanel buildTreT1LongPanelInner()
      • buildTreT1SpecificsPanel

        protected javax.swing.JPanel buildTreT1SpecificsPanel()
      • buildTreT1SpecificsPanelInner

        private javax.swing.JPanel buildTreT1SpecificsPanelInner()
      • buildTreT1HIFISpecificsPanel

        protected javax.swing.JPanel buildTreT1HIFISpecificsPanel()
      • buildTreT1HIFISpecificsPanelInner

        private javax.swing.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
      • 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 java.lang.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 java.lang.String getOutputImageName​(java.lang.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.