Package gov.nih.mipav.view.renderer
Class JPanelVolOpacityRGB
- All Implemented Interfaces:
ActionListener,FocusListener,ItemListener,KeyListener,MouseListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,ChangeListener
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ModelHistogramDeprecated.imageA histogram of the Blue channel.private ModelHistogramDeprecated.imageA histogram of the Green channel.private ModelHistogramDeprecated.imageA histogram of the Red channel.private ModelHistogramDeprecated.imageB histogram, the Blue channel.private ModelHistogramDeprecated.imageB histogram, the Green channel.private ModelHistogramDeprecated.imageB histogram of the Red channel.private ModelHistogramDeprecated.imageA histogram of the Blue channel.private ModelHistogramDeprecated.imageA histogram of the Green channel.private ModelHistogramDeprecated.imageA histogram of the Red channel.private ModelHistogramDeprecated.imageB histogram, the Blue channel.private ModelHistogramDeprecated.imageB histogram, the Green channel.private ModelHistogramDeprecated.imageB histogram of the Red channel.private JProgressBarDeprecated.A reference to the volume renderer frame's progress bar.private ModelRGBDeprecated.Tagged for deletion - Matt, Ruida, Lee, ModelRGB table for imageA, B.private ModelRGBDeprecated.Tagged for deletion - Matt, Ruida, Lee, RGB table reference of the image A, B.private ModelRGBDeprecated.DOCUMENT ME!private ModelRGBDeprecated.DOCUMENT ME!private static final longDeprecated.Use serialVersionUID for interoperability.private JToolBarDeprecated.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_BFields inherited from class gov.nih.mipav.view.renderer.J3D.JPanelRendererJ3D
rayBasedRender, renderBaseFields inherited from class gov.nih.mipav.view.renderer.JPanelRendererBase
applyButton, cancelButton, cancelFlag, closeButton, helpButton, isActiveImage, mainPanel, NEW, OKButton, REPLACE, runInSeparateThread, serif12, serif12BFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionJPanelVolOpacityRGB(RenderViewBase theParentFrame, ModelImage _imageA, ModelImage _imageB) Deprecated.JPanelVolOpacityRGB(VolumeTriPlanarInterface theParentFrame, ModelImage _imageA, ModelImage _imageB) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) Deprecated.Calls various methods depending on the action.voidaddGM()Deprecated.Add the gradient magnitude hitogram to the opacity control panel.private voidDeprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.private voidDeprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.private voidDeprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.private voidDeprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.Deprecated.Method to build the toolbar for the RGB frame.private ModelHistogramcalcHistogram(ModelImage image, int channel) Deprecated.Calculates histogram for the image(s).private voidDeprecated.Calculates the histogram for the color images GM.voidDeprecated.Disposes of components and frame.voidfinalize()Deprecated.Calls dispose.Deprecated.Get the gradient magnitude imageA.Deprecated.Get the gradient magnitude imageA.getOpacityAfn(int channel) Deprecated.Returns the opacity transfer function for image A.getOpacityBfn(int channel) Deprecated.Returns the opacity transfer function for image B.getOpacityGM_Afn(int channel) Deprecated.Returns the opacity transfer function for image A.getOpacityGM_Bfn(int channel) Deprecated.Returns the opacity transfer function for image B.Deprecated.Returns the opacity transfer function via the ModelRGB object for image B.Deprecated.Returns the opacity transfer function for the gradient magnitude image via the ModelRGB object for image A.Deprecated.Returns the opacity transfer function via the ModelRGB object for image B.Deprecated.Returns the opacity transfer function for the gradient magnitude image via the ModelRGB object for image B.voiditemStateChanged(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, updateSliderMethods inherited from class gov.nih.mipav.view.renderer.J3D.JPanelRendererJ3D
getSurfaceRender, setRayBasedRender, setSurfaceRenderMethods 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, testParameterMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods 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, updateMethods 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, validateTreeMethods 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, transferFocusUpCycleMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.awt.event.FocusListener
focusGained, focusLostMethods inherited from interface java.awt.event.KeyListener
keyPressed, keyReleased, keyTyped
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.Use serialVersionUID for interoperability.- See Also:
-
histogramABlue
Deprecated.imageA histogram of the Blue channel. -
histogramAGreen
Deprecated.imageA histogram of the Green channel. -
histogramARed
Deprecated.imageA histogram of the Red channel. -
histogramBBlue
Deprecated.imageB histogram, the Blue channel. -
histogramBGreen
Deprecated.imageB histogram, the Green channel. -
histogramBRed
Deprecated.imageB histogram of the Red channel. -
histogramGM_ABlue
Deprecated.imageA histogram of the Blue channel. -
histogramGM_AGreen
Deprecated.imageA histogram of the Green channel. -
histogramGM_ARed
Deprecated.imageA histogram of the Red channel. -
histogramGM_BBlue
Deprecated.imageB histogram, the Blue channel. -
histogramGM_BGreen
Deprecated.imageB histogram, the Green channel. -
histogramGM_BRed
Deprecated.imageB histogram of the Red channel. -
rendererProgressBar
Deprecated.A reference to the volume renderer frame's progress bar. -
RGBTA
Deprecated.Tagged for deletion - Matt, Ruida, Lee, ModelRGB table for imageA, B. -
RGBTA_GM
Deprecated.Tagged for deletion - Matt, Ruida, Lee, RGB table reference of the image A, B. -
RGBTB
Deprecated.DOCUMENT ME! -
RGBTB_GM
Deprecated.DOCUMENT ME! -
toolBar
Deprecated.ToolBar that hold the linear, horizontal mode etc.
-
-
Constructor Details
-
JPanelVolOpacityRGB
Deprecated.Makes a frame of the histogram.- Parameters:
theParentFrame- Model RGB_imageA- Model of imageA_imageB- Model of imageB- See Also:
-
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:
-
-
Method Details
-
actionPerformed
Deprecated.Calls various methods depending on the action.- Specified by:
actionPerformedin interfaceActionListener- 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
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
Deprecated.Calls dispose.- Overrides:
finalizein classJPanelVolOpacityBase- Throws:
Throwable- DOCUMENT ME!
-
getGradMagA
Deprecated.Get the gradient magnitude imageA.- Overrides:
getGradMagAin classJPanelVolOpacityBase- Returns:
- ModelImage GM imageA
-
getGradMagB
Deprecated.Get the gradient magnitude imageA.- Overrides:
getGradMagBin classJPanelVolOpacityBase- Returns:
- ModelImage GM imageA
-
getOpacityAfn
Deprecated.Returns the opacity transfer function for image A.- Parameters:
channel- DOCUMENT ME!- Returns:
- TransferFunction
-
getOpacityBfn
Deprecated.Returns the opacity transfer function for image B.- Parameters:
channel- DOCUMENT ME!- Returns:
- TransferFunction
-
getOpacityGM_Afn
Deprecated.Returns the opacity transfer function for image A.- Parameters:
channel- DOCUMENT ME!- Returns:
- TransferFunction
-
getOpacityGM_Bfn
Deprecated.Returns the opacity transfer function for image B.- Parameters:
channel- DOCUMENT ME!- Returns:
- TransferFunction
-
getRGB_OpacityA
Deprecated.Returns the opacity transfer function via the ModelRGB object for image B.- Returns:
- 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
Deprecated.Returns the opacity transfer function via the ModelRGB object for image B.- Returns:
- 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
Deprecated.Sets the flags for the checkboxes.- Specified by:
itemStateChangedin interfaceItemListener- 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
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.
-