Class JPanelSlices_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.JPanelSlices_WM
- All Implemented Interfaces:
ActionListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,ChangeListener,RootPaneContainer,WindowConstants
Dialog to turn slices bounding box of surface renderer on and off, and to
change the color of the frame. This dialog also control the X, Y, Z slices
movements.
- 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 JPanelBounding box control panel.private JCheckBox[]Check box for turning bounding boxes on and off.Check boxes that turn the image plane on and off.Check boxes that turn the image plane on and off.Check boxes that turn the image plane on and off.private JButton[]Color button for changing bounding box color.private JPanelMain panel for sliders.private JLabelLabels next to sliders.private JLabelLabels next to sliders.private JLabelLabels beneath sliders.private JLabelLabels beneath sliders.private JLabelLabels beneath sliders.private JLabelLabels next to sliders.private JLabelLabels beneath sliders.private JLabelLabels beneath sliders.private JLabelLabels beneath sliders.private JLabelLabels next to sliders.private JLabelLabels beneath sliders.private JLabelLabels beneath sliders.private JLabelLabels beneath sliders.private JPanelOpacity control panel.private JLabelThe opacity slider label.private JLabelThe opacity slider label.private JLabelThe opacity slider label.private JLabel[]The labels below the opacity slider.private JLabel[]The labels below the opacity slider.private JLabel[]The labels below the opacity slider.private JSliderOpacity slider, not enabled yet.private JSliderOpacity slider, not enabled yet.private JSliderOpacity slider, not enabled yet.private JScrollPaneThe scroll pane holding the panel content.private JInterfaceBase.DrawingPanelScroll panel that holding the all the control components.private static final longUse serialVersionUID for interoperability.boolean[]Flags indicating if the image slices are on or off.Sliders for the image planes.Sliders for the image planes.Sliders for the image planes.Sliders for the image planes.private intx, y, z and time dimension values.private JTextFieldText fields that display the slice number next to the sliders.private JTextFieldText fields that display the slice number next to the sliders.private JTextFieldText fields that display the slice number next to the sliders.private JTextFieldText fields that display the slice number next to the sliders.intWhich time slice is currently displayed.private intx, y, z and time dimension values.private intx, y, z opacity slider values.private intProbe x, y, z position.intWhich slice is currently displayed in the ZY plane.private intx, y, z and time dimension values.private intx, y, z opacity slider values.private intProbe x, y, z position.intWhich slice is currently displayed in the XZ plane.private intx, y, z and time dimension values.private intx, y, z opacity slider values.private intProbe x, y, z position.intWhich slice is currently displayed in the XY plane.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) Changes color of slices box frame and button if color button was pressed; turns bounding box on and off if checkbox was pressed; and closes dialog if "Close" button was pressed.private voidaddControlPanel(Component c, GridBagConstraints gbc, int x, int y, int w, int h) Helper method that adds components to the control panel for the grid bag layout.private voidaddOpacityControlPanel(Component c, GridBagConstraints gbc, int x, int y, int w, int h) Helper method that adds components to the control panel for the grid bag layout.private voidBuild the boudning box for X, Y, Z slices.voidBuilds panel that has 3 sliders for the 3 planes shown, 3 checkboxes for showing the planes, 3 text boxes for the current values of the sliders, and a fourth slider and text box for the time dimension, if necessary.voidBuilds panel for opacity control change on the triplanar X, Y, Z.private voidBuilds the time (4D) slider.private JLabelcreateLabel(String title) Creates a label in the proper font and color.voidDispose memory.getBoxX()Return the checkbox of X slider.getBoxY()Return the checkbox of Y slider.getBoxZ()Return the checkbox of Z slider.WildMagic.LibFoundation.Mathematics.Vector3fGets the three slider positions, representing the center point of the three orthogonal planes.getColor(int i) intgetOpacity(int i) Return the X opacity slider.Return the Y opacity slider.Return the Z opacity slider.booleangetShowBound(int i) booleangetShowSlice(int i) intgetSlice(int orientation) Get the current slider value for the slider that matches the orientation input parameter.Return the X slider.Return the Y slider.Return the Z slider.booleangetVisible(int orientation) slice slider visible or not.intGet the x opacity slider value.intGet the probe x coordinate.intGet the X slider value.intGet the y opacity slider value.intGet the probe y coordinate.intGet the y slider value.intGet the z opacity slider value.intGet the probe z coordinate.intGet the z slider value.voidinit()Initializes GUI components.voidresizePanel(int panelWidth, int frameHeight) Resizing the control panel with ViewJFrameVolumeView's frame width and height.voidsetButtonColor(JButton _button, Color _color) Set the color of the button.voidsetCenter(int x, int y, int z) Sets the three slider positions, based on the position of the three orthogonal planes: AXIAL, CORONAL, and SAGITTAL.voidvoidsetOpacity(int i, int value) voidsetOpacitySliderXEnabled(boolean flag) Set the opacity slider X with given boolean value.voidsetOpacitySliderYEnabled(boolean flag) Set the opacity slider Y with given boolean value.voidsetOpacitySliderZEnabled(boolean flag) Set the opacity slider Z with given boolean value.voidsetShowBound(int i, boolean value) voidsetShowSlice(int i, boolean value) voidsetXProbePos(int _xProbe) Set probe x coordinate.private voidsetXSlicePos(int _xSlice) Set the current x slider move position.voidsetXSliderEnabled(boolean flag) Sets the x slider and the labels beside and beneath it to the state given byflag.voidsetYProbePos(int _yProbe) Set probe y coordinate.private voidsetYSlicePos(int _ySlice) Set the current y slider move position.voidsetYSliderEnabled(boolean flag) Sets the y slider and the labels beside and beneath it to the state given byflag.voidsetZProbePos(int _zProbe) Set probe z coordinate.private voidsetZSlicePos(int _zSlice) Set the current z slider move position.voidsetZSliderEnabled(boolean flag) Sets the z slider and the labels beside and beneath it to the state given byflag.voidSets how the image plane should be displayed depending on value of slider.Methods inherited from class gov.nih.mipav.view.renderer.WildMagic.Interface.JInterfaceBase
buildCancelButton, buildOKButton, buildTitledBorder, getMainPanel, 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 serialVersionUIDUse serialVersionUID for interoperability.- See Also:
-
boxX
Check boxes that turn the image plane on and off. -
boxY
Check boxes that turn the image plane on and off. -
boxZ
Check boxes that turn the image plane on and off. -
sliderX
Sliders for the image planes. -
sliderY
Sliders for the image planes. -
sliderZ
Sliders for the image planes. -
sliderT
Sliders for the image planes. -
tSlice
public int tSliceWhich time slice is currently displayed. -
xSlice
public int xSliceWhich slice is currently displayed in the ZY plane. -
sliceVisible
public boolean[] sliceVisibleFlags indicating if the image slices are on or off. -
ySlice
public int ySliceWhich slice is currently displayed in the XZ plane. -
zSlice
public int zSliceWhich slice is currently displayed in the XY plane. -
boundingBoxPanel
Bounding box control panel. -
boundingCheck
Check box for turning bounding boxes on and off. -
colorButton
Color button for changing bounding box color. -
controlPanel
Main panel for sliders. -
labelX
Labels next to sliders. -
labelY
Labels next to sliders. -
labelZ
Labels next to sliders. -
labelT
Labels next to sliders. -
labelX1
Labels beneath sliders. -
labelXMid
Labels beneath sliders. -
labelXEnd
Labels beneath sliders. -
labelY1
Labels beneath sliders. -
labelYMid
Labels beneath sliders. -
labelYEnd
Labels beneath sliders. -
labelZ1
Labels beneath sliders. -
labelZMid
Labels beneath sliders. -
labelZEnd
Labels beneath sliders. -
opacityControlPanel
Opacity control panel. -
opacityLabelX
The opacity slider label. -
opacityLabelY
The opacity slider label. -
opacityLabelZ
The opacity slider label. -
opacitySliderLabelsX
The labels below the opacity slider. -
opacitySliderLabelsY
The labels below the opacity slider. -
opacitySliderLabelsZ
The labels below the opacity slider. -
opacitySliderX
Opacity slider, not enabled yet. -
opacitySliderY
Opacity slider, not enabled yet. -
opacitySliderZ
Opacity slider, not enabled yet. -
scroller
The scroll pane holding the panel content. Useful when the screen is small. -
scrollPanel
Scroll panel that holding the all the control components. -
textX
Text fields that display the slice number next to the sliders. -
textY
Text fields that display the slice number next to the sliders. -
textZ
Text fields that display the slice number next to the sliders. -
textT
Text fields that display the slice number next to the sliders. -
xDim
private int xDimx, y, z and time dimension values. -
yDim
private int yDimx, y, z and time dimension values. -
zDim
private int zDimx, y, z and time dimension values. -
tDim
private int tDimx, y, z and time dimension values. -
xOpacitySlice
private int xOpacitySlicex, y, z opacity slider values. -
yOpacitySlice
private int yOpacitySlicex, y, z opacity slider values. -
zOpacitySlice
private int zOpacitySlicex, y, z opacity slider values. -
xProbe
private int xProbeProbe x, y, z position. -
yProbe
private int yProbeProbe x, y, z position. -
zProbe
private int zProbeProbe x, y, z position.
-
-
Constructor Details
-
JPanelSlices_WM
Constructor.- Parameters:
kVolumeViewer- parent frame.
-
-
Method Details
-
actionPerformed
Changes color of slices box frame and button if color button was pressed; turns bounding box on and off if checkbox was pressed; and closes dialog if "Close" button was pressed.- Specified by:
actionPerformedin interfaceActionListener- Parameters:
event- Event that triggered function.
-
buildControlPanel
public void buildControlPanel()Builds panel that has 3 sliders for the 3 planes shown, 3 checkboxes for showing the planes, 3 text boxes for the current values of the sliders, and a fourth slider and text box for the time dimension, if necessary. -
buildOpacityPanel
public void buildOpacityPanel()Builds panel for opacity control change on the triplanar X, Y, Z. -
disposeLocal
public void disposeLocal()Dispose memory. -
getBoxX
Return the checkbox of X slider.- Returns:
- boxX Get X slider check box.
-
getBoxY
Return the checkbox of Y slider.- Returns:
- boxY Get Y slider check box.
-
getBoxZ
Return the checkbox of Z slider.- Returns:
- boxZ Get Z slider check box.
-
getCenter
public WildMagic.LibFoundation.Mathematics.Vector3f getCenter()Gets the three slider positions, representing the center point of the three orthogonal planes. The center point is translated from local ModelCoordinates into FileCoordinates.- Returns:
- , the center of the three orthogonal planes (the three slider positions) in FileCoordinates.
-
getOpacity
public int getOpacity(int i) -
setOpacity
public void setOpacity(int i, int value) -
getColor
-
setColor
-
getShowSlice
public boolean getShowSlice(int i) -
setShowSlice
public void setShowSlice(int i, boolean value) -
getShowBound
public boolean getShowBound(int i) -
setShowBound
public void setShowBound(int i, boolean value) -
getOpacitySliderX
Return the X opacity slider.- Returns:
- opcitySliderX Opacity slider X.
-
getOpacitySliderY
Return the Y opacity slider.- Returns:
- opcitySliderY Opacity slider Y.
-
getOpacitySliderZ
Return the Z opacity slider.- Returns:
- opcitySliderZ Opacity slider Z.
-
getSlice
public int getSlice(int orientation) Get the current slider value for the slider that matches the orientation input parameter.- Parameters:
orientation- either FileInfoBase.AXIAL, FileInfoBase.CORONAL, FileInfoBase.SAGITTAL, or FileInfoBase.UNKNOWN_ORIENT.- Returns:
- The slider position for the given orientation is returned. *
-
getSliderX
Return the X slider.- Returns:
- sliderX X slider.
-
getSliderY
Return the Y slider.- Returns:
- sliderY Y slider.
-
getSliderZ
Return the Z slider.- Returns:
- sliderZ Z slider.
-
getVisible
public boolean getVisible(int orientation) slice slider visible or not.- Returns:
- sliceVisible if
truevisible, otherwise invisible.
-
getXOpacitySlice
public int getXOpacitySlice()Get the x opacity slider value.- Returns:
- xOpacityslice X opacity slider value.
-
getXProbePos
public int getXProbePos()Get the probe x coordinate.- Returns:
- xProbe probe x position
-
getXSlice
public int getXSlice()Get the X slider value.- Returns:
- xSlice X slider value.
-
getYOpacitySlice
public int getYOpacitySlice()Get the y opacity slider value.- Returns:
- yOpacityslice Y opacity slider value.
-
getYProbePos
public int getYProbePos()Get the probe y coordinate.- Returns:
- yProbe probe y position
-
getYSlice
public int getYSlice()Get the y slider value.- Returns:
- ySlice Y slider value.
-
getZOpacitySlice
public int getZOpacitySlice()Get the z opacity slider value.- Returns:
- zOpacityslice Z opacity slider value.
-
getZProbePos
public int getZProbePos()Get the probe z coordinate.- Returns:
- zProbe probe z position
-
getZSlice
public int getZSlice()Get the z slider value.- Returns:
- zSlice Z slider value.
-
init
public void init()Initializes GUI components. -
resizePanel
public void resizePanel(int panelWidth, int frameHeight) Resizing the control panel with ViewJFrameVolumeView's frame width and height.- Parameters:
panelWidth- DOCUMENT ME!frameHeight- DOCUMENT ME!
-
setButtonColor
Description copied from class:JInterfaceBaseSet the color of the button. Derived classes may also perform other functions.- Overrides:
setButtonColorin classJInterfaceBase- Parameters:
_button- button._color- color.
-
setCenter
public void setCenter(int x, int y, int z) Sets the three slider positions, based on the position of the three orthogonal planes: AXIAL, CORONAL, and SAGITTAL.- Parameters:
x- center x-position in FileCoordinatesy- center y-position in FileCoordinatesz- center z-position in FileCoordinates
-
setOpacitySliderXEnabled
public void setOpacitySliderXEnabled(boolean flag) Set the opacity slider X with given boolean value.- Parameters:
flag- indicate opacity slider is set or not
-
setOpacitySliderYEnabled
public void setOpacitySliderYEnabled(boolean flag) Set the opacity slider Y with given boolean value.- Parameters:
flag- indicate opacity slider is set or not
-
setOpacitySliderZEnabled
public void setOpacitySliderZEnabled(boolean flag) Set the opacity slider Z with given boolean value.- Parameters:
flag- indicate opacity slider is set or not
-
setXProbePos
public void setXProbePos(int _xProbe) Set probe x coordinate.- Parameters:
_xProbe- probe x position
-
setXSliderEnabled
public void setXSliderEnabled(boolean flag) Sets the x slider and the labels beside and beneath it to the state given byflag.- Parameters:
flag- iftrueenable, otherwise disable.
-
setYProbePos
public void setYProbePos(int _yProbe) Set probe y coordinate.- Parameters:
_yProbe- probe y position
-
setYSliderEnabled
public void setYSliderEnabled(boolean flag) Sets the y slider and the labels beside and beneath it to the state given byflag.- Parameters:
flag- iftrueenable, otherwise disable.
-
setZProbePos
public void setZProbePos(int _zProbe) Set probe z coordinate.- Parameters:
_zProbe- probe z position
-
setZSliderEnabled
public void setZSliderEnabled(boolean flag) Sets the z slider and the labels beside and beneath it to the state given byflag.- Parameters:
flag- iftrueenable, otherwise disable.
-
stateChanged
Sets how the image plane should be displayed depending on value of slider.- Specified by:
stateChangedin interfaceChangeListener- Parameters:
e- Event that triggered this function.
-
addControlPanel
Helper method that adds components to the control panel for the grid bag layout.- Parameters:
c- Component added to the control panel.gbc- GridBagConstraints of added component.x- Gridx locationy- Gridy locationw- Gridwidthh- Gridheight
-
addOpacityControlPanel
private void addOpacityControlPanel(Component c, GridBagConstraints gbc, int x, int y, int w, int h) Helper method that adds components to the control panel for the grid bag layout.- Parameters:
c- Component added to the control panel.gbc- GridBagConstraints of added component.x- Gridx locationy- Gridy locationw- Gridwidthh- Gridheight
-
buildBoundingBox
private void buildBoundingBox()Build the boudning box for X, Y, Z slices. -
buildTimeSlider
private void buildTimeSlider()Builds the time (4D) slider. No check box, because there is no plane to turn off. -
createLabel
Creates a label in the proper font and color.- Parameters:
title- The title of the label.- Returns:
- The new label.
-
setXSlicePos
private void setXSlicePos(int _xSlice) Set the current x slider move position.- Parameters:
_xSlice- x slider position
-
setYSlicePos
private void setYSlicePos(int _ySlice) Set the current y slider move position.- Parameters:
_ySlice- y slider position
-
setZSlicePos
private void setZSlicePos(int _zSlice) Set the current z slider move position.- Parameters:
_zSlice- z slider position
-