Package gov.nih.mipav.view.renderer.J3D
Class JPanelClip
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.JPanelClip
- All Implemented Interfaces:
com.sun.j3d.utils.behaviors.mouse.MouseBehaviorCallback,ActionListener,FocusListener,ItemListener,KeyListener,MouseListener,MouseMotionListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,ChangeListener
public class JPanelClip
extends JPanelRendererJ3D
implements ChangeListener, MouseListener, com.sun.j3d.utils.behaviors.mouse.MouseBehaviorCallback, MouseMotionListener
Title: JPanelClip
Description: Clip panel control of the surface renderer. The clipping control includes x, y, z clipping sliders; the arbitrary and static eye clipping sliders.
- Author:
- Ruida Cheng
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classDoes nothing.(package private) classWrapper in order to hold the control panel layout in the JScrollPane.(package private) classPick up the selected color and call method to change the VOI color.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 javax.vecmath.Vector4f[]Arbitrary clipping plane four corners points.private com.sun.j3d.utils.behaviors.mouse.MouseRotateMouse Rotate behavior of the arbitrary clipping plane.private javax.media.j3d.TransformGroupTranform group for arbitrary clipping plane.private javax.media.j3d.Transform3DTransform3D group for clipSliceA frame box and ModelClip arbitrary clipping plane.private javax.media.j3d.SwitchArbitrary clipping plane switch group.private intWhich arbitray clipping slice is currently displayed.private floatValue attribute for the roation axis.private floatValue attribute for the roation axis.private floatValue attribute for the roation axis.private floatValue attribute for the roation axis.private javax.media.j3d.BranchGroupThe BranchGroup to which the arbitrary behaviors are attached and rotate.private JCheckBoxArbitrary and static clipping plane check box.private JCheckBoxArbitrary and static clipping plane check box.private JCheckBoxArbitrary and static clipping plane check box.private JCheckBoxCheck box to turn the clipping plane frame on and off.private JCheckBoxX,Y,Z inverse clipping plane check box.private JCheckBoxCheck box to turn the clipping plane frame on and off.private JCheckBoxX,Y,Z inverse clipping plane check box.private JCheckBoxCheck box to turn the clipping plane frame on and off.private JCheckBoxX,Y,Z inverse clipping plane check box.private JCheckBoxStatic and static inverse, arbitrary clipping plane check box.private JCheckBoxStatic and static inverse, arbitrary clipping plane check box.private JCheckBoxStatic and static inverse, arbitrary clipping plane check box.private JCheckBoxCheck boxes that turn the image plane and the sliders on and off.private JCheckBoxCheck boxes that turn the image plane and the sliders on and off.private JCheckBoxCheck boxes that turn the image plane and the sliders on and off.private JCheckBoxCheck boxes that turn the image plane and the sliders on and off.private JCheckBoxCheck boxes that turn the image plane and the sliders on and off.private JCheckBoxCheck boxes that turn the image plane and the sliders on and off.private intCounters show the event number in the mouse recorder.private MouseEventVectorMouse event vector that record the clipping plane sliders changes.private ViewJComponentBoxSliceArbitrary clipping plane yellow boundary indicator box.private javax.media.j3d.BranchGroupArbitrary clipping branch group.private ViewJComponentBoxSliceArbitrary clipping plane yellow boundary indicator box.private javax.media.j3d.BranchGroupArbitrary clipping branch group.private ViewJComponentBoxSliceStatic clipping plane boundary box.private ViewJComponentBoxSliceStatic clipping plane boundary box.private ViewJComponentBoxSliceThe bounding box frame around the clipping planes.private ViewJComponentBoxSliceX, Y, Z inverse clipping slice boundary box.private ViewJComponentBoxSliceThe bounding box frame around the clipping planes.private ViewJComponentBoxSliceX, Y, Z inverse clipping slice boundary box.private ViewJComponentBoxSliceThe bounding box frame around the clipping planes.private ViewJComponentBoxSliceX, Y, Z inverse clipping slice boundary box.private JSliderStatic, static inverse and arbitrary clipping plane boundary box.private JSliderStatic, static inverse and arbitrary clipping plane boundary box.private JSliderSliders for the image planes.private JSliderSliders for the image planes.private JSliderSliders for the image planes.private JButtonColor button for the arbitrary clipping plane frame.private JButtonColor button for the static clipping plane frame.private JButtonColor button for the static clipping plane frame.private JButtonColor button for X clipping plane frame.private JButtonColor button for X clipping plane frame.private JButtonColor button for Y clipping plane frame.private JButtonColor button for Y clipping plane frame.private JButtonColor button for Z clipping plane frame.private JButtonColor button for Z clipping plane frame.private ViewJColorChooserColor chooser dialog.(package private) boolean[]Enable flags for the 6 ( X, Y, Z and inverse ) clipping planes.(package private) boolean[]Enable flags for the arbitrary clipping planes.(package private) boolean[]Enable flags for the static clipping planes.private javax.vecmath.Vector4dVector4D clipping equation of each clipping plane.private javax.vecmath.Vector4d[]Vetor holding the clipping plane equations.private javax.vecmath.Vector4d[]Vetor holding the clipping plane equations.private javax.vecmath.Vector4d[]Vetor holding the clipping plane equations.private javax.vecmath.Vector4dVector4D clipping equation of each clipping plane.private javax.vecmath.Vector4dVector4D clipping equation of each clipping plane.private javax.vecmath.Vector4dVector4D clipping equation of each clipping plane.private javax.vecmath.Vector4dVector4D clipping equation of each clipping plane.private javax.vecmath.Vector4dVector4D clipping equation of each clipping plane.private javax.vecmath.Vector4dVector4D clipping equation of each clipping plane.private JButtonExtract arbitrary cliping plane button.private JButtonExtract static eye cliping plane button.private javax.vecmath.Point3f[]intersectioin points coordinate.private int12 possible intersection points.private booleanFlag to indicate 6 plane clipping is active.private booleanArbitrary clipping plane frame being picked or not.private booleanFirst time to build the clipping plane tree.private booleanFlag to indicate StateChangeEvent invoked.private booleanFlag to indicate tranformChanged event invoked.private JLabelStatic cliiping slider labels.private JLabelArbitrary clipping slider labels.private JLabelArbitrary clipping slider labels.private JLabelArbitrary clipping slider labels.private JLabelStatic cliiping slider labels.private JLabelStatic clipping plane labels.private JLabelStatic cliiping slider labels.private JLabelStatic inverse clipping plane labels.private JLabelStatic inverse clipping plane labels.private JLabelStatic inverse clipping plane labels.private JLabelStatic clipping plane labels.private JLabelStatic clipping plane labels.private JLabelSliders labels.private JLabelSlider tick labels.private JLabelX clipping slider labels.private JLabelSliders labels.private JLabelSlider tick labels.private JLabelX clipping slider labels.private JLabelSlider tick labels.private JLabelX clipping slider labels.private JLabelSliders labels.private JLabelY clipping slider labels.private JLabelY inverse clipping slider labels.private JLabelSliders labels.private JLabelY clipping slider labels.private JLabelY inverse clipping slider labels.private JLabelY clipping slider labels.private JLabelY inverse clipping slider labels.private JLabelSliders labels.private JLabelZ clipping slider labels.private JLabelZ clipping slider labels.private JLabelSliders labels.private JLabelZ clipping slider labels.private JLabelZ clipping slider labels.private JLabelZ clipping slider labels.private JLabelZ clipping slider labels.private int[]Backup of the data for undo:.private int[]ImageB backup buffer.private javax.media.j3d.BranchGroup[]Parent of each light bulb.private javax.media.j3d.Material[]Material properties for each light bulb.private com.sun.j3d.utils.geometry.Sphere[]Shapes representing light bulbs.private javax.media.j3d.TransformGroup[]Parent transform group.private javax.media.j3d.BranchGroupParent of all the light bulbs.private floatThe largest of xBox,yBox,and zBox.private intThe largest dimension of xDim, yDim and zDim.private javax.media.j3d.ModelClipGlobal model clip object.private javax.media.j3d.ModelClipGlobal model clip object.private javax.media.j3d.BranchGroupBranch group of the arbitrary clipping plane.private javax.media.j3d.BranchGroupBranch group of the arbitrary clipping plane.private javax.media.j3d.TransformGroupModelClip arbitrary TransformGroup.private javax.media.j3d.Transform3DTransform3D group for clipSliceA frame box and ModelClip arbitrary clipping plane.private javax.media.j3d.BranchGroupBranch group of the 6 clipping planes.private javax.media.j3d.BranchGroupBranch group of the arbitrary clipping plane.private javax.media.j3d.ModelClipGlobal model clip object.private javax.media.j3d.BranchGroupBranch group of the static clipping plane.private javax.media.j3d.BranchGroupArbitrary clipping branch group.private javax.media.j3d.BranchGrouproot of all the clipping slices branch group.private javax.media.j3d.BranchGroupStatic clipping branch group.private javax.media.j3d.BranchGroupStatic clipping branch group.private javax.media.j3d.BranchGroupParent for each individual clip slices branch group, childen of objClipSlices_BG.private javax.media.j3d.BranchGroupParent of the -x, -y, -z clip slices branchgroup.private javax.media.j3d.BranchGroupParent for each individual clip slices branch group, childen of objClipSlices_BG.private javax.media.j3d.BranchGroupParent of the -x, -y, -z clip slices branchgroup.private javax.media.j3d.BranchGroupParent for each individual clip slices branch group, childen of objClipSlices_BG.private javax.media.j3d.BranchGroupParent of the -x, -y, -z clip slices branchgroup.private JPanelArbitrary and static control panels.private JPanelArbitrary and static control panels.private JPanelArbitrary and static control panels.private JPanelDeclare each clipping plane control panel.private JPanelDeclare each clipping plane control panel.private JPanelDeclare each clipping plane control panel.private JPanelDeclare each clipping plane control panel.private JPanelDeclare each clipping plane control panel.private JPanelDeclare each clipping plane control panel.private floatArbitrary clipping plane expanding ratio.private booleanFlag indicates whether to record the clip event name.private javax.vecmath.AxisAngle4fRotation axis to sync up the action for both ModelClip arbitrary clipping plane and the clipSliceA frame box transformGroup.private intCounters show the event number in the mouse recorder.private MouseEventVectormouse rotation event vector for the arbitrary clipping plane.private JScrollPaneThe scroll pane holding the panel content.private JPanelClip.DrawingPanelScroll panel that holding all the control components.private static final longUse serialVersionUID for interoperability.private JSliderStatic, static inverse and arbitrary clipping plane boundary box.private JSliderSliders for the image planes.private JSliderSliders for the image planes.private JSliderSliders for the image planes.private intRecord the current static clipping slice number.private intRecord the current static clipping slice number.private JTabbedPaneTabbed Panel that hold the each clipping planes control box.private JTextFieldStatic and arbitrary text field.private JTextFieldStatic and arbitrary text field.private JTextFieldStatic and arbitrary text field.private JTextFieldText fields that display the slice number when slider moves.private JTextFieldX, Y, Z inverse text field.private JTextFieldText fields that display the slice number when slider moves.private JTextFieldX, Y, Z inverse text field.private JTextFieldText fields that display the slice number when slider moves.private JTextFieldX, Y, Z inverse text field.private floatxBox, yBox, zBox from the parent scene.private intImage X, Y, Z dimension.private intWhich slice is currently displayed in the ZY plane.private intWhich slice is currently displayed in the ZY plane.private floatxBox, yBox, zBox from the parent scene.private intImage X, Y, Z dimension.private intWhich slice is currently displayed in the XZ plane.private intWhich slice is currently displayed in the XZ plane.private floatxBox, yBox, zBox from the parent scene.private intImage X, Y, Z dimension.private intWhich slice is currently displayed in the XY plane.private intWhich slice is currently displayed in the XY plane.Fields 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, WIDTHFields inherited from interface com.sun.j3d.utils.behaviors.mouse.MouseBehaviorCallback
ROTATE, TRANSLATE, ZOOM -
Constructor Summary
ConstructorsConstructorDescriptionJPanelClip(SurfaceRender parent, float xBox, float yBox, float zBox) 3D texture surface renderer clipping dialog control. -
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.voidAttach clipping plane branch group.voidAttach arbitrary clip slice bounding frame.voidAttach static clip slice bounding frame.voidAttach static inverse clip slice bounding frame.voidAttach X clip slice bounding frame.voidAttach X Invative clip slice bounding frame.voidAttach Y clip slice bounding frame.voidAttach Y Invative clip slice bounding frame.voidAttach Z clip slice bounding frame.voidAttach Z Invative clip slice bounding frame.private voidaddControlPanel(JPanel panel, 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.voidaddToModelClip(javax.media.j3d.BranchGroup root) Add a new branch group to model clip for clipping.protected voidbackupImage(ModelImage kImageA, ModelImage kImageB) Called by the TextureSculptor or VolumeSculptor objects.voidBuild cliping planes tree structure.voidBuild the arbitrary clipping slider control panel.voidBuild static clipping slider control panel.voidBuild static inverse clipping slider control panel.voidBuild x slider control panel.voidBuild x negative clipping slider control panel.voidBuild the y clipping slider control panel.voidBuild the y negative clipping slider control panel.voidBuild the z clipping slider control panel.voidBuild the z negative clipping slider control panel.voidMask the clipped volume region with image min intensity value.voidDisable the 6 clipping planes.voidDisable the arbitrary clipping.voidDisable clipping planes when dialog window closed.voidDisable arbitrary clipping planes.voidDisable the eye clipping plane.voidDisable the eye inverse clipping plane.voidDisplay the abitrary clipping plane corner points.voidDisplay the static(eye) clipping plane corner points.voiddispose()Dispose memory.private voiddrawSphere(int index, float x, float y, float z) Draw the red sphere with the given coordinate.voidenableClipArbiBehavior(boolean flag) Enable arbitrary clipping plane behavior.voidEnable the eye clipping plane.voidEnable the eye inverse clipping plane.final voidEulerToQuat(javax.vecmath.Vector3d v, javax.vecmath.Quat4d q) Transform Euler angle to quaterion.WildMagic.LibFoundation.Mathematics.Vector3f[]Get the arbitrary clipping plane four corners points.booleanReturn check box arbitrary selection value.floatGet rotation axis alpha value.floatgetAxisX()Get rotation axis X value.floatgetAxisY()Get rotation axis Y value.floatgetAxisZ()Get rotation axis Z value.floatGet the location of the negative X slice bound.floatGet the location of the positive X slice bound.floatGet the location of the negative Y slice bound.floatGet the location of the positive Y slice bound.floatGet the location of the negative Z slice bound.floatGet the location of the positive Z slice bound.Get the main control panel.intGet arbitray slider value.intGet x slider value.intGet x negative slider value.intGet y slider value.intGet y negative slider value.intGet z slider value.intGet z negative slider value.Get arbitrary slider.Get x slider.Get x negative slider.Get y slider.Get y negative slider.Get z slider.Get z negative slider.booleanReturn check box static inverse selection value.booleanReturn check box static selection value.booleanReturn check box X selection value.booleanReturn check box X negative selection value.booleanReturn check box Y selection value.booleanReturn check box Y negative selection value.booleanReturn check box Z selection value.booleanReturn check box Z negative selection value.voidHides the slice frame on arbitrary clipping plane slice.voidHides the static clipping plane box frame.voidHides the static inverset clipping plane box frame.voidHides the slice frame on clipping plane slice x.voidHides the slice frame on clipping plane slice -x.voidHides the slice frame on clipping plane slice y.voidHides the slice frame on clipping plane slice -y.voidHides the slice frame on clipping plane slice z.voidHides the slice frame on clipping plane slice -z.voidinit()Initializes GUI components.voidMove the arbitrary clipping bounding frame to initial position.voidMove the static clipping bounding frame to initial position.voidMove the static inverse clipping bounding frame to initial position.voidMove the X clipping bounding frame to initial position.voidMove the X Invative clipping bounding frame to initial position.voidMove the Y clipping bounding frame to initial position.voidMove the Y Nagative clipping bounding frame to initial position.voidMove the Z clipping bounding frame to initial position.voidMove the Z Invative clipping bounding frame to initial position.private voidInitialize the red sphere image scene graph structure.voidInvokes all the 6 clipping when 6 clipping checkbox is checked.booleanIndicate whether the 6 clipping plane is active or not.booleanisArbitraryClipping(javax.media.j3d.Shape3D pickeObject) Called by the JDialogSurface to find the current mouse event is from the arbitrary frame box moving or not.booleanReturn the flag for the arbitrary clipping plane frame being picked or not.booleanReturn whether the clipping planes tree branch being built the first time.voidmouseClicked(MouseEvent event) Unchanged.voidmouseDragged(MouseEvent event) If recording, adds this mouse event to the mouseEvents vector found at locationcurrent.voidmouseEntered(MouseEvent event) Unchanged.voidmouseExited(MouseEvent event) Unchanged.voidmouseMoved(MouseEvent event) Unchanged.voidmousePressed(MouseEvent event) Unchanged.voidmouseReleased(MouseEvent event) Used in MouseRecorder to stop one series of slide moves.voidQuatToEuler(javax.vecmath.Quat4d q1, javax.vecmath.Vector3d v) Transform a quaternion to euler.voidRemoves the clip slices.voidDetaches the slice frame on arbitrary clipping plane slice.voidremove the static clipping plane box frame.voidremove the static inverse clipping plane box frame.voidDetaches the slice frame on clipping plane slice x.voidDetaches the slice frame on clipping plane slice -x.voidDetaches the slice frame on clipping plane slice y.voidDetaches the slice frame on clipping plane slice -y.voidDetaches the slice frame on clipping plane slice z.voidDetaches the slice frame on clipping plane slice -z.voidremoveFromModelClip(javax.media.j3d.BranchGroup root) Remove the branch group passed in.voidresizePanel(int panelWidth, int frameHeight) Resizig the control panel with ViewJFrameVolumeView's frame width and height.voidSave the cropped image.voidsetArbiPlanePickable(boolean _picked) setGUI setup the flag of the arbitary clipping frame box.voidsetASliderEnabled(boolean flag) Sets the arbitray clip slider and the labels. state given byflag.protected voidsetBoxColor(JButton button, Color color) Calls the appropriate method in the parent frame.voidsetCheckBoxA(boolean isSelected) Set the slider arbitrary checkBox with the passed in value.voidsetCheckBoxStatic(boolean isSelected) Set the slider Static checkBox with the passed in value.voidsetCheckBoxStaticInv(boolean isSelected) Set the slider Static inverse checkBox with the passed in value.voidsetCheckBoxX(boolean isSelected) Set the slider X checkBox with the passed in value.voidsetCheckBoxXInv(boolean isSelected) Set the slider X inverse checkBox with the passed in value.voidsetCheckBoxY(boolean isSelected) Set the slider Y checkBox with the passed in value.voidsetCheckBoxYInv(boolean isSelected) Set the slider Y inverse checkBox with the passed in value.voidsetCheckBoxZ(boolean isSelected) Set the slider Z checkBox with the passed in value.voidsetCheckBoxZInv(boolean isSelected) Set the slider Z inverse checkBox with the passed in value.voidsetClipSliceAColor(Color color) Sets the color of the arbitrary clipping plane slice frame.voidsetClipSliceAwithRotate(float _axisX, float _axisY, float _axisZ, float _axisAngle) During mouse recorder diaplay, setup the rotatino axis for both arbiTG and mcArbiTG.voidsetClipSliceSColor(Color color) Sets the color of the static clipping plane slice frame.voidsetClipSliceSInvColor(Color color) Sets the color of the static inverse clipping plane slice frame.voidsetClipSliceXColor(Color color) Sets the color of the x clipping plane slice frame.voidsetClipSliceXInvColor(Color color) Sets the color of the -x clipping plane slice frame.voidsetClipSliceYColor(Color color) Sets the color of the y cliping plane slice frame.voidsetClipSliceYInvColor(Color color) Sets the color of the -y cliping plane slice frame.voidsetClipSliceZColor(Color color) Sets the color of the z clipping plane slice frame.voidsetClipSliceZInvColor(Color color) Sets the color of the -z clipping plane slice frame.voidsetStaticInvSliderEnabled(boolean flag) Sets the static inverse slider and the labels beside and beneath it to the state given byflag.voidsetStaticSliderEnabled(boolean flag) Sets the static slider and the labels beside and beneath it to the state given byflag.voidsetXSliderEnabled(boolean flag) Sets the x slider and the labels beside and beneath it to the state given byflag.voidsetXSliderInvEnabled(boolean flag) Sets the x slider and the labels beside and beneath it to the state given byflag.voidsetYSliderEnabled(boolean flag) Sets the y slider and the labels beside and beneath it to the state given byflag.voidsetYSliderInvEnabled(boolean flag) Sets the y slider and the labels beside and beneath it to the state given byflag.voidsetZSliderEnabled(boolean flag) Sets the z slider and the labels beside and beneath it to the state given byflag.voidsetZSliderInvEnabled(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.voidswapModelClipBG(boolean flag) Swap ModelClip Branch group between the 6 clipping plane and the arbitray clipping plane.private voidtransform(javax.vecmath.Vector4f vIn) Transform a point rotation inverse to the volume rotation.voidtransformChanged(int type, javax.media.j3d.Transform3D transform) Needed for this to implement MouseBehaviorCallback.voidundoCrop()Undo the crop of the volume.voidUpadate six clipping planes' plane equation.voidUpdate clipping planes.voidSets new frame around arbitrary clip plane slice based on the new position.voidupdateClipSliceAwithRotate(javax.media.j3d.Transform3D transform) Update arbitrary clip plane's transform.voidSets new frame around clip plane slice -z based on the new position.voidSets new frame around clip plane slice -z based on the new position.voidSets new frame around clip plane slice x based on the new position.voidSets new frame around clip plane slice -x based on the new position.voidSets new frame around clip plane slice y based on the new position.voidSets new frame around clip plane slice -y based on the new position.voidSets new frame around clip plane slice z based on the new position.voidSets new frame around clip plane slice -z based on the new position.private voidUpdate the volume render's clip plane with all new positions.voidAccessor that closing the mouse recorder window frame.Methods inherited from class gov.nih.mipav.view.renderer.J3D.JPanelRendererJ3D
disposeLocal, getSurfaceRender, setRayBasedRender, setSurfaceRenderMethods inherited from class gov.nih.mipav.view.renderer.JPanelRendererBase
buildApplyButton, buildCancelButton, buildCloseButton, buildHelpButton, buildOKButton, buildTitledBorder, finalize, focusGained, focusLost, isCancelled, itemStateChanged, keyPressed, keyReleased, keyTyped, makeString, 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.ItemListener
itemStateChangedMethods inherited from interface java.awt.event.KeyListener
keyPressed, keyReleased, keyTyped
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDUse serialVersionUID for interoperability.- See Also:
-
enables
boolean[] enablesEnable flags for the 6 ( X, Y, Z and inverse ) clipping planes. -
enablesArbi
boolean[] enablesArbiEnable flags for the arbitrary clipping planes. -
enablesStatic
boolean[] enablesStaticEnable flags for the static clipping planes. -
AclipPlanePts
private javax.vecmath.Vector4f[] AclipPlanePtsArbitrary clipping plane four corners points. -
arbiMouseRotateBehavior
private com.sun.j3d.utils.behaviors.mouse.MouseRotate arbiMouseRotateBehaviorMouse Rotate behavior of the arbitrary clipping plane. -
arbiTG
private javax.media.j3d.TransformGroup arbiTGTranform group for arbitrary clipping plane. -
arbiTrans3d
private javax.media.j3d.Transform3D arbiTrans3dTransform3D group for clipSliceA frame box and ModelClip arbitrary clipping plane. -
mcArbiTrans3D
private javax.media.j3d.Transform3D mcArbiTrans3DTransform3D group for clipSliceA frame box and ModelClip arbitrary clipping plane. -
arbitrary_SG
private javax.media.j3d.Switch arbitrary_SGArbitrary clipping plane switch group. -
aSlice
private int aSliceWhich arbitray clipping slice is currently displayed. -
axisX
private float axisXValue attribute for the roation axis. -
axisY
private float axisYValue attribute for the roation axis. -
axisZ
private float axisZValue attribute for the roation axis. -
axisAngle
private float axisAngleValue attribute for the roation axis. -
behaviorBG
private javax.media.j3d.BranchGroup behaviorBGThe BranchGroup to which the arbitrary behaviors are attached and rotate. -
boundingCheckA
Arbitrary and static clipping plane check box. -
boundingCheckStatic
Arbitrary and static clipping plane check box. -
boundingCheckStaticInv
Arbitrary and static clipping plane check box. -
boundingCheckX
Check box to turn the clipping plane frame on and off. -
boundingCheckY
Check box to turn the clipping plane frame on and off. -
boundingCheckZ
Check box to turn the clipping plane frame on and off. -
boundingCheckXInv
X,Y,Z inverse clipping plane check box. -
boundingCheckYInv
X,Y,Z inverse clipping plane check box. -
boundingCheckZInv
X,Y,Z inverse clipping plane check box. -
boxStatic
Static and static inverse, arbitrary clipping plane check box. -
boxStaticInv
Static and static inverse, arbitrary clipping plane check box. -
boxA
Static and static inverse, arbitrary clipping plane check box. -
boxX
Check boxes that turn the image plane and the sliders on and off. -
boxY
Check boxes that turn the image plane and the sliders on and off. -
boxZ
Check boxes that turn the image plane and the sliders on and off. -
boxXInv
Check boxes that turn the image plane and the sliders on and off. -
boxYInv
Check boxes that turn the image plane and the sliders on and off. -
boxZInv
Check boxes that turn the image plane and the sliders on and off. -
clipCount
private int clipCountCounters show the event number in the mouse recorder. -
rotationCount
private int rotationCountCounters show the event number in the mouse recorder. -
clipEvents
Mouse event vector that record the clipping plane sliders changes. -
clipSliceAIndicator
Arbitrary clipping plane yellow boundary indicator box. -
clipSliceA
Arbitrary clipping plane yellow boundary indicator box. -
clipSliceStatic
Static clipping plane boundary box. -
clipSliceStaticInv
Static clipping plane boundary box. -
clipSliceX
The bounding box frame around the clipping planes. -
clipSliceY
The bounding box frame around the clipping planes. -
clipSliceZ
The bounding box frame around the clipping planes. -
clipSliceXInv
X, Y, Z inverse clipping slice boundary box. -
clipSliceYInv
X, Y, Z inverse clipping slice boundary box. -
clipSliceZInv
X, Y, Z inverse clipping slice boundary box. -
clipSliderStatic
Static, static inverse and arbitrary clipping plane boundary box. -
clipSliderStaticInv
Static, static inverse and arbitrary clipping plane boundary box. -
sliderA
Static, static inverse and arbitrary clipping plane boundary box. -
clipSliderX
Sliders for the image planes. -
clipSliderY
Sliders for the image planes. -
clipSliderZ
Sliders for the image planes. -
sliderXInv
Sliders for the image planes. -
sliderYInv
Sliders for the image planes. -
sliderZInv
Sliders for the image planes. -
colorButtonA
Color button for the arbitrary clipping plane frame. -
colorButtonStatic
Color button for the static clipping plane frame. -
colorButtonStaticInv
Color button for the static clipping plane frame. -
colorButtonX
Color button for X clipping plane frame. -
colorButtonXInv
Color button for X clipping plane frame. -
colorButtonY
Color button for Y clipping plane frame. -
colorButtonYInv
Color button for Y clipping plane frame. -
colorButtonZ
Color button for Z clipping plane frame. -
colorButtonZInv
Color button for Z clipping plane frame. -
colorChooser
Color chooser dialog. -
eqnPlanes
private javax.vecmath.Vector4d[] eqnPlanesVetor holding the clipping plane equations. -
eqnPlanesArbi
private javax.vecmath.Vector4d[] eqnPlanesArbiVetor holding the clipping plane equations. -
eqnPlanesStatic
private javax.vecmath.Vector4d[] eqnPlanesStaticVetor holding the clipping plane equations. -
eqnX
private javax.vecmath.Vector4d eqnXVector4D clipping equation of each clipping plane. -
eqnXInv
private javax.vecmath.Vector4d eqnXInvVector4D clipping equation of each clipping plane. -
eqnY
private javax.vecmath.Vector4d eqnYVector4D clipping equation of each clipping plane. -
eqnYInv
private javax.vecmath.Vector4d eqnYInvVector4D clipping equation of each clipping plane. -
eqnZ
private javax.vecmath.Vector4d eqnZVector4D clipping equation of each clipping plane. -
eqnZInv
private javax.vecmath.Vector4d eqnZInvVector4D clipping equation of each clipping plane. -
eqnA
private javax.vecmath.Vector4d eqnAVector4D clipping equation of each clipping plane. -
extractButtonA
Extract arbitrary cliping plane button. -
extractButtonS
Extract static eye cliping plane button. -
intersectionPts
private javax.vecmath.Point3f[] intersectionPtsintersectioin points coordinate. -
iNumLights
private int iNumLights12 possible intersection points. -
is6PlaneClipping
private boolean is6PlaneClippingFlag to indicate 6 plane clipping is active. -
isClipArbiPicked
private boolean isClipArbiPickedArbitrary clipping plane frame being picked or not. -
isFirstTimeBuildTree
private boolean isFirstTimeBuildTreeFirst time to build the clipping plane tree. -
isStateChangedEvent
private boolean isStateChangedEventFlag to indicate StateChangeEvent invoked. -
isTransformChanged
private boolean isTransformChangedFlag to indicate tranformChanged event invoked. -
labelAStart
Arbitrary clipping slider labels. -
labelAMid
Arbitrary clipping slider labels. -
labelAEnd
Arbitrary clipping slider labels. -
labelStatic
Static cliiping slider labels. -
labelStaticInv
Static cliiping slider labels. -
labelA
Static cliiping slider labels. -
labelStaticInvStart
Static inverse clipping plane labels. -
labelStaticInvMid
Static inverse clipping plane labels. -
labelStaticInvEnd
Static inverse clipping plane labels. -
labelStaticStart
Static clipping plane labels. -
labelStaticMid
Static clipping plane labels. -
labelStaticEnd
Static clipping plane labels. -
labelX
Sliders labels. -
labelY
Sliders labels. -
labelZ
Sliders labels. -
labelXInv
Sliders labels. -
labelYInv
Sliders labels. -
labelZInv
Sliders labels. -
labelXStart
Slider tick labels. -
labelXMid
Slider tick labels. -
labelXEnd
Slider tick labels. -
labelXStartInv
X clipping slider labels. -
labelXMidInv
X clipping slider labels. -
labelXEndInv
X clipping slider labels. -
labelYStart
Y clipping slider labels. -
labelYMid
Y clipping slider labels. -
labelYEnd
Y clipping slider labels. -
labelYStartInv
Y inverse clipping slider labels. -
labelYMidInv
Y inverse clipping slider labels. -
labelYEndInv
Y inverse clipping slider labels. -
labelZStart
Z clipping slider labels. -
labelZMid
Z clipping slider labels. -
labelZEnd
Z clipping slider labels. -
labelZStartInv
Z clipping slider labels. -
labelZMidInv
Z clipping slider labels. -
labelZEndInv
Z clipping slider labels. -
m_aiImageA_backup
private int[] m_aiImageA_backupBackup of the data for undo:. -
m_aiImageB_backup
private int[] m_aiImageB_backupImageB backup buffer. -
m_akLightBG
private javax.media.j3d.BranchGroup[] m_akLightBGParent of each light bulb. -
m_akLightMaterials
private javax.media.j3d.Material[] m_akLightMaterialsMaterial properties for each light bulb. -
m_akLightSpheres
private com.sun.j3d.utils.geometry.Sphere[] m_akLightSpheresShapes representing light bulbs. -
m_akLightTransformGroup
private javax.media.j3d.TransformGroup[] m_akLightTransformGroupParent transform group. -
m_kLightRoot
private javax.media.j3d.BranchGroup m_kLightRootParent of all the light bulbs. -
maxBox
private float maxBoxThe largest of xBox,yBox,and zBox. -
maxDim
private int maxDimThe largest dimension of xDim, yDim and zDim. -
mc
private javax.media.j3d.ModelClip mcGlobal model clip object. -
mcArbi
private javax.media.j3d.ModelClip mcArbiGlobal model clip object. -
mcStatic
private javax.media.j3d.ModelClip mcStaticGlobal model clip object. -
mcArbiBG
private javax.media.j3d.BranchGroup mcArbiBGBranch group of the arbitrary clipping plane. -
mcExtendBG
private javax.media.j3d.BranchGroup mcExtendBGBranch group of the arbitrary clipping plane. -
mcArbiExtendBG
private javax.media.j3d.BranchGroup mcArbiExtendBGBranch group of the arbitrary clipping plane. -
mcArbiTG
private javax.media.j3d.TransformGroup mcArbiTGModelClip arbitrary TransformGroup. -
mcBG
private javax.media.j3d.BranchGroup mcBGBranch group of the 6 clipping planes. -
mcStaticBG
private javax.media.j3d.BranchGroup mcStaticBGBranch group of the static clipping plane. -
objClipSliceA_BG
private javax.media.j3d.BranchGroup objClipSliceA_BGArbitrary clipping branch group. -
clipSliceA_BG
private javax.media.j3d.BranchGroup clipSliceA_BGArbitrary clipping branch group. -
clipSliceAIndicator_BG
private javax.media.j3d.BranchGroup clipSliceAIndicator_BGArbitrary clipping branch group. -
objClipSlices_BG
private javax.media.j3d.BranchGroup objClipSlices_BGroot of all the clipping slices branch group. -
objClipSliceStatic_BG
private javax.media.j3d.BranchGroup objClipSliceStatic_BGStatic clipping branch group. -
objClipSliceStaticInv_BG
private javax.media.j3d.BranchGroup objClipSliceStaticInv_BGStatic clipping branch group. -
objClipSliceX_BG
private javax.media.j3d.BranchGroup objClipSliceX_BGParent for each individual clip slices branch group, childen of objClipSlices_BG. -
objClipSliceY_BG
private javax.media.j3d.BranchGroup objClipSliceY_BGParent for each individual clip slices branch group, childen of objClipSlices_BG. -
objClipSliceZ_BG
private javax.media.j3d.BranchGroup objClipSliceZ_BGParent for each individual clip slices branch group, childen of objClipSlices_BG. -
objClipSliceXInv_BG
private javax.media.j3d.BranchGroup objClipSliceXInv_BGParent of the -x, -y, -z clip slices branchgroup. -
objClipSliceYInv_BG
private javax.media.j3d.BranchGroup objClipSliceYInv_BGParent of the -x, -y, -z clip slices branchgroup. -
objClipSliceZInv_BG
private javax.media.j3d.BranchGroup objClipSliceZInv_BGParent of the -x, -y, -z clip slices branchgroup. -
panelA
Arbitrary and static control panels. -
panelS
Arbitrary and static control panels. -
panelSInv
Arbitrary and static control panels. -
panelX
Declare each clipping plane control panel. -
panelXInv
Declare each clipping plane control panel. -
panelY
Declare each clipping plane control panel. -
panelYInv
Declare each clipping plane control panel. -
panelZ
Declare each clipping plane control panel. -
panelZInv
Declare each clipping plane control panel. -
radicalRatio
private float radicalRatioArbitrary clipping plane expanding ratio. -
recordEventName
private boolean recordEventNameFlag indicates whether to record the clip event name. -
rotationAxis
private javax.vecmath.AxisAngle4f rotationAxisRotation axis to sync up the action for both ModelClip arbitrary clipping plane and the clipSliceA frame box transformGroup. -
rotationEvent
mouse rotation event vector for the arbitrary clipping plane. -
scroller
The scroll pane holding the panel content. Used when the screen is small. -
scrollPanel
Scroll panel that holding all the control components. -
sSlice
private int sSliceRecord the current static clipping slice number. -
sSliceInv
private int sSliceInvRecord the current static clipping slice number. -
tabbedPane
Tabbed Panel that hold the each clipping planes control box. -
textStatic
Static and arbitrary text field. -
textStaticInv
Static and arbitrary text field. -
textA
Static and arbitrary text field. -
textX
Text fields that display the slice number when slider moves. -
textY
Text fields that display the slice number when slider moves. -
textZ
Text fields that display the slice number when slider moves. -
textXInv
X, Y, Z inverse text field. -
textYInv
X, Y, Z inverse text field. -
textZInv
X, Y, Z inverse text field. -
xBox
private float xBoxxBox, yBox, zBox from the parent scene. -
yBox
private float yBoxxBox, yBox, zBox from the parent scene. -
zBox
private float zBoxxBox, yBox, zBox from the parent scene. -
xDim
private int xDimImage X, Y, Z dimension. -
yDim
private int yDimImage X, Y, Z dimension. -
zDim
private int zDimImage X, Y, Z dimension. -
xSlice
private int xSliceWhich slice is currently displayed in the ZY plane. -
xSliceInv
private int xSliceInvWhich slice is currently displayed in the ZY plane. -
ySlice
private int ySliceWhich slice is currently displayed in the XZ plane. -
ySliceInv
private int ySliceInvWhich slice is currently displayed in the XZ plane. -
zSlice
private int zSliceWhich slice is currently displayed in the XY plane. -
zSliceInv
private int zSliceInvWhich slice is currently displayed in the XY plane.
-
-
Constructor Details
-
JPanelClip
3D texture surface renderer clipping dialog control.- Parameters:
parent- SurfaceRender Surface renderer referencexBox- float unit box x lengthyBox- float unit box y lengthzBox- float unit box z length
-
-
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.- Specified by:
actionPerformedin interfaceActionListener- Specified by:
actionPerformedin classJPanelRendererBase- Parameters:
event- Event that triggered function.
-
addClipSlice
public void addClipSlice()Attach clipping plane branch group. -
addClipSliceA
public void addClipSliceA()Attach arbitrary clip slice bounding frame. -
addClipSliceStatic
public void addClipSliceStatic()Attach static clip slice bounding frame. -
addClipSliceStaticInv
public void addClipSliceStaticInv()Attach static inverse clip slice bounding frame. -
addClipSliceX
public void addClipSliceX()Attach X clip slice bounding frame. -
addClipSliceXInv
public void addClipSliceXInv()Attach X Invative clip slice bounding frame. -
addClipSliceY
public void addClipSliceY()Attach Y clip slice bounding frame. -
addClipSliceYInv
public void addClipSliceYInv()Attach Y Invative clip slice bounding frame. -
addClipSliceZ
public void addClipSliceZ()Attach Z clip slice bounding frame. -
addClipSliceZInv
public void addClipSliceZInv()Attach Z Invative clip slice bounding frame. -
addToModelClip
public void addToModelClip(javax.media.j3d.BranchGroup root) Add a new branch group to model clip for clipping.- Parameters:
root- BranchGroup Node.
-
buildClipPlanesTree
public void buildClipPlanesTree()Build cliping planes tree structure. This method being called when clipping plane menu selected in the surface render. -
buildPanelA
public void buildPanelA()Build the arbitrary clipping slider control panel. -
buildPanelS
public void buildPanelS()Build static clipping slider control panel. -
buildPanelSInv
public void buildPanelSInv()Build static inverse clipping slider control panel. -
buildPanelX
public void buildPanelX()Build x slider control panel. -
buildPanelXInv
public void buildPanelXInv()Build x negative clipping slider control panel. -
buildPanelY
public void buildPanelY()Build the y clipping slider control panel. -
buildPanelYInv
public void buildPanelYInv()Build the y negative clipping slider control panel. -
buildPanelZ
public void buildPanelZ()Build the z clipping slider control panel. -
buildPanelZInv
public void buildPanelZInv()Build the z negative clipping slider control panel. -
cropVolume
public void cropVolume()Mask the clipped volume region with image min intensity value. -
disable6Planes
public void disable6Planes()Disable the 6 clipping planes. -
disableClipA
public void disableClipA()Disable the arbitrary clipping. -
disableClipPlanes
public void disableClipPlanes()Disable clipping planes when dialog window closed. -
disableClipPlanesArbi
public void disableClipPlanesArbi()Disable arbitrary clipping planes. -
disableStaticClipping
public void disableStaticClipping()Disable the eye clipping plane. -
disableStaticInvClipping
public void disableStaticInvClipping()Disable the eye inverse clipping plane. -
displayAClipPlanePts
public void displayAClipPlanePts()Display the abitrary clipping plane corner points. -
displaySClipPlanePts
public void displaySClipPlanePts()Display the static(eye) clipping plane corner points. -
dispose
public void dispose()Dispose memory. -
enableClipArbiBehavior
public void enableClipArbiBehavior(boolean flag) Enable arbitrary clipping plane behavior.- Parameters:
flag-trueenable arbitrary clipping mouse behavior, disable the scene graph mouse behavior;falsedisable arbitrary clipping mouse behavior, enable the scene graph mouse behavior.
-
enableStaticClipping
public void enableStaticClipping()Enable the eye clipping plane. -
enableStaticInvClipping
public void enableStaticInvClipping()Enable the eye inverse clipping plane. -
EulerToQuat
public final void EulerToQuat(javax.vecmath.Vector3d v, javax.vecmath.Quat4d q) Transform Euler angle to quaterion. Not used for now.- Parameters:
v- Vector3d Euler anglesq- Quat4d quaternion
-
getAClipPlanePts
public WildMagic.LibFoundation.Mathematics.Vector3f[] getAClipPlanePts()Get the arbitrary clipping plane four corners points.- Returns:
- Vector3f[]
-
getAVisible
public boolean getAVisible()Return check box arbitrary selection value.- Returns:
- boxA.isSelected() box arbitrary slection value.
-
getAxisAngle
public float getAxisAngle()Get rotation axis alpha value.- Returns:
- aixsAngle alpha value.
-
getAxisX
public float getAxisX()Get rotation axis X value.- Returns:
- aixsX x value.
-
getAxisY
public float getAxisY()Get rotation axis Y value.- Returns:
- aixsY y value.
-
getAxisZ
public float getAxisZ()Get rotation axis Z value.- Returns:
- aixsZ z value.
-
getBoundXInv
public float getBoundXInv()Get the location of the negative X slice bound.- Returns:
- float Value in normalized range of [0,1].
-
getBoundXPos
public float getBoundXPos()Get the location of the positive X slice bound.- Returns:
- float Value in normalized range of [0,1].
-
getBoundYInv
public float getBoundYInv()Get the location of the negative Y slice bound.- Returns:
- float Value in normalized range of [0,1].
-
getBoundYPos
public float getBoundYPos()Get the location of the positive Y slice bound.- Returns:
- float Value in normalized range of [0,1].
-
getBoundZInv
public float getBoundZInv()Get the location of the negative Z slice bound.- Returns:
- float Value in normalized range of [0,1].
-
getBoundZPos
public float getBoundZPos()Get the location of the positive Z slice bound.- Returns:
- float Value in normalized range of [0,1].
-
getMainPanel
Get the main control panel.- Specified by:
getMainPanelin classJPanelRendererBase- Returns:
- mainPanel the whole control panel.
-
getSliceA
public int getSliceA()Get arbitray slider value.- Returns:
- Arbitrary slider value.
-
getSliceX
public int getSliceX()Get x slider value.- Returns:
- X clipping slider value.
-
getSliceXInv
public int getSliceXInv()Get x negative slider value.- Returns:
- Get y clipping slider value
-
getSliceY
public int getSliceY()Get y slider value.- Returns:
- Get y clipping slider value.
-
getSliceYInv
public int getSliceYInv()Get y negative slider value.- Returns:
- Get y inverse clipping slider value.
-
getSliceZ
public int getSliceZ()Get z slider value.- Returns:
- Get Z clippig slider value.
-
getSliceZInv
public int getSliceZInv()Get z negative slider value.- Returns:
- get z inverse clipping slider value.
-
getSliderA
Get arbitrary slider.- Returns:
- get arbitrary clipping slider value.
-
getSliderX
Get x slider.- Returns:
- get x clipping slider value.
-
getSliderXInv
Get x negative slider.- Returns:
- get X inverse clipping slider value.
-
getSliderY
Get y slider.- Returns:
- get Y clipping slider value.
-
getSliderYInv
Get y negative slider.- Returns:
- get y inverse clipping slider value.
-
getSliderZ
Get z slider.- Returns:
- get z clipping slider value.
-
getSliderZInv
Get z negative slider.- Returns:
- get z inverse clipping slider value.
-
getStaticInvVisible
public boolean getStaticInvVisible()Return check box static inverse selection value.- Returns:
- boxZInv.isSelected() box z negative slection value.
-
getStaticVisible
public boolean getStaticVisible()Return check box static selection value.- Returns:
- boxZInv.isSelected() box z negative slection value.
-
getXVisible
public boolean getXVisible()Return check box X selection value.- Returns:
- boxX.isSelected() box X selection value.
-
getXVisibleInv
public boolean getXVisibleInv()Return check box X negative selection value.- Returns:
- boxXInv.isSelected() box x negative slection value.
-
getYVisible
public boolean getYVisible()Return check box Y selection value.- Returns:
- boxY.isSelected() box Y selection value.
-
getYVisibleInv
public boolean getYVisibleInv()Return check box Y negative selection value.- Returns:
- boxYInv.isSelected() box y negative slection value.
-
getZVisible
public boolean getZVisible()Return check box Z selection value.- Returns:
- boxZ.isSelected() box z selection value.
-
getZVisibleInv
public boolean getZVisibleInv()Return check box Z negative selection value.- Returns:
- boxZInv.isSelected() box z negative slection value.
-
hideClipSliceA
public void hideClipSliceA()Hides the slice frame on arbitrary clipping plane slice. -
hideClipSliceStatic
public void hideClipSliceStatic()Hides the static clipping plane box frame. -
hideClipSliceStaticInv
public void hideClipSliceStaticInv()Hides the static inverset clipping plane box frame. -
hideClipSliceX
public void hideClipSliceX()Hides the slice frame on clipping plane slice x. -
hideClipSliceXInv
public void hideClipSliceXInv()Hides the slice frame on clipping plane slice -x. -
hideClipSliceY
public void hideClipSliceY()Hides the slice frame on clipping plane slice y. -
hideClipSliceYInv
public void hideClipSliceYInv()Hides the slice frame on clipping plane slice -y. -
hideClipSliceZ
public void hideClipSliceZ()Hides the slice frame on clipping plane slice z. -
hideClipSliceZInv
public void hideClipSliceZInv()Hides the slice frame on clipping plane slice -z. -
init
public void init()Initializes GUI components. -
initClipSliceA
public void initClipSliceA()Move the arbitrary clipping bounding frame to initial position. -
initClipSliceStatic
public void initClipSliceStatic()Move the static clipping bounding frame to initial position. -
initClipSliceStaticInv
public void initClipSliceStaticInv()Move the static inverse clipping bounding frame to initial position. -
initClipSliceX
public void initClipSliceX()Move the X clipping bounding frame to initial position. -
initClipSliceXInv
public void initClipSliceXInv()Move the X Invative clipping bounding frame to initial position. -
initClipSliceY
public void initClipSliceY()Move the Y clipping bounding frame to initial position. -
initClipSliceYInv
public void initClipSliceYInv()Move the Y Nagative clipping bounding frame to initial position. -
initClipSliceZ
public void initClipSliceZ()Move the Z clipping bounding frame to initial position. -
initClipSliceZInv
public void initClipSliceZInv()Move the Z Invative clipping bounding frame to initial position. -
invokeClippingPlanes
public void invokeClippingPlanes()Invokes all the 6 clipping when 6 clipping checkbox is checked. -
is6PlaneClipping
public boolean is6PlaneClipping()Indicate whether the 6 clipping plane is active or not.- Returns:
- is6PlaneClipping
true6 clipping plane active,falsearbitrary clippiing plane active.
-
isArbitraryClipping
public boolean isArbitraryClipping(javax.media.j3d.Shape3D pickeObject) Called by the JDialogSurface to find the current mouse event is from the arbitrary frame box moving or not.- Parameters:
pickeObject- Shape3D picked object from the JDialogSurface.- Returns:
truearbitrary frame box moves,falsenot moves
-
isClipArbiPicked
public boolean isClipArbiPicked()Return the flag for the arbitrary clipping plane frame being picked or not.- Returns:
- isClipArbiPicked
truepicked,falsenot picked.
-
isFirstTimeBuildTree
public boolean isFirstTimeBuildTree()Return whether the clipping planes tree branch being built the first time.- Returns:
- isFirstTimeBuildTree if
truefirst time build the tree,falsealready built.
-
mouseClicked
Unchanged.- Specified by:
mouseClickedin interfaceMouseListener- Parameters:
event- Original mouse event.
-
mouseDragged
If recording, adds this mouse event to the mouseEvents vector found at locationcurrent.- Specified by:
mouseDraggedin interfaceMouseMotionListener- Parameters:
event- Original mouse event.
-
mouseEntered
Unchanged.- Specified by:
mouseEnteredin interfaceMouseListener- Parameters:
event- Original mouse event.
-
mouseExited
Unchanged.- Specified by:
mouseExitedin interfaceMouseListener- Parameters:
event- Original mouse event.
-
mouseMoved
Unchanged.- Specified by:
mouseMovedin interfaceMouseMotionListener- Parameters:
event- Original mouse event.
-
mousePressed
Unchanged.- Specified by:
mousePressedin interfaceMouseListener- Parameters:
event- Original mouse event.
-
mouseReleased
Used in MouseRecorder to stop one series of slide moves.- Specified by:
mouseReleasedin interfaceMouseListener- Parameters:
event- Original mouse event.
-
QuatToEuler
public void QuatToEuler(javax.vecmath.Quat4d q1, javax.vecmath.Vector3d v) Transform a quaternion to euler. This method get the Euler angles from the volume rotation.- Parameters:
q1- Quat4d quaternion.v- Vector3d euler
-
removeClipSlice
public void removeClipSlice()Removes the clip slices. -
removeClipSliceA
public void removeClipSliceA()Detaches the slice frame on arbitrary clipping plane slice. -
removeClipSliceStatic
public void removeClipSliceStatic()remove the static clipping plane box frame. -
removeClipSliceStaticInv
public void removeClipSliceStaticInv()remove the static inverse clipping plane box frame. -
removeClipSliceX
public void removeClipSliceX()Detaches the slice frame on clipping plane slice x. -
removeClipSliceXInv
public void removeClipSliceXInv()Detaches the slice frame on clipping plane slice -x. -
removeClipSliceY
public void removeClipSliceY()Detaches the slice frame on clipping plane slice y. -
removeClipSliceYInv
public void removeClipSliceYInv()Detaches the slice frame on clipping plane slice -y. -
removeClipSliceZ
public void removeClipSliceZ()Detaches the slice frame on clipping plane slice z. -
removeClipSliceZInv
public void removeClipSliceZInv()Detaches the slice frame on clipping plane slice -z. -
removeFromModelClip
public void removeFromModelClip(javax.media.j3d.BranchGroup root) Remove the branch group passed in.- Parameters:
root- BranchGroup node to be removed.
-
resizePanel
public void resizePanel(int panelWidth, int frameHeight) Resizig the control panel with ViewJFrameVolumeView's frame width and height.- Overrides:
resizePanelin classJPanelRendererBase- Parameters:
panelWidth- panel widthframeHeight- parent frame height.
-
saveCropImage
public void saveCropImage()Save the cropped image. -
setArbiPlanePickable
public void setArbiPlanePickable(boolean _picked) setGUI setup the flag of the arbitary clipping frame box.- Parameters:
_picked-truepicked,falsenot picked.
-
setASliderEnabled
public void setASliderEnabled(boolean flag) Sets the arbitray clip slider and the labels. state given byflag.- Parameters:
flag- iftrueenable, otherwise disable.
-
setCheckBoxA
public void setCheckBoxA(boolean isSelected) Set the slider arbitrary checkBox with the passed in value.- Parameters:
isSelected- iftrueselected, otherwise not selected.
-
setCheckBoxStatic
public void setCheckBoxStatic(boolean isSelected) Set the slider Static checkBox with the passed in value.- Parameters:
isSelected- iftrueselected, otherwise not selected.
-
setCheckBoxStaticInv
public void setCheckBoxStaticInv(boolean isSelected) Set the slider Static inverse checkBox with the passed in value.- Parameters:
isSelected- iftrueselected, otherwise not selected.
-
setCheckBoxX
public void setCheckBoxX(boolean isSelected) Set the slider X checkBox with the passed in value.- Parameters:
isSelected- iftrueselected, otherwise not selected.
-
setCheckBoxXInv
public void setCheckBoxXInv(boolean isSelected) Set the slider X inverse checkBox with the passed in value.- Parameters:
isSelected- iftrueselected, otherwise not selected.
-
setCheckBoxY
public void setCheckBoxY(boolean isSelected) Set the slider Y checkBox with the passed in value.- Parameters:
isSelected- iftrueselected, otherwise not selected.
-
setCheckBoxYInv
public void setCheckBoxYInv(boolean isSelected) Set the slider Y inverse checkBox with the passed in value.- Parameters:
isSelected- iftrueselected, otherwise not selected.
-
setCheckBoxZ
public void setCheckBoxZ(boolean isSelected) Set the slider Z checkBox with the passed in value.- Parameters:
isSelected- iftrueselected, otherwise not selected.
-
setCheckBoxZInv
public void setCheckBoxZInv(boolean isSelected) Set the slider Z inverse checkBox with the passed in value.- Parameters:
isSelected- iftrueselected, otherwise not selected.
-
setClipSliceAColor
Sets the color of the arbitrary clipping plane slice frame.- Parameters:
color- Color to set to.
-
setClipSliceAwithRotate
public void setClipSliceAwithRotate(float _axisX, float _axisY, float _axisZ, float _axisAngle) During mouse recorder diaplay, setup the rotatino axis for both arbiTG and mcArbiTG.- Parameters:
_axisX- rotation axis x value._axisY- rotation axis y value._axisZ- rotation axis z value._axisAngle- rotation axis alpha value.
-
setClipSliceSColor
Sets the color of the static clipping plane slice frame.- Parameters:
color- Color to set to.
-
setClipSliceSInvColor
Sets the color of the static inverse clipping plane slice frame.- Parameters:
color- Color to set to.
-
setClipSliceXColor
Sets the color of the x clipping plane slice frame.- Parameters:
color- Color to set to.
-
setClipSliceXInvColor
Sets the color of the -x clipping plane slice frame.- Parameters:
color- Color to set to.
-
setClipSliceYColor
Sets the color of the y cliping plane slice frame.- Parameters:
color- Color to set to.
-
setClipSliceYInvColor
Sets the color of the -y cliping plane slice frame.- Parameters:
color- Color to set to.
-
setClipSliceZColor
Sets the color of the z clipping plane slice frame.- Parameters:
color- Color to set to.
-
setClipSliceZInvColor
Sets the color of the -z clipping plane slice frame.- Parameters:
color- Color to set to.
-
setStaticInvSliderEnabled
public void setStaticInvSliderEnabled(boolean flag) Sets the static inverse slider and the labels beside and beneath it to the state given byflag.- Parameters:
flag- iftrueenable, otherwise disable.
-
setStaticSliderEnabled
public void setStaticSliderEnabled(boolean flag) Sets the static slider and the labels beside and beneath it to the state given byflag.- Parameters:
flag- iftrueenable, otherwise disable.
-
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.
-
setXSliderInvEnabled
public void setXSliderInvEnabled(boolean flag) Sets the x slider and the labels beside and beneath it to the state given byflag.- Parameters:
flag- iftrueenable, otherwise disable.
-
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.
-
setYSliderInvEnabled
public void setYSliderInvEnabled(boolean flag) Sets the y slider and the labels beside and beneath it to the state given byflag.- Parameters:
flag- iftrueenable, otherwise disable.
-
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.
-
setZSliderInvEnabled
public void setZSliderInvEnabled(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.
-
swapModelClipBG
public void swapModelClipBG(boolean flag) Swap ModelClip Branch group between the 6 clipping plane and the arbitray clipping plane.- Parameters:
flag-trueenable the 6 clipping planes,falseenable the arbitrary clipping plane.
-
transformChanged
public void transformChanged(int type, javax.media.j3d.Transform3D transform) Needed for this to implement MouseBehaviorCallback.- Specified by:
transformChangedin interfacecom.sun.j3d.utils.behaviors.mouse.MouseBehaviorCallback- Parameters:
type- transformation type.transform- transformation matrix.
-
undoCrop
public void undoCrop()Undo the crop of the volume. -
updateClipPlanesEqn
public void updateClipPlanesEqn()Upadate six clipping planes' plane equation. -
updateClipSlice
public void updateClipSlice()Update clipping planes. -
updateClipSliceA
public void updateClipSliceA()Sets new frame around arbitrary clip plane slice based on the new position. -
updateClipSliceAwithRotate
public void updateClipSliceAwithRotate(javax.media.j3d.Transform3D transform) Update arbitrary clip plane's transform.- Parameters:
transform- The current transform with the mouse moves.
-
updateClipSliceStatic
public void updateClipSliceStatic()Sets new frame around clip plane slice -z based on the new position. -
updateClipSliceStaticInv
public void updateClipSliceStaticInv()Sets new frame around clip plane slice -z based on the new position. -
updateClipSliceX
public void updateClipSliceX()Sets new frame around clip plane slice x based on the new position. -
updateClipSliceXInv
public void updateClipSliceXInv()Sets new frame around clip plane slice -x based on the new position. -
updateClipSliceY
public void updateClipSliceY()Sets new frame around clip plane slice y based on the new position. -
updateClipSliceYInv
public void updateClipSliceYInv()Sets new frame around clip plane slice -y based on the new position. -
updateClipSliceZ
public void updateClipSliceZ()Sets new frame around clip plane slice z based on the new position. -
updateClipSliceZInv
public void updateClipSliceZInv()Sets new frame around clip plane slice -z based on the new position. -
windowClosing
Accessor that closing the mouse recorder window frame.- Parameters:
e- Window event.
-
backupImage
Called by the TextureSculptor or VolumeSculptor objects. The function stores the original volume data back to the original values in the m_aiImage_backup data members.- Parameters:
kImageA- image A reference.kImageB- image B reference.
-
setBoxColor
Calls the appropriate method in the parent frame.- Parameters:
button- color button.color- color reference.
-
addControlPanel
private void addControlPanel(JPanel panel, 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:
panel- control panel.c- Component added to the control panel.gbc- GridBagConstraints of added component.x- Gridx locationy- Gridy locationw- Gridwidthh- Gridheight
-
drawSphere
private void drawSphere(int index, float x, float y, float z) Draw the red sphere with the given coordinate.- Parameters:
index- sphere indexx- float x positiony- float y positionz- float z position
-
initSphereBranch
private void initSphereBranch()Initialize the red sphere image scene graph structure. -
transform
private void transform(javax.vecmath.Vector4f vIn) Transform a point rotation inverse to the volume rotation.- Parameters:
vIn- point position in vector
-
updateVolumeRenderClipPlane
private void updateVolumeRenderClipPlane()Update the volume render's clip plane with all new positions.
-