Package gov.nih.mipav.view.dialogs
Class JDialogTreT1
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- java.awt.Window
-
- java.awt.Dialog
-
- javax.swing.JDialog
-
- gov.nih.mipav.view.dialogs.JDialogBase
-
- gov.nih.mipav.view.dialogs.JDialogScriptableBase
-
- gov.nih.mipav.view.dialogs.JDialogTreMethod
-
- gov.nih.mipav.view.dialogs.JDialogTreT1
-
- All Implemented Interfaces:
AlgorithmInterface,ScriptableActionInterface,DialogDefaultsInterface,ActionDiscovery,AlgorithmTreParams,java.awt.event.ActionListener,java.awt.event.FocusListener,java.awt.event.ItemListener,java.awt.event.WindowListener,java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,java.util.EventListener,javax.accessibility.Accessible,javax.swing.RootPaneContainer,javax.swing.WindowConstants
public class JDialogTreT1 extends JDialogTreMethod implements AlgorithmInterface, ActionDiscovery, AlgorithmTreParams
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classJDialogTreT1.FlipAngleChangeListenerprivate classJDialogTreT1.ProcessChoiceListenerThis listener focuses on the TRE processing choice chosen.private classJDialogTreT1.ScannerChoiceListenerThis listener focuses on the type of scanner used to acquire the images.-
Nested classes/interfaces inherited from class gov.nih.mipav.view.dialogs.JDialogBase
JDialogBase.CancelAction, JDialogBase.HelpAction, JDialogBase.OKAction
-
Nested classes/interfaces inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
-
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
-
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
-
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
-
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
-
Nested classes/interfaces inherited from interface gov.nih.mipav.view.dialogs.AlgorithmTreParams
AlgorithmTreParams.FieldStrength, AlgorithmTreParams.InversionType, AlgorithmTreParams.ScannerType, AlgorithmTreParams.Threshold
-
-
Field Summary
Fields Modifier and Type Field Description private doubleangleIncrementprivate javax.swing.JComboBoxb1Fieldprivate intb1ImageIndexprivate booleancalculateM0private booleancalculateT1The list of possible maps that can be calculatedprivate AlgorithmTreT1cAlgoprivate javax.swing.JTextField[]convFAFieldArprivate javax.swing.JComboBox[]convimageComboArprivate javax.swing.JTextFieldconvRepTimeprivate javax.swing.JPanelconvSpecprivate static intdialogWidthAddprivate int[]directionprivate javax.swing.JRadioButtondoConvTreprivate javax.swing.JRadioButtondoHifiTreprivate javax.swing.JRadioButtondoubleInvRadioprivate double[]estimatesprivate javax.swing.ButtonGroupfieldStrengthGroupprivate javax.swing.JTextField[]flipAngleArprivate javax.swing.JPanelhifiPanelprivate javax.swing.JPanelhifiSpecprivate javax.swing.ButtonGroupinversionGroupprivate AlgorithmTreParams.InversionTypeinversionTypeprivate booleaninvertT1toR1private javax.swing.JComboBox[]irspgrComboprivate double[]irspgrDataprivate doubleirspgrFAprivate javax.swing.JTextFieldirspgrFAFieldprivate javax.swing.JTextField[]irspgrFieldprivate javax.swing.JPanelirspgrGeneralPanelprivate int[]irspgrImageIndexprivate doubleirspgrKyprivate javax.swing.JTextFieldirspgrNumprivate javax.swing.JScrollPaneirspgrPanelprivate double[]irspgrTIprivate double[]irspgrTrprivate doubleirspgrTRprivate javax.swing.JTextFieldirspgrTRFieldprivate javax.swing.JRadioButtonisGEButtonprivate javax.swing.JRadioButtonisSiemensButtonprivate javax.swing.JCheckBoxleastSquaresCheckprivate doublemaxAngleprivate doublemaxM0private javax.swing.JTextFieldmaxM0Fieldprivate doublemaxT1private javax.swing.JTextFieldmaxT1Fieldprivate AlgorithmTreParams.FieldStrengthmriStrengthThe following GUI choices change algorithm operation using enumsprivate intNsaprivate intNtiprivate javax.swing.JTextFieldnumSlicesFieldprivate booleanperformStraightTreT1private booleanperformTreT1HIFIprivate booleanperformTreT1withPreCalculatedB1Mapprivate doublepointScaleprivate double[]residualsprivate doublescaleprivate doublescaleIncrementprivate AlgorithmTreParams.ScannerTypescannerTypeprivate javax.swing.JCheckBoxshowB1Checkprivate booleanshowB1Mapprivate javax.swing.JCheckBoxshowM0Mapprivate javax.swing.JCheckBoxshowR1Mapprivate javax.swing.JCheckBoxshowT1Mapprivate javax.swing.JRadioButtonsingleInvRadioprivate javax.swing.JCheckBoxsmoothB1Boxprivate booleansmoothB1Fieldprivate double[]spgrDataprivate javax.swing.JComboBox[]spgrImageComboBoxArprivate int[]spgrImageIndexprivate javax.swing.JTextFieldspgrNumFAprivate javax.swing.JScrollPanespgrPanelprivate javax.swing.JTextFieldspgrRepTimeprivate javax.swing.JPanelstraightPanelprivate javax.swing.JRadioButtont15Radioprivate javax.swing.JRadioButtont30Radioprivate javax.swing.JTabbedPanetabprivate static java.lang.Stringtitleprivate java.lang.String[]titlesThe GUI list of imagesprivate double[]treFAprivate javax.swing.JScrollPanetreLongprivate doubletreTRprivate booleanuniformAngleSpacingprivate javax.swing.JCheckBoxuseB1Mapprivate booleanuseWeightsprivate java.lang.String[]wListThe ordered list of images that the algorithm is dependent on.-
Fields inherited from class gov.nih.mipav.view.dialogs.JDialogTreMethod
guiBuilder, hardCheckBox, hardNoiseThreshold, lowerLeftCorner, lowerRightCorner, noCheckBox, noiseScale, smartCheckBox, SUCCESS, thresholdMethod, totalThreshold, upperLeftCorner, upperRightCorner
-
Fields inherited from class gov.nih.mipav.view.dialogs.JDialogScriptableBase
displayInNewFrame, isComplete, scriptParameters
-
Fields inherited from class gov.nih.mipav.view.dialogs.JDialogBase
applyButton, bar, cancelButton, cancelFlag, closeButton, HELP, helpButton, mainDialogPanel, NEW, OKButton, parentFrame, progressBar, REPLACE, runInSeparateThread, runningScriptFlag, runQuiet, serif12, serif12B, voiManager
-
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
-
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
-
Constructor Summary
Constructors Constructor Description JDialogTreT1()Blank constructor needed for dynamic instantiation.JDialogTreT1(java.awt.Frame theParentFrame, ModelImage im)Construct the TRE dialog.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent event)voidalgorithmPerformed(AlgorithmBase algorithm)Called after an algorithm this listener is registered to exits (maybe successfully, maybe not).private voidbuildConventionalTabs()This method builds the conventional tabs based on possibly pre-defined values.protected javax.swing.JPanelbuildConventionalTreT1Panel()protected javax.swing.JPanelbuildHIFIPanel()private voidbuildHIFITabs()protected javax.swing.JScrollPanebuildIRSPGRPanel()private javax.swing.JPanelbuildIRSPGRPanelGEInner()private javax.swing.JPanelbuildIRSPGRPanelSiemensInner()protected javax.swing.JScrollPanebuildSPGRPanel()private javax.swing.JPanelbuildSPGRPanelInner()protected javax.swing.JPanelbuildTreT1HIFISpecificsPanel()private javax.swing.JPanelbuildTreT1HIFISpecificsPanelInner()protected javax.swing.JScrollPanebuildTreT1LongPanel()private javax.swing.JPanelbuildTreT1LongPanelInner()protected javax.swing.JPanelbuildTreT1SpecificsPanel()private javax.swing.JPanelbuildTreT1SpecificsPanelInner()protected voidcallAlgorithm()Starts the algorithm.ParameterTablecreateInputParameters()Returns a table listing the input parameters of this algorithm (which should match up with the scripting parameters used insetGUIFromParams()).ParameterTablecreateOutputParameters()Returns a table listing the output parameters of this algorithm (usually just labels used to obtain output image names later).protected voiddisplayTotalDialog()protected voiddoPostAlgorithmActions()Store the result image in the script runner's image table now that the action execution is finished.ActionMetadatagetActionMetadata()Return meta-information about this discoverable action for categorization and labeling purposes.java.lang.StringgetOutputImageName(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).private voidinitParams()booleanisActionComplete()Returns whether the action has successfully completed its execution.private voidrun()private voidsetDialogWidthAdd()Specifies an addendum to the preferred size of the dialog equal to the length of the longest image.protected voidsetGUIFromParams()Set the dialog GUI using the script parameters while running this algorithm as part of a script.private voidsetProcessConvUI()private voidsetProcessHifiUI()private java.lang.StringsetUI(boolean process)Sets UI variables for either saving between processing steps or later reuse.protected voidstoreParamsFromGUI()Record the parameters just used to run this algorithm in a script.private booleanvalidateUI()-
Methods inherited from class gov.nih.mipav.view.dialogs.JDialogTreMethod
buildHardThresholdPanel, buildNoThresholdPanel, buildSmartThresholdPanel, buildThresholdPanel, setHardThresholdUI, setSmartThresholdUI
-
Methods inherited from class gov.nih.mipav.view.dialogs.JDialogScriptableBase
getDialogActionString, insertScriptLine, isComplete, scriptRun, setComplete
-
Methods inherited from class gov.nih.mipav.view.dialogs.JDialogBase
buildApplyButton, buildButtons, buildCancelButton, buildCancelButton, buildCloseButton, buildHelpButton, buildImageComboBox, buildOKButton, buildOKButton, buildOKCancelButtons, buildTitledBorder, buildTitledBorder, createLabel, createProgressBar, createProgressBar, createTextField, focusGained, focusLost, getDialogName, isCancelled, isQuietRunning, isRunInSeparateThread, isScriptRunning, itemStateChanged, loadDefaults, loadDefaults, makeImageName, makeString, openNewFrame, saveDefaults, saveDefaults, setLeftHandSystem, setQuietRunning, setScriptRunning, setSeparateThread, setVisible, setVisible, setVisibleMenuBar, setVisibleStandard, setVOIManager, setWCSystem, testParameter, testParameterMin, updateFFTFileInfo, updateFileInfo, updateFileInfoOtherModality, updateFileInfoStatic, updateFileInfoStatic, updateFileTypeInfo, updateFileTypeInfo, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
-
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
-
Methods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
-
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gov.nih.mipav.view.dialogs.ActionDiscovery
scriptRun
-
-
-
-
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
-
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 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
-
cAlgo
private AlgorithmTreT1 cAlgo
-
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:AlgorithmInterfaceCalled 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:
algorithmPerformedin interfaceAlgorithmInterface- Parameters:
algorithm- the algorithm which has just completed
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- Overrides:
actionPerformedin classJDialogBase
-
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:JDialogScriptableBaseStarts the algorithm. Already exists in most algorithm dialogs. Should be called during scripted execution and regular operation.- Specified by:
callAlgorithmin classJDialogScriptableBase
-
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:
doPostAlgorithmActionsin classJDialogScriptableBase
-
setGUIFromParams
protected void setGUIFromParams()
Description copied from class:JDialogScriptableBaseSet the dialog GUI using the script parameters while running this algorithm as part of a script.- Specified by:
setGUIFromParamsin classJDialogScriptableBase
-
storeParamsFromGUI
protected void storeParamsFromGUI() throws ParserExceptionDescription copied from class:JDialogScriptableBaseRecord the parameters just used to run this algorithm in a script.- Specified by:
storeParamsFromGUIin classJDialogScriptableBase- 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 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 insetGUIFromParams()).- Specified by:
createInputParametersin interfaceActionDiscovery- 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:
createOutputParametersin interfaceActionDiscovery- 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:
getActionMetadatain interfaceActionDiscovery- 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:
getOutputImageNamein interfaceActionDiscovery- 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:
isActionCompletein interfaceActionDiscovery- Returns:
- True, if the action is complete. False, if the action failed or is still running.
-
-