Class JDialogVOIHausdorffDistance

    • Field Detail

      • image

        protected ModelImage image
        image and cloned image
      • everything

        protected javax.swing.JTabbedPane everything
        Tabbed pane that holds all components.
      • sourceRoot

        private javax.swing.tree.DefaultMutableTreeNode sourceRoot
        DOCUMENT ME!
      • selectedRoot

        private javax.swing.tree.DefaultMutableTreeNode selectedRoot
        DOCUMENT ME!
      • sourceVoiModel

        private javax.swing.tree.DefaultTreeModel sourceVoiModel
        The tree of VOIs, composed of an image with children VOIs
      • selectedVOIModel

        private javax.swing.tree.DefaultTreeModel selectedVOIModel
        The tree of VOIs, composed of an image with children VOIs
      • sourceVoiTree

        private javax.swing.JTree sourceVoiTree
        The graphical representation of voiModel
      • selectedVoiTree

        private javax.swing.JTree selectedVoiTree
      • ICON_POLYGON

        private static javax.swing.Icon ICON_POLYGON
        DOCUMENT ME!
      • ICON_POLYLINE

        private static javax.swing.Icon ICON_POLYLINE
        DOCUMENT ME!
      • ICON_POINT

        private static javax.swing.Icon ICON_POINT
        DOCUMENT ME!
      • ICON_LINE

        private static javax.swing.Icon ICON_LINE
        DOCUMENT ME!
      • ICON_MEDICAL_FRAME

        private static javax.swing.Icon ICON_MEDICAL_FRAME
        DOCUMENT ME!
      • ICON_X_AXIS

        private static javax.swing.Icon ICON_X_AXIS
        DOCUMENT ME!
      • ICON_Y_AXIS

        private static javax.swing.Icon ICON_Y_AXIS
        DOCUMENT ME!
      • ICON_Z_AXIS

        private static javax.swing.Icon ICON_Z_AXIS
        DOCUMENT ME!
      • ICON_PROTRACTOR

        private static javax.swing.Icon ICON_PROTRACTOR
        DOCUMENT ME!
      • frameBorder

        private javax.swing.border.Border frameBorder
      • jsp

        private javax.swing.JScrollPane jsp
      • treeSelectionChange

        private boolean treeSelectionChange
      • updateTree

        private boolean updateTree
      • selectedVOI

        private VOI selectedVOI
      • index

        int index
      • logicalOperation

        int logicalOperation
    • Constructor Detail

      • JDialogVOIHausdorffDistance

        public JDialogVOIHausdorffDistance​(VOIHandlerInterface voiHandler,
                                           VOIVector voiList)
        constructor
        Parameters:
        voiList -
    • Method Detail

      • cleanUpAndDispose

        protected void cleanUpAndDispose()
        Clean up some things done by the dialog which may affect other parts of MIPAV.
      • buildDialog

        protected void buildDialog​(VOIVector voiList)
        Builds the dialog
        Parameters:
        voiList -
      • buildOKCancelPanel

        protected javax.swing.JPanel buildOKCancelPanel()
        creates the panel which consists of the OKAY button and the Cancel button.
      • addedVOI

        public void addedVOI​(VOIVectorEvent voiEvent)
        resets the volumes list to the current VOIVector. adds the highlighter to the new VOI.
        Specified by:
        addedVOI in interface VOIVectorListener
        Parameters:
        voiEvent - DOCUMENT ME!
      • removedVOI

        public void removedVOI​(VOIVectorEvent voiEvent)
        resets the volumes list to the current VOIVector. removes the highlighter from the removed VOI.
        Specified by:
        removedVOI in interface VOIVectorListener
        Parameters:
        voiEvent - DOCUMENT ME!
      • buildSourceListingPanel

        private javax.swing.JPanel buildSourceListingPanel​(VOIVector VOIlist)
        Creates the panel holding the directory tree.
        Parameters:
        VOIlist - DOCUMENT ME!
        Returns:
        Panel.
      • updateTree

        public void updateTree()
      • buildVOITree

        protected javax.swing.JTree buildVOITree()
        DOCUMENT ME!
      • buildSourcePanel

        private javax.swing.JPanel buildSourcePanel​(VOIVector VOIlist)
        creates the source panel which consists of the directory line, the browse button, and a check box approving the anonymize in sub-directories.
        Parameters:
        VOIlist - DOCUMENT ME!
        Returns:
        DOCUMENT ME!
      • buildSelectedListing

        private javax.swing.JPanel buildSelectedListing()
        creates the visual display in which to list all selected directories in the directory tree. The panel is 240 pixels wide though that is supposed to be the minimum size
        Returns:
        the panel which is to hold the list of selected items
      • buildVOIPanel

        protected javax.swing.JPanel buildVOIPanel​(VOIVector VOIlist)
        creates the source panel for the VOI tab which consists of the directory line, the browse button, and a check box approving the anonymize in sub-directories. Also includes the file-format selection for the output file.
        Parameters:
        VOIlist - DOCUMENT ME!
        Returns:
        DOCUMENT ME!
      • 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
      • 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 e)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
        Overrides:
        actionPerformed in class JDialogBase
      • 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
      • printTree

        private void printTree​(javax.swing.tree.TreeModel model,
                               java.lang.Object parent)
      • valueChanged

        public void valueChanged​(javax.swing.event.TreeSelectionEvent e)
        Updates the ViewJFrameImage when a VOI/contour is selected.
        Specified by:
        valueChanged in interface javax.swing.event.TreeSelectionListener
        Parameters:
        e - TreeSelectionEvent
      • updateVOI

        public void updateVOI​(VOI _voi,
                              ModelImage img)
        Updates the dialog based on the VOI passed in.
        Parameters:
        _voi - VOI whose properties we want to calculate.
        img - Image where voi is to be updated
      • createInputParameters

        public ParameterTable createInputParameters()
        Description copied from interface: ActionDiscovery
        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()
        Description copied from interface: ActionDiscovery
        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()
        Description copied from interface: ActionDiscovery
        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)
        Description copied from interface: ActionDiscovery
        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()
        Description copied from interface: ActionDiscovery
        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.