Package gov.nih.mipav.view.renderer
Class JPanelVolOpacityRGB
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- gov.nih.mipav.view.renderer.JPanelRendererBase
-
- gov.nih.mipav.view.renderer.J3D.JPanelRendererJ3D
-
- gov.nih.mipav.view.renderer.J3D.JPanelVolOpacityBase
-
- gov.nih.mipav.view.renderer.JPanelVolOpacityRGB
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.awt.event.FocusListener,java.awt.event.ItemListener,java.awt.event.KeyListener,java.awt.event.MouseListener,java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,java.util.EventListener,javax.accessibility.Accessible,javax.swing.event.ChangeListener
public class JPanelVolOpacityRGB extends JPanelVolOpacityBase
Deprecated.This class produces a frame where the histogram of the image data is displayed using the color mapping. All frames using the color map are dynamically updated with the new color map. This is the color image volume opacity control panel. In addition to the JPanelColorHisoRGB, the panel hold the gradient magnitude hisogram control panel.- Version:
- 1.0
- See Also:
JPanelVolumeOpacity, 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 ModelHistogramhistogramABlueDeprecated.imageA histogram of the Blue channel.private ModelHistogramhistogramAGreenDeprecated.imageA histogram of the Green channel.private ModelHistogramhistogramARedDeprecated.imageA histogram of the Red channel.private ModelHistogramhistogramBBlueDeprecated.imageB histogram, the Blue channel.private ModelHistogramhistogramBGreenDeprecated.imageB histogram, the Green channel.private ModelHistogramhistogramBRedDeprecated.imageB histogram of the Red channel.private ModelHistogramhistogramGM_ABlueDeprecated.imageA histogram of the Blue channel.private ModelHistogramhistogramGM_AGreenDeprecated.imageA histogram of the Green channel.private ModelHistogramhistogramGM_ARedDeprecated.imageA histogram of the Red channel.private ModelHistogramhistogramGM_BBlueDeprecated.imageB histogram, the Blue channel.private ModelHistogramhistogramGM_BGreenDeprecated.imageB histogram, the Green channel.private ModelHistogramhistogramGM_BRedDeprecated.imageB histogram of the Red channel.private javax.swing.JProgressBarrendererProgressBarDeprecated.A reference to the volume renderer frame's progress bar.private ModelRGBRGBTADeprecated.Tagged for deletion - Matt, Ruida, Lee, ModelRGB table for imageA, B.private ModelRGBRGBTA_GMDeprecated.Tagged for deletion - Matt, Ruida, Lee, RGB table reference of the image A, B.private ModelRGBRGBTBDeprecated.DOCUMENT ME!private ModelRGBRGBTB_GMDeprecated.DOCUMENT ME!private static longserialVersionUIDDeprecated.Use serialVersionUID for interoperability.private javax.swing.JToolBartoolBarDeprecated.ToolBar that hold the linear, horizontal mode etc.-
Fields inherited from class gov.nih.mipav.view.renderer.J3D.JPanelVolOpacityBase
blendSlider, BLUE, COMP_A, COMP_B, COMP_GM_A, COMP_GM_B, componentOpacityA, componentOpacityB, componentOpacityGM_A, componentOpacityGM_B, GMCheckBox, gradMagRescale_A, gradMagRescale_B, GREEN, imageA, imageB, labelsTable, labelsTableB, labelsTableGM_A, labelsTableGM_B, m_kVolumeViewer, middleLabelValueA, middleLabelValueB, middleLabelValueGM_A, middleLabelValueGM_B, mouseSlider, mouseSliderB, mouseSliderGM_A, mouseSliderGM_B, OPACITY_COMPONENT_TAB_A, OPACITY_COMPONENT_TAB_A_GM, OPACITY_COMPONENT_TAB_B, OPACITY_COMPONENT_TAB_B_GM, opacitySliderLabelsA, opacitySliderLabelsB, opacitySliderLabelsGM_A, opacitySliderLabelsGM_B, panelOpacityA, panelOpacityB, panelOpacityGM_A, panelOpacityGM_B, rangeText, rangeTextB, rangeTextGM_A, rangeTextGM_B, RED, scaleRangeA, scaleRangeB, scaleRangeGM_A, scaleRangeGM_B, tabbedPane, xRangeTextA, xRangeTextB, xRangeTextGM_A, xRangeTextGM_B, yRangeTextA, yRangeTextB, yRangeTextGM_A, yRangeTextGM_B
-
Fields inherited from class gov.nih.mipav.view.renderer.J3D.JPanelRendererJ3D
rayBasedRender, renderBase
-
Fields inherited from class gov.nih.mipav.view.renderer.JPanelRendererBase
applyButton, cancelButton, cancelFlag, closeButton, helpButton, isActiveImage, mainPanel, NEW, OKButton, REPLACE, runInSeparateThread, serif12, serif12B
-
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 JPanelVolOpacityRGB(RenderViewBase theParentFrame, ModelImage _imageA, ModelImage _imageB)Deprecated.JPanelVolOpacityRGB(VolumeTriPlanarInterface theParentFrame, ModelImage _imageA, ModelImage _imageB)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent event)Deprecated.Calls various methods depending on the action.voidaddGM()Deprecated.Add the gradient magnitude hitogram to the opacity control panel.private voidbuildPanelA()Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.private voidbuildPanelB()Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.private voidbuildPanelGM_A()Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.private voidbuildPanelGM_B()Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.javax.swing.JToolBarbuildRGBToolBar(java.awt.event.ActionListener al)Deprecated.Method to build the toolbar for the RGB frame.private ModelHistogramcalcHistogram(ModelImage image, int channel)Deprecated.Calculates histogram for the image(s).private voidcalcHistogramGM()Deprecated.Calculates the histogram for the color images GM.voiddisposeLocal()Deprecated.Disposes of components and frame.voidfinalize()Deprecated.Calls dispose.ModelImagegetGradMagA()Deprecated.Get the gradient magnitude imageA.ModelImagegetGradMagB()Deprecated.Get the gradient magnitude imageA.TransferFunctiongetOpacityAfn(int channel)Deprecated.Returns the opacity transfer function for image A.TransferFunctiongetOpacityBfn(int channel)Deprecated.Returns the opacity transfer function for image B.TransferFunctiongetOpacityGM_Afn(int channel)Deprecated.Returns the opacity transfer function for image A.TransferFunctiongetOpacityGM_Bfn(int channel)Deprecated.Returns the opacity transfer function for image B.ModelRGBgetRGB_OpacityA()Deprecated.Returns the opacity transfer function via the ModelRGB object for image B.ModelRGBgetRGB_OpacityA_GM()Deprecated.Returns the opacity transfer function for the gradient magnitude image via the ModelRGB object for image A.ModelRGBgetRGB_OpacityB()Deprecated.Returns the opacity transfer function via the ModelRGB object for image B.ModelRGBgetRGB_OpacityB_GM()Deprecated.Returns the opacity transfer function for the gradient magnitude image via the ModelRGB object for image B.voiditemStateChanged(java.awt.event.ItemEvent event)Deprecated.Sets the flags for the checkboxes.voidremoveGM()Deprecated.Add the gradient magnitude hitogram to the opacity control panel.-
Methods inherited from class gov.nih.mipav.view.renderer.J3D.JPanelVolOpacityBase
buildBlendPanel, getAlphaBlendSliderValue, getCompA, getCompA_GM, getCompB, getCompB_GM, getImageA, getImageB, getLabelTableA, getLabelTableB, getLabelTableGM_A, getLabelTableGM_B, getMainPanel, getParentFrame, getSelectedComponent, getSelectedComponent, getSelectedTabIndex, getTabbedPane, initBlendSliderLabels, isGradientMagnitudeOpacityEnabled, loadGMImage, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, setAdjustersEnabled, setAlphaBlendSliderValue, setGradientMagnitudeOpacityEnabled, setSelectedTabIndex, stateChanged, update, updateSlider
-
Methods inherited from class gov.nih.mipav.view.renderer.J3D.JPanelRendererJ3D
getSurfaceRender, setRayBasedRender, setSurfaceRender
-
Methods inherited from class gov.nih.mipav.view.renderer.JPanelRendererBase
buildApplyButton, buildCancelButton, buildCloseButton, buildHelpButton, buildOKButton, buildTitledBorder, focusGained, focusLost, isCancelled, keyPressed, keyReleased, keyTyped, makeString, resizePanel, setLeftHandSystem, setVisible, setVisibleStandard, setWCSystem, testParameter
-
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, 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
Deprecated.Use serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
histogramABlue
private ModelHistogram histogramABlue
Deprecated.imageA histogram of the Blue channel.
-
histogramAGreen
private ModelHistogram histogramAGreen
Deprecated.imageA histogram of the Green channel.
-
histogramARed
private ModelHistogram histogramARed
Deprecated.imageA histogram of the Red channel.
-
histogramBBlue
private ModelHistogram histogramBBlue
Deprecated.imageB histogram, the Blue channel.
-
histogramBGreen
private ModelHistogram histogramBGreen
Deprecated.imageB histogram, the Green channel.
-
histogramBRed
private ModelHistogram histogramBRed
Deprecated.imageB histogram of the Red channel.
-
histogramGM_ABlue
private ModelHistogram histogramGM_ABlue
Deprecated.imageA histogram of the Blue channel.
-
histogramGM_AGreen
private ModelHistogram histogramGM_AGreen
Deprecated.imageA histogram of the Green channel.
-
histogramGM_ARed
private ModelHistogram histogramGM_ARed
Deprecated.imageA histogram of the Red channel.
-
histogramGM_BBlue
private ModelHistogram histogramGM_BBlue
Deprecated.imageB histogram, the Blue channel.
-
histogramGM_BGreen
private ModelHistogram histogramGM_BGreen
Deprecated.imageB histogram, the Green channel.
-
histogramGM_BRed
private ModelHistogram histogramGM_BRed
Deprecated.imageB histogram of the Red channel.
-
rendererProgressBar
private javax.swing.JProgressBar rendererProgressBar
Deprecated.A reference to the volume renderer frame's progress bar.
-
RGBTA
private ModelRGB RGBTA
Deprecated.Tagged for deletion - Matt, Ruida, Lee, ModelRGB table for imageA, B.
-
RGBTA_GM
private ModelRGB RGBTA_GM
Deprecated.Tagged for deletion - Matt, Ruida, Lee, RGB table reference of the image A, B.
-
RGBTB
private ModelRGB RGBTB
Deprecated.DOCUMENT ME!
-
RGBTB_GM
private ModelRGB RGBTB_GM
Deprecated.DOCUMENT ME!
-
toolBar
private javax.swing.JToolBar toolBar
Deprecated.ToolBar that hold the linear, horizontal mode etc.
-
-
Constructor Detail
-
JPanelVolOpacityRGB
public JPanelVolOpacityRGB(RenderViewBase theParentFrame, ModelImage _imageA, ModelImage _imageB)
Deprecated.Makes a frame of the histogram.- Parameters:
theParentFrame- Model RGB_imageA- Model of imageA_imageB- Model of imageB- See Also:
JPanelVolumeOpacity
-
JPanelVolOpacityRGB
public JPanelVolOpacityRGB(VolumeTriPlanarInterface theParentFrame, ModelImage _imageA, ModelImage _imageB)
Deprecated.Makes a frame of the histogram.- Parameters:
theParentFrame- Model RGB_imageA- Model of imageA_imageB- Model of imageB- See Also:
JPanelVolumeOpacity
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
Deprecated.Calls various methods depending on the action.- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- Overrides:
actionPerformedin classJPanelVolOpacityBase- Parameters:
event- event that triggered function
-
addGM
public void addGM()
Deprecated.Add the gradient magnitude hitogram to the opacity control panel.- Specified by:
addGMin classJPanelVolOpacityBase
-
buildRGBToolBar
public javax.swing.JToolBar buildRGBToolBar(java.awt.event.ActionListener al)
Deprecated.Method to build the toolbar for the RGB frame.- Parameters:
al- action listener (this frame)- Returns:
- DOCUMENT ME!
-
disposeLocal
public void disposeLocal()
Deprecated.Disposes of components and frame.- Overrides:
disposeLocalin classJPanelVolOpacityBase
-
finalize
public void finalize() throws java.lang.ThrowableDeprecated.Calls dispose.- Overrides:
finalizein classJPanelVolOpacityBase- Throws:
java.lang.Throwable- DOCUMENT ME!
-
getGradMagA
public ModelImage getGradMagA()
Deprecated.Get the gradient magnitude imageA.- Overrides:
getGradMagAin classJPanelVolOpacityBase- Returns:
- ModelImage GM imageA
-
getGradMagB
public ModelImage getGradMagB()
Deprecated.Get the gradient magnitude imageA.- Overrides:
getGradMagBin classJPanelVolOpacityBase- Returns:
- ModelImage GM imageA
-
getOpacityAfn
public TransferFunction getOpacityAfn(int channel)
Deprecated.Returns the opacity transfer function for image A.- Parameters:
channel- DOCUMENT ME!- Returns:
- TransferFunction
-
getOpacityBfn
public TransferFunction getOpacityBfn(int channel)
Deprecated.Returns the opacity transfer function for image B.- Parameters:
channel- DOCUMENT ME!- Returns:
- TransferFunction
-
getOpacityGM_Afn
public TransferFunction getOpacityGM_Afn(int channel)
Deprecated.Returns the opacity transfer function for image A.- Parameters:
channel- DOCUMENT ME!- Returns:
- TransferFunction
-
getOpacityGM_Bfn
public TransferFunction getOpacityGM_Bfn(int channel)
Deprecated.Returns the opacity transfer function for image B.- Parameters:
channel- DOCUMENT ME!- Returns:
- TransferFunction
-
getRGB_OpacityA
public ModelRGB getRGB_OpacityA()
Deprecated.Returns the opacity transfer function via the ModelRGB object for image B.- Returns:
- ModelRGB
-
getRGB_OpacityA_GM
public ModelRGB getRGB_OpacityA_GM()
Deprecated.Returns the opacity transfer function for the gradient magnitude image via the ModelRGB object for image A.- Returns:
- ModelRGB
-
getRGB_OpacityB
public ModelRGB getRGB_OpacityB()
Deprecated.Returns the opacity transfer function via the ModelRGB object for image B.- Returns:
- ModelRGB
-
getRGB_OpacityB_GM
public ModelRGB getRGB_OpacityB_GM()
Deprecated.Returns the opacity transfer function for the gradient magnitude image via the ModelRGB object for image B.- Returns:
- ModelRGB
-
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent event)
Deprecated.Sets the flags for the checkboxes.- Specified by:
itemStateChangedin interfacejava.awt.event.ItemListener- Overrides:
itemStateChangedin classJPanelRendererBase- Parameters:
event- event that triggered this function
-
removeGM
public void removeGM()
Deprecated.Add the gradient magnitude hitogram to the opacity control panel.- Specified by:
removeGMin classJPanelVolOpacityBase
-
buildPanelA
private void buildPanelA()
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT. Panel for image A.
-
buildPanelB
private void buildPanelB()
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT. Panel for image B.
-
buildPanelGM_A
private void buildPanelGM_A()
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT. Panel for image A.
-
buildPanelGM_B
private void buildPanelGM_B()
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT. Panel for image B.
-
calcHistogram
private ModelHistogram calcHistogram(ModelImage image, int channel)
Deprecated.Calculates histogram for the image(s).- Parameters:
image- DOCUMENT ME!channel- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
calcHistogramGM
private void calcHistogramGM()
Deprecated.Calculates the histogram for the color images GM.
-
-