Class JPanelRenderMode_WM
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
gov.nih.mipav.view.renderer.WildMagic.Interface.JInterfaceBase
gov.nih.mipav.view.renderer.WildMagic.Interface.JPanelRenderMode_WM
- All Implemented Interfaces:
ActionListener,ItemListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,ChangeListener,RootPaneContainer,WindowConstants
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class gov.nih.mipav.view.renderer.WildMagic.Interface.JInterfaceBase
JInterfaceBase.CancelListener, JInterfaceBase.DrawingPanel, JInterfaceBase.OkColorListenerNested classes/interfaces inherited from class javax.swing.JDialog
JDialog.AccessibleJDialogNested classes/interfaces inherited from class java.awt.Dialog
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityTypeNested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.TypeNested 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 JLabelcamera rotation degree labelprivate JSlidercamera rotation degree sliderprivate floatIPD number.protected JCheckBoxTurn display 3D Slices on/offprotected JCheckBoxTurn display 3D TriMesh Surface on/offprotected JCheckBoxTurn display VOIs on/offprotected JCheckBoxTurn display volume on/offprotected JButtonButton for extracting a TriMesh surface based on the ray-cast volume rendered in Surface mode(package private) JTextFieldText box for setting the intensity level for extraction.private JSliderOpacity slider.private JComboBoxThe combo box for the polygon mode to display.protected JSliderVolume alpha-blending slider.protected JSliderVolume number of samples slider when mouse Dragged.protected JSliderVolume number of samples slider when mouse released.private JLabelLabel that gives current value of slider.private JSliderMouse rotation speed slider.private JSliderMouse translation speed slider.private JSliderMouse zoom speed slider.protected JRadioButtonRadio button of the COMPOSITE mode option.protected JRadioButtonRadio button of the Custom blend mode option.protected JRadioButtonRadio button of the MIP mode option.protected JCheckBoxCheckbox for the Multi-histo mode option.protected JRadioButtonRadio button of the SURFACE mode option.protected JRadioButtonRadio button of the SURFACE mode option.protected JRadioButtonRadio button of the surface render composite mode.protected JRadioButtonRadio button of the XRAY mode option.private JScrollPaneThe scroll pane holding the panel content.private static final longprotected FontFonts, same asMipavUtil.font12andMipavUtil.font12B.protected FontFonts, same asMipavUtil.font12andMipavUtil.font12B.Fields inherited from class gov.nih.mipav.view.renderer.WildMagic.Interface.JInterfaceBase
cancelButton, colorChooser, m_kVolumeViewer, mainPanel, OKButton, rayBasedRenderWMFields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabledFields inherited from class java.awt.Dialog
DEFAULT_MODALITY_TYPEFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) static TitledBorderbuildTitledBorder(String title) Builds a titled border with the given title, an etched border, and the proper font and color.voidintGet the blender slider valueintintbooleanintintGet the slice check box.intGet the surface check box.Get the VOI check box.Get the volume display checkbox.private voidinit()Initializes the GUI components.voiditemStateChanged(ItemEvent event) voidresizePanel(int panelWidth, int frameHeight) Resizing the control panel with ViewJFrameVolumeView's frame width and height.voidsetBlendSliderValue(int value) Get the blender slider valuevoidsetDisplaySlicesCheck(boolean flag) Set the tri-planar slices check box to true of falsevoidsetDisplaySurfaceCheck(boolean flag) Set the surface check box to true of falsevoidsetDisplayVOICheck(boolean flag) Set the VOI check box to true of falsevoidsetDisplayVolumeCheck(boolean flag) Set the volume check box to true of falsevoidsetIntensityLevel(int value) voidsetMovingSliderValue(int value) voidsetMultiHistoEnabled(boolean value) voidsetReleasedSliderValue(int value) voidsetRenderMode(int which) voidsetStereo(int which) voidstateChanged(ChangeEvent event) Methods inherited from class gov.nih.mipav.view.renderer.WildMagic.Interface.JInterfaceBase
buildCancelButton, buildOKButton, getMainPanel, setButtonColor, updateColorButtonMethods 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, updateMethods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBackMethods 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, toFrontMethods 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, validateTreeMethods 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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
m_kIntensityTF
JTextField m_kIntensityTFText box for setting the intensity level for extraction. -
m_kDisplayVolumeCheck
Turn display volume on/off -
m_kDisplaySlicesCheck
Turn display 3D Slices on/off -
m_kDisplaySurfaceCheck
Turn display 3D TriMesh Surface on/off -
m_kDisplayVOICheck
Turn display VOIs on/off -
m_kStereoModeCB
The combo box for the polygon mode to display. -
radioCOMPOSITE
Radio button of the COMPOSITE mode option. -
radioMIP
Radio button of the MIP mode option. -
radioCustom
Radio button of the Custom blend mode option. -
radioSURFACE
Radio button of the SURFACE mode option. -
radioSURFACEFAST
Radio button of the SURFACE mode option. -
radioSurrenderCOMPOSITE
Radio button of the surface render composite mode. -
radioXRAY
Radio button of the XRAY mode option. -
radioMULTIHISTO
Checkbox for the Multi-histo mode option. -
serif12
Fonts, same asMipavUtil.font12andMipavUtil.font12B. -
serif12B
Fonts, same asMipavUtil.font12andMipavUtil.font12B. -
m_kVolumeBlendSlider
Volume alpha-blending slider. -
m_kVolumeSamplesSliderMouseReleased
Volume number of samples slider when mouse released. -
m_kVolumeSamplesSliderMouseDragged
Volume number of samples slider when mouse Dragged. -
m_kExtractTriMesh
Button for extracting a TriMesh surface based on the ray-cast volume rendered in Surface mode -
scroller
The scroll pane holding the panel content. Useful when the screen is small. -
mkCurrent
Label that gives current value of slider. -
m_fIPD
private float m_fIPDIPD number. -
m_kIPDSlider
Opacity slider. -
mouseTranslationSpeedSlider
Mouse translation speed slider. -
mouseRotationSpeedSlider
Mouse rotation speed slider. -
mouseZoomSpeedSlider
Mouse zoom speed slider. -
cameraRotationDegreeSlider
camera rotation degree slider -
cameraRotationDegreeLabel
camera rotation degree label
-
-
Constructor Details
-
JPanelRenderMode_WM
Constructor.- Parameters:
kVolumeViewer- parent frame.
-
-
Method Details
-
buildTitledBorder
Builds a titled border with the given title, an etched border, and the proper font and color. Changed to public static member so that it can be used for other JPanels not inherited from this base class.- Parameters:
title- Title of the border- Returns:
- The titled border.
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
disposeLocal
public void disposeLocal() -
getBlendSliderValue
public int getBlendSliderValue()Get the blender slider value- Returns:
- slider value.
-
getIntensityLevel
public int getIntensityLevel() -
getMovingSliderValue
public int getMovingSliderValue() -
getMultiHistoEnabled
public boolean getMultiHistoEnabled() -
getReleasedSliderValue
public int getReleasedSliderValue() -
getRenderMode
public int getRenderMode() -
getSlicesCheck
Get the slice check box.- Returns:
- true or false
-
getStereo
public int getStereo() -
getSurfaceCheck
Get the surface check box.- Returns:
- true or false
-
getVOICheck
Get the VOI check box.- Returns:
- true or false
-
getVolumeCheck
Get the volume display checkbox.- Returns:
- true or false
-
itemStateChanged
- Specified by:
itemStateChangedin interfaceItemListener
-
resizePanel
public void resizePanel(int panelWidth, int frameHeight) Resizing the control panel with ViewJFrameVolumeView's frame width and height.- Parameters:
panelWidth- int widthframeHeight- int height
-
setBlendSliderValue
public void setBlendSliderValue(int value) Get the blender slider value -
setDisplaySlicesCheck
public void setDisplaySlicesCheck(boolean flag) Set the tri-planar slices check box to true of false- Parameters:
flag- true or false
-
setDisplaySurfaceCheck
public void setDisplaySurfaceCheck(boolean flag) Set the surface check box to true of false- Parameters:
flag- true or false
-
setDisplayVOICheck
public void setDisplayVOICheck(boolean flag) Set the VOI check box to true of false- Parameters:
flag- true or false
-
setDisplayVolumeCheck
public void setDisplayVolumeCheck(boolean flag) Set the volume check box to true of false- Parameters:
flag- true or false
-
setIntensityLevel
public void setIntensityLevel(int value) -
setMovingSliderValue
public void setMovingSliderValue(int value) -
setMultiHistoEnabled
public void setMultiHistoEnabled(boolean value) -
setReleasedSliderValue
public void setReleasedSliderValue(int value) -
setRenderMode
public void setRenderMode(int which) -
setStereo
public void setStereo(int which) -
stateChanged
- Specified by:
stateChangedin interfaceChangeListener
-
init
private void init()Initializes the GUI components.
-