Class JPanelDTIFiberTracking
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- gov.nih.mipav.view.renderer.WildMagic.DTI_FrameWork.JPanelDTIFiberTracking
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.io.Serializable
,java.util.EventListener
,javax.accessibility.Accessible
public class JPanelDTIFiberTracking extends javax.swing.JPanel implements java.awt.event.ActionListener
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
-
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
-
-
Field Summary
Fields Modifier and Type Field Description private ModelImage
adcImage
static java.lang.String
ADCImageName
private javax.swing.AbstractButton
calcStats
static java.lang.String
ColorMapImageName
(package private) javax.swing.JCheckBox
createADC
(package private) javax.swing.JCheckBox
createColor
(package private) javax.swing.JCheckBox
createEValue
(package private) javax.swing.JCheckBox
createEVector
(package private) javax.swing.JCheckBox
createFA
(package private) javax.swing.JCheckBox
createRA
(package private) javax.swing.JCheckBox
createTrace
(package private) javax.swing.JCheckBox
createVR
private java.lang.String
currDir
current directory *(package private) javax.swing.JCheckBox
displayADC
(package private) javax.swing.JCheckBox
displayColor
(package private) javax.swing.JCheckBox
displayEValue
(package private) javax.swing.JCheckBox
displayEVector
(package private) javax.swing.JCheckBox
displayFA
(package private) javax.swing.JCheckBox
displayRA
(package private) javax.swing.JCheckBox
displayTrace
(package private) javax.swing.JCheckBox
displayVR
private ModelImage
eigenValueImage
static java.lang.String
EigenValueImageName
private ModelImage
eigenVectorImage
static java.lang.String
EigenVectorImageName
private ModelImage
FAImage
static java.lang.String
FAImageName
private javax.swing.JPanel
mainPanel
main panel *private javax.swing.JTextField
outputDirTextField
private javax.swing.JDialog
parentFrame
Parent dialog, when this panel is created as a stand-alone dialog: *private DTIPipeline
pipeline
Parent DTI pipeline frameworkprivate ModelImage
raImage
static java.lang.String
RAImageName
private ModelImage
rgbImage
private static long
serialVersionUID
private java.awt.Font
serif12
private ModelImage
tensorImage
private javax.swing.JTextField
textDTIimage
private ModelImage
traceImage
static java.lang.String
TraceImageName
static java.lang.String
TrackFileName
private JPanelDTIVisualization
visualization
private ModelImage
vrImage
static java.lang.String
VRImageName
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor Description JPanelDTIFiberTracking(DTIPipeline pipeline)
Constructs the Fiber Tracking input panel:JPanelDTIFiberTracking(javax.swing.JDialog parent, DTIPipeline pipeline)
Constructs the Fiber Tracking input panel:
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
private void
buildDTILoadPanel()
private void
calcEigenVectorImage()
Calls AlgorithmDTI2EGFA to create an Apparent Diffusion Coefficient Image, Functional Anisotropy Image, Color Image, Eigen Value Image, Eigen Vector Image, Relative Anisotropy Image, Trace Image, and Volume Ratio Image.private void
cleanup()
boolean
createDerivedImages()
Creates the images derived from the tensor image.static void
createFrame()
void
enableComputeButton()
ModelImage
getColorMapImage()
ModelImage
getEigenValueImage()
ModelImage
getEigenVectorImage()
ModelImage
getFAImage()
java.lang.String
getOutputDirectory()
Returns the output directory for the derived image calculations.ModelImage
getTensorImage()
Return the tensor image.private void
init(boolean bStandAlone)
void
setInputImage(ModelImage image)
private boolean
validateData()
void
windowClosing(java.awt.event.WindowEvent event)
-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
TraceImageName
public static final java.lang.String TraceImageName
- See Also:
- Constant Field Values
-
RAImageName
public static final java.lang.String RAImageName
- See Also:
- Constant Field Values
-
VRImageName
public static final java.lang.String VRImageName
- See Also:
- Constant Field Values
-
ADCImageName
public static final java.lang.String ADCImageName
- See Also:
- Constant Field Values
-
EigenValueImageName
public static final java.lang.String EigenValueImageName
- See Also:
- Constant Field Values
-
EigenVectorImageName
public static final java.lang.String EigenVectorImageName
- See Also:
- Constant Field Values
-
FAImageName
public static final java.lang.String FAImageName
- See Also:
- Constant Field Values
-
ColorMapImageName
public static final java.lang.String ColorMapImageName
- See Also:
- Constant Field Values
-
TrackFileName
public static final java.lang.String TrackFileName
- See Also:
- Constant Field Values
-
mainPanel
private javax.swing.JPanel mainPanel
main panel *
-
parentFrame
private javax.swing.JDialog parentFrame
Parent dialog, when this panel is created as a stand-alone dialog: *
-
pipeline
private DTIPipeline pipeline
Parent DTI pipeline framework
-
textDTIimage
private javax.swing.JTextField textDTIimage
-
outputDirTextField
private javax.swing.JTextField outputDirTextField
-
currDir
private java.lang.String currDir
current directory *
-
visualization
private JPanelDTIVisualization visualization
-
tensorImage
private ModelImage tensorImage
-
eigenVectorImage
private ModelImage eigenVectorImage
-
FAImage
private ModelImage FAImage
-
eigenValueImage
private ModelImage eigenValueImage
-
rgbImage
private ModelImage rgbImage
-
traceImage
private ModelImage traceImage
-
raImage
private ModelImage raImage
-
vrImage
private ModelImage vrImage
-
adcImage
private ModelImage adcImage
-
createADC
javax.swing.JCheckBox createADC
-
displayADC
javax.swing.JCheckBox displayADC
-
createColor
javax.swing.JCheckBox createColor
-
displayColor
javax.swing.JCheckBox displayColor
-
createEValue
javax.swing.JCheckBox createEValue
-
displayEValue
javax.swing.JCheckBox displayEValue
-
createEVector
javax.swing.JCheckBox createEVector
-
displayEVector
javax.swing.JCheckBox displayEVector
-
createFA
javax.swing.JCheckBox createFA
-
displayFA
javax.swing.JCheckBox displayFA
-
createRA
javax.swing.JCheckBox createRA
-
displayRA
javax.swing.JCheckBox displayRA
-
createTrace
javax.swing.JCheckBox createTrace
-
displayTrace
javax.swing.JCheckBox displayTrace
-
createVR
javax.swing.JCheckBox createVR
-
displayVR
javax.swing.JCheckBox displayVR
-
serif12
private java.awt.Font serif12
-
calcStats
private javax.swing.AbstractButton calcStats
-
-
Constructor Detail
-
JPanelDTIFiberTracking
public JPanelDTIFiberTracking(DTIPipeline pipeline)
Constructs the Fiber Tracking input panel:
-
JPanelDTIFiberTracking
public JPanelDTIFiberTracking(javax.swing.JDialog parent, DTIPipeline pipeline)
Constructs the Fiber Tracking input panel:
-
-
Method Detail
-
createFrame
public static void createFrame()
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
createDerivedImages
public boolean createDerivedImages()
Creates the images derived from the tensor image. The following images are generated: eigen vector image with eigen vectors eigen value image with eigen values functional anisotropy image trace image ra image volume ratio image adc image rgb color image displaying the eigen vectors weighted by the functional anisotropy as RGB.
-
getColorMapImage
public ModelImage getColorMapImage()
-
getEigenValueImage
public ModelImage getEigenValueImage()
-
getEigenVectorImage
public ModelImage getEigenVectorImage()
-
getFAImage
public ModelImage getFAImage()
-
getOutputDirectory
public java.lang.String getOutputDirectory()
Returns the output directory for the derived image calculations.- Returns:
- output directory for the derived image calculations.
-
getTensorImage
public ModelImage getTensorImage()
Return the tensor image.- Returns:
- tensor image.
-
setInputImage
public void setInputImage(ModelImage image)
-
windowClosing
public void windowClosing(java.awt.event.WindowEvent event)
-
buildDTILoadPanel
private void buildDTILoadPanel()
-
calcEigenVectorImage
private void calcEigenVectorImage()
Calls AlgorithmDTI2EGFA to create an Apparent Diffusion Coefficient Image, Functional Anisotropy Image, Color Image, Eigen Value Image, Eigen Vector Image, Relative Anisotropy Image, Trace Image, and Volume Ratio Image.
-
cleanup
private void cleanup()
-
init
private void init(boolean bStandAlone)
-
enableComputeButton
public void enableComputeButton()
-
validateData
private boolean validateData()
-
-