Class JDialogDTICreateListFileRegOAR35DOptions

  • All Implemented Interfaces:
    DialogDefaultsInterface, 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 JDialogDTICreateListFileRegOAR35DOptions
    extends JDialogBase
    See Also:
    Serialized Form
    • Nested Class Summary

      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent event)
      Closes dialog box when the OK button is pressed, sets the variables, and calls the algorithm.
      private javax.swing.JDialog buildAdvancedDialog​(int bracketBound, int maxIter, int numMinima)
      Build advanced settings dialog.
      int getBracketBound()  
      float getCoarseRate()  
      float getCoarseRateX()  
      float getCoarseRateY()  
      float getCoarseRateZ()  
      int getCost()  
      int getDOF()  
      float getFineRate()  
      float getFineRateX()  
      float getFineRateY()  
      float getFineRateZ()  
      int getInterp()  
      int getInterp2()  
      int getMaxIterations()  
      int getNumMinima()  
      int getRegisterTo()  
      float getRotateBegin()  
      float getRotateBeginX()  
      float getRotateBeginY()  
      float getRotateBeginZ()  
      float getRotateEnd()  
      float getRotateEndX()  
      float getRotateEndY()  
      float getRotateEndZ()  
      private void init()
      Initializes the GUI components and displays the dialog.
      boolean isDoMultiThread()  
      boolean isDoSubsample()  
      boolean isFastMode()  
      boolean isMaxOfMinResol()  
      void itemStateChanged​(java.awt.event.ItemEvent event)
      Changes the interpolation box to enabled or disabled depending on if the transform box is checked or not.
      void setBracketBound​(int bracketBound)
      Accessor to set bracketBound.
      void setCoarseBegin​(float x)
      Accessor to set the coarse sample begin.
      void setCoarseEnd​(float x)
      Accessor to set the coarse sample end.
      void setCoarseRate​(float x)
      Accessor to set the coarse sample rate.
      void setCostChoice​(int x)
      Accessor to set the choice of cost function.
      void setDOF​(int x)
      Accessor to set the degrees of freedom.
      void setFastMode​(boolean flag)
      Accessor to set whether or not to execute the fast mode (skip sub sample and goto last final optimization).
      void setFineRate​(float x)
      Accessor to set the fine sample rate.
      void setInterp​(int x)
      Accessor to set the initial interpolation.
      void setInterp2​(int x)
      Accessor to set the final interpolation.
      void setMaxIterations​(int maxIterations)
      Accessor to set maxIterations.
      void setMultiThread​(boolean doMultiThread)
      Accessor to set if multithreading is used
      void setNumMinima​(int numMinima)
      Accessor to set numMinima.
      void setSubsample​(boolean doSubsample)
      Accessor to set whether or not subsampling occurs.
      boolean setVariables()
      Sets the variables needed to call the registration algorithm based on the values entered in the dialog.
      private void showX()
      DOCUMENT ME!
      private void showY()
      DOCUMENT ME!
      private void showZ()
      DOCUMENT ME!
      void windowClosing​(java.awt.event.WindowEvent event)
      Disposes of error dialog, then frame.
      • 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
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Use serialVersionUID for interoperability.
        See Also:
        Constant Field Values
      • advancedDialog

        private javax.swing.JDialog advancedDialog
        Variables for Advanced Settings dialog.
      • bracketBoundText

        private javax.swing.JTextField bracketBoundText
        DOCUMENT ME!
      • maxIterationsText

        private javax.swing.JTextField maxIterationsText
        DOCUMENT ME!
      • numMinText

        private javax.swing.JTextField numMinText
        DOCUMENT ME!
      • comboBoxCostFunct

        private javax.swing.JComboBox comboBoxCostFunct
        DOCUMENT ME!
      • comboBoxDOF

        private javax.swing.JComboBox comboBoxDOF
        DOCUMENT ME!
      • comboBoxInterp

        private javax.swing.JComboBox comboBoxInterp
        DOCUMENT ME!
      • comboBoxInterp2

        private javax.swing.JComboBox comboBoxInterp2
        DOCUMENT ME!
      • cost

        private int cost
        DOCUMENT ME!
      • interp

        private int interp
        DOCUMENT ME!
      • interp2

        private int interp2
        DOCUMENT ME!
      • DOF

        private int DOF
        DOCUMENT ME!
      • doSubsample

        private boolean doSubsample
        DOCUMENT ME!
      • doMultiThread

        private boolean doMultiThread
      • fastMode

        private boolean fastMode
        DOCUMENT ME!
      • fastModeCheckbox

        private javax.swing.JCheckBox fastModeCheckbox
        DOCUMENT ME!
      • maxOfMinResol

        private boolean maxOfMinResol
        DOCUMENT ME!
      • labelInterp2

        private javax.swing.JLabel labelInterp2
        DOCUMENT ME!
      • gbc

        private java.awt.GridBagConstraints gbc
        DOCUMENT ME!
      • xSelected

        private boolean xSelected
        DOCUMENT ME!
      • ySelected

        private boolean ySelected
        DOCUMENT ME!
      • rotatePanel

        private javax.swing.JPanel rotatePanel
      • maxIterations_def

        private int maxIterations_def
        DOCUMENT ME!
      • bracketBound_def

        private int bracketBound_def
        DOCUMENT ME!
      • numMinima_def

        private int numMinima_def
        DOCUMENT ME!
      • maxIterations

        private int maxIterations
        DOCUMENT ME!
      • bracketBound

        private int bracketBound
        DOCUMENT ME!
      • numMinima

        private int numMinima
        DOCUMENT ME!
      • registerTo

        private int registerTo
      • isDICOM

        private boolean isDICOM
      • universalCheckbox

        private javax.swing.JCheckBox universalCheckbox
        DOCUMENT ME!
      • xRadio

        private javax.swing.JRadioButton xRadio
        DOCUMENT ME!
      • yRadio

        private javax.swing.JRadioButton yRadio
        DOCUMENT ME!
      • zRadio

        private javax.swing.JRadioButton zRadio
        DOCUMENT ME!
      • rotateRangePanelX

        private javax.swing.JPanel rotateRangePanelX
        DOCUMENT ME!
      • rotateRangePanelY

        private javax.swing.JPanel rotateRangePanelY
        DOCUMENT ME!
      • rotateRangePanelZ

        private javax.swing.JPanel rotateRangePanelZ
        DOCUMENT ME!
      • finePanelX

        private javax.swing.JPanel finePanelX
        DOCUMENT ME!
      • finePanelY

        private javax.swing.JPanel finePanelY
        DOCUMENT ME!
      • finePanelZ

        private javax.swing.JPanel finePanelZ
        DOCUMENT ME!
      • coarsePanelX

        private javax.swing.JPanel coarsePanelX
        DOCUMENT ME!
      • coarsePanelY

        private javax.swing.JPanel coarsePanelY
        DOCUMENT ME!
      • coarsePanelZ

        private javax.swing.JPanel coarsePanelZ
        DOCUMENT ME!
      • rotateBegin

        private float rotateBegin
        DOCUMENT ME!
      • rotateEnd

        private float rotateEnd
        DOCUMENT ME!
      • coarseRate

        private float coarseRate
        DOCUMENT ME!
      • fineRate

        private float fineRate
        DOCUMENT ME!
      • rotateBeginX

        private float rotateBeginX
        DOCUMENT ME!
      • rotateEndX

        private float rotateEndX
        DOCUMENT ME!
      • coarseRateX

        private float coarseRateX
        DOCUMENT ME!
      • fineRateX

        private float fineRateX
        DOCUMENT ME!
      • rotateBeginY

        private float rotateBeginY
        DOCUMENT ME!
      • rotateEndY

        private float rotateEndY
        DOCUMENT ME!
      • coarseRateY

        private float coarseRateY
        DOCUMENT ME!
      • fineRateY

        private float fineRateY
        DOCUMENT ME!
      • rotateBeginZ

        private float rotateBeginZ
        DOCUMENT ME!
      • rotateEndZ

        private float rotateEndZ
        DOCUMENT ME!
      • coarseRateZ

        private float coarseRateZ
        DOCUMENT ME!
      • fineRateZ

        private float fineRateZ
        DOCUMENT ME!
      • rotateBeginText

        private javax.swing.JTextField rotateBeginText
        DOCUMENT ME!
      • rotateEndText

        private javax.swing.JTextField rotateEndText
        DOCUMENT ME!
      • coarseRateText

        private javax.swing.JTextField coarseRateText
        DOCUMENT ME!
      • fineRateText

        private javax.swing.JTextField fineRateText
        DOCUMENT ME!
      • rotateBeginTextX

        private javax.swing.JTextField rotateBeginTextX
        DOCUMENT ME!
      • rotateEndTextX

        private javax.swing.JTextField rotateEndTextX
        DOCUMENT ME!
      • coarseRateTextX

        private javax.swing.JTextField coarseRateTextX
        DOCUMENT ME!
      • fineRateTextX

        private javax.swing.JTextField fineRateTextX
        DOCUMENT ME!
      • rotateBeginTextY

        private javax.swing.JTextField rotateBeginTextY
        DOCUMENT ME!
      • rotateEndTextY

        private javax.swing.JTextField rotateEndTextY
        DOCUMENT ME!
      • coarseRateTextY

        private javax.swing.JTextField coarseRateTextY
        DOCUMENT ME!
      • fineRateTextY

        private javax.swing.JTextField fineRateTextY
        DOCUMENT ME!
      • rotateBeginTextZ

        private javax.swing.JTextField rotateBeginTextZ
        DOCUMENT ME!
      • rotateEndTextZ

        private javax.swing.JTextField rotateEndTextZ
        DOCUMENT ME!
      • coarseRateTextZ

        private javax.swing.JTextField coarseRateTextZ
        DOCUMENT ME!
      • fineRateTextZ

        private javax.swing.JTextField fineRateTextZ
        DOCUMENT ME!
      • sampleCheckBox

        private javax.swing.JCheckBox sampleCheckBox
        DOCUMENT ME!
      • multiThreadCheckBox

        private javax.swing.JCheckBox multiThreadCheckBox
      • minMaxCheckbox

        private javax.swing.JCheckBox minMaxCheckbox
        DOCUMENT ME!
    • Constructor Detail

      • JDialogDTICreateListFileRegOAR35DOptions

        public JDialogDTICreateListFileRegOAR35DOptions​(boolean isDICOM)
        Creates new dialog for user to choose variables for internal registration.
        Parameters:
        theParentFrame - Parent frame.
        im - Source image.
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent event)
        Closes dialog box when the OK button is pressed, sets the variables, and calls the algorithm.
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
        Overrides:
        actionPerformed in class JDialogBase
        Parameters:
        event - Event that triggers function.
      • itemStateChanged

        public void itemStateChanged​(java.awt.event.ItemEvent event)
        Changes the interpolation box to enabled or disabled depending on if the transform box is checked or not.
        Specified by:
        itemStateChanged in interface java.awt.event.ItemListener
        Overrides:
        itemStateChanged in class JDialogBase
        Parameters:
        event - Event that triggered this function.
      • setBracketBound

        public void setBracketBound​(int bracketBound)
        Accessor to set bracketBound.
        Parameters:
        bracketBound - DOCUMENT ME!
      • setCoarseBegin

        public void setCoarseBegin​(float x)
        Accessor to set the coarse sample begin.
        Parameters:
        x - Coarse begin
      • setCoarseEnd

        public void setCoarseEnd​(float x)
        Accessor to set the coarse sample end.
        Parameters:
        x - Coarse end
      • setCoarseRate

        public void setCoarseRate​(float x)
        Accessor to set the coarse sample rate.
        Parameters:
        x - Coarse rate
      • setCostChoice

        public void setCostChoice​(int x)
        Accessor to set the choice of cost function.
        Parameters:
        x - Cost function.
      • setDOF

        public void setDOF​(int x)
        Accessor to set the degrees of freedom.
        Parameters:
        x - Degrees of freedom
      • setFastMode

        public void setFastMode​(boolean flag)
        Accessor to set whether or not to execute the fast mode (skip sub sample and goto last final optimization).
        Parameters:
        flag - true then skip to level one (last ) optimization.
      • setFineRate

        public void setFineRate​(float x)
        Accessor to set the fine sample rate.
        Parameters:
        x - Fine rate
      • setInterp

        public void setInterp​(int x)
        Accessor to set the initial interpolation.
        Parameters:
        x - Interpolation
      • setInterp2

        public void setInterp2​(int x)
        Accessor to set the final interpolation.
        Parameters:
        x - Interpolation
      • setMaxIterations

        public void setMaxIterations​(int maxIterations)
        Accessor to set maxIterations.
        Parameters:
        maxIterations - DOCUMENT ME!
      • setNumMinima

        public void setNumMinima​(int numMinima)
        Accessor to set numMinima.
        Parameters:
        numMinima - DOCUMENT ME!
      • setSubsample

        public void setSubsample​(boolean doSubsample)
        Accessor to set whether or not subsampling occurs.
        Parameters:
        doSubsample - DOCUMENT ME!
      • setMultiThread

        public void setMultiThread​(boolean doMultiThread)
        Accessor to set if multithreading is used
        Parameters:
        doMultiThread -
      • buildAdvancedDialog

        private javax.swing.JDialog buildAdvancedDialog​(int bracketBound,
                                                        int maxIter,
                                                        int numMinima)
        Build advanced settings dialog. Returns JDialog.
        Parameters:
        bracketBound - DOCUMENT ME!
        maxIter - DOCUMENT ME!
        numMinima - DOCUMENT ME!
        Returns:
        DOCUMENT ME!
      • init

        private void init()
        Initializes the GUI components and displays the dialog.
      • setVariables

        public boolean setVariables()
        Sets the variables needed to call the registration algorithm based on the values entered in the dialog.
        Returns:
        true if the variables are properly set, false otherwise.
      • windowClosing

        public void windowClosing​(java.awt.event.WindowEvent event)
        Description copied from class: JDialogBase
        Disposes of error dialog, then frame. Sets cancelled to true.
        Specified by:
        windowClosing in interface java.awt.event.WindowListener
        Overrides:
        windowClosing in class JDialogBase
        Parameters:
        event - WindowEvent
      • showX

        private void showX()
        DOCUMENT ME!
      • showY

        private void showY()
        DOCUMENT ME!
      • showZ

        private void showZ()
        DOCUMENT ME!
      • getCost

        public int getCost()
      • getDOF

        public int getDOF()
      • getInterp

        public int getInterp()
      • getInterp2

        public int getInterp2()
      • getRegisterTo

        public int getRegisterTo()
      • getRotateBegin

        public float getRotateBegin()
      • getRotateEnd

        public float getRotateEnd()
      • getCoarseRate

        public float getCoarseRate()
      • getFineRate

        public float getFineRate()
      • isDoSubsample

        public boolean isDoSubsample()
      • isDoMultiThread

        public boolean isDoMultiThread()
      • isFastMode

        public boolean isFastMode()
      • getBracketBound

        public int getBracketBound()
      • getMaxIterations

        public int getMaxIterations()
      • getNumMinima

        public int getNumMinima()
      • getCoarseRateX

        public float getCoarseRateX()
      • getCoarseRateZ

        public float getCoarseRateZ()
      • getCoarseRateY

        public float getCoarseRateY()
      • getFineRateX

        public float getFineRateX()
      • getFineRateY

        public float getFineRateY()
      • getFineRateZ

        public float getFineRateZ()
      • getRotateBeginX

        public float getRotateBeginX()
      • getRotateBeginY

        public float getRotateBeginY()
      • getRotateBeginZ

        public float getRotateBeginZ()
      • getRotateEndX

        public float getRotateEndX()
      • getRotateEndY

        public float getRotateEndY()
      • getRotateEndZ

        public float getRotateEndZ()
      • isMaxOfMinResol

        public boolean isMaxOfMinResol()