Package gov.nih.mipav.view.renderer.J3D
Class ViewJFrameVolumeView
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
gov.nih.mipav.view.ViewJFrameBase
gov.nih.mipav.view.renderer.J3D.ViewJFrameVolumeView
- All Implemented Interfaces:
ViewImageUpdateInterface,ActionListener,ComponentListener,ItemListener,MouseListener,WindowListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,ChangeListener,RootPaneContainer,WindowConstants
public class ViewJFrameVolumeView
extends ViewJFrameBase
implements MouseListener, ItemListener, ChangeListener
The volume view frame of the visualization. The frame includes the surface renderer, the raycast renderer, the
shearwarp renderer and the flythru renderer.
- Author:
- Ruida Cheng
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classItem to hold tab name and corresponding panel.Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrameNested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrameNested 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 booleanIndicates that image orientation is unknown type or not.static final intDOCUMENT ME!private MjCorticalAnalysisRendering the brainsurfaceFlattener objects.private JPanelDOCUMENT ME!private JPanelDOCUMENT ME!private JButtonButton to invoke all the six clipping planes.private JButtonButton to disable all the six clipping planes.private JButtonButton to crop the clip volume.private JButtonButton to undo crop the clip volume.private JPanelDOCUMENT ME!private JButtonButton to invoke clipping planes.private JButtonButton to save clipped region.private BorderPanel Border view.protected GraphicsConfigurationConfiguration param, which will pass down to each render's constructor.private JPanelDOCUMENT ME!private JSplitPanedual image pane that holds the left and right panel.private JPanelThe image panel to hold two Canvas3D.private JPanelLeft panel of the dual panel view.static final intDOCUMENT ME!private JPanelRight panel of the dual panel view.static final intDOCUMENT ME!private BorderPanel Border view.private booleanKeep track of whether we're switching to the volume renderer for the first time.private JPanelVirtualEndoscopySetupFly through setup control panel.private JPanelFlythruMoveFly through movement control panel.private JPanelView panel contains the fly thru control panel.private FlythruRender.SetupOptionsFly through options.private JPanelFly through panel.private FlythruRenderReference to fly through renderer.private JButtonSurface load button.private VectorDOCUMENT ME!private JToolBarFlythru toolbar.private JPanelControl panel for the surface renderer.private ModelImageReference to the imageA original copy.private intImage orientation: coronal, sagittal, axial, unknown.private JPanelThe image panel to hold one Canvas3D.private JDialogIntensityPaintDOCUMENT ME!private booleanIndicate if the brainsurface flattener render is enabled from the resample dialog or not.private booleanIndicate if the fly through render is enabled from the resample dialog or not.protected ModelImageIsotropic version image A, B, used by the shear warp renderer.protected ModelImageIsotropic version image A, B, used by the shear warp renderer.private booleanIndicate if the raycast render is enabled from the resample dialog or not.private booleanIndicate if the shear warp render is enabled from the resample dialog or not.private booleanIndicate if the surface render is enabled from the resample dialog or not.private booleanIndicate if the surface view is enabled from the resample dialog or not.private intThe left panel renderer mode.private JPanelDOCUMENT ME!private BorderPanel Border view.private PlaneRender[]The three slice views displayed as texture-mapped polygons:.private JPanelControl panels for the Brainsurface Flattener:.private JPanelControl panel for drawing geodesic curves.private JPanelControl panel for volume sculpting.private intThe max width of the control panels.private JMenuBarMenu bar.protected ViewMenuBuilderMenu items storage.protected JLabelLabels for the current position in 3D ModelView coordinates:.protected JLabel[]DOCUMENT ME!private JPanelDOCUMENT ME!static final intRender mode values.private JDialogOpacityControlsDOCUMENT ME!private JPanelDOCUMENT ME!protected int[]Orientations of the three axes.private ModelImagePadding imageA with blank images feeding.private ModelImagePadding imageB with blank images feeding.private JDialogPaintGrowControl panels of the triplanar view.private JFrameHistogramLUT control panel of the gray scale image.(package private) JPanelPanel containing the position labels:.protected JPanelPanel that holds the toolbars.private JToggleButtonRendering parallel rotation button.protected JLabelLabels for the current position in PatientSlice coordinates:.protected JLabel[]DOCUMENT ME!private BorderPanel Border view.private JPanelDOCUMENT ME!private JRadioButtonRadio button of the COMPOSITE mode option.private JRadioButtonRadio button of the COMPOSITE mode option.private JRadioButtonRadio button of the MIP mode option.private JRadioButtonRadio button of the MIP mode option.private JRadioButtonRadio button of the SURFACE mode option.private JRadioButtonRadio button of the SURFACE mode option.private JRadioButtonRadio button of the SURFACE mode option.private JRadioButtonRadio button of the surface render composite mode.private JRadioButtonRadio button of the surface render lighting mode.private JRadioButtonRadio button of the XRAY mode option.private JRadioButtonRadio button of the XRAY mode option.private BorderPanel Border view.static final intDOCUMENT ME!private JPanelDOCUMENT ME!private JPanelControl panels for the raycast render.private VolumeRendererRayCastDOCUMENT ME!private VectorDOCUMENT ME!private JToolBarRaycast toolbar.private BorderPanel Border view.protected static JProgressBarThe small bar on the top right corner the volume view frame.private JDialogVolViewResampleReference to resample dialog, use to null out the resample dialog in this frame.private JButtonButton for RFA.private JButtonRFA separator.protected ModelRGBLookup table of the color imageA, B.protected ModelRGBLookup table of the color imageA, B.private JSplitPaneThe view pane that contains the image view and tri-planar view panels.private intThe right panel renderer mode.private intScreen width, screen height.private intScreen width, screen height.private intSculpt region height.private intSculpt region width.private static final longUse serialVersionUID for interoperability.protected FontFonts, same asMipavUtil.font12andMipavUtil.font12B.protected FontFonts, same asMipavUtil.font12andMipavUtil.font12B.static final intDOCUMENT ME!private JPanelDOCUMENT ME!private JPanelControl panels for the shearwarp render.private VolumeRendererShearWarpDOCUMENT ME!private VectorDOCUMENT ME!private JToolBarShearwarp toolbar.private JPanelDOCUMENT ME!private intPrevioius tab index recorder.static final intDOCUMENT ME!private JPanelDOCUMENT ME!static final intDOCUMENT ME!private SurfaceRenderThree types of renderer.private VectorFor each render, use the vector to store the currently active tabs.private SurfaceViewSurface View referenceprivate ViewToolBarBuilderToolbar builder reference.private JPanelTri image planar render panels.private JToggleButtonRendering unparallel rotaion button.private JPanelDOCUMENT ME!private JToolBarThe top one render view switch toolbar.private JToolBarSurface Render toolbar.Fields inherited from class gov.nih.mipav.view.ViewJFrameBase
absoluteGoToButton, absoluteGoToPanel, absoluteLabel, absoluteLabelVals, absolutePanel, absoluteXLabel, absoluteXTextField, absoluteYLabel, absoluteYTextField, absoluteZLabel, absoluteZTextField, alphaBlend, defaultLUTa, defaultLUTb, displayMode, IMAGE_A, IMAGE_A_B, IMAGE_B, imageA, imageB, isClosing, linkedScrolling, linkFrame, linkTriFrame, LUTa, LUTb, progressBar, scannerLPS_APLabel, scannerLPS_APTextField, scannerLPS_GoToButton, scannerLPS_GoToPanel, scannerLPS_ISLabel, scannerLPS_ISTextField, scannerLPS_RLLabel, scannerLPS_RLTextField, scannerLPSLabel, scannerLPSLabelVals, scannerLPSPanel, scannerRAS_APLabel, scannerRAS_APTextField, scannerRAS_GoToButton, scannerRAS_GoToPanel, scannerRAS_ISLabel, scannerRAS_ISTextField, scannerRAS_RLLabel, scannerRAS_RLTextField, scannerRASLabel, scannerRASLabelVals, scannerRASPanel, scannerTabbedPane, tabbedPane, talGoToButton, talGoToPanel, talXLabel, talXTextField, talYLabel, talYTextField, talZLabel, talZTextField, userInterface, zoomModeFields inherited from class javax.swing.JFrame
accessibleContext, rootPane, rootPaneCheckingEnabledFields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORFields 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
ConstructorsConstructorDescriptionViewJFrameVolumeView(ModelImage _imageA, ModelLUT LUTa, ModelRGB _RGBTA, ModelImage _imageB, ModelLUT LUTb, ModelRGB _RGBTB, int _leftPanelRenderMode, int _rightPanelRenderMode, JDialogVolViewResample _resampleDialog) Make a volume rendering frame, which contains the toolbars on the top, control panel on the left, the volume rendering panel on the right, and the three orthogonal view ( axial, sagittal, coronal, views) on the bottom right. -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) Calls various methods depending on the action.voidAdd any attached surfaces the current image has in its file info (if the file info is in the xml format).voidaddBranch(javax.media.j3d.BranchGroup kBranch, ModelTriangleMesh kMesh, javax.vecmath.Point3f kCenter) Updates the surRender -- adds a BranchGroup to the main Display.voidUpdates the surRender to display the flythru flight path from the flythruRender.voidaddSurface(String dir, File file) Adding surface to the 3D texuture volume.private voidAdd surface volume renderer control buttons.voidBuild the Brainsurface Flattener panel:voidBuild the camera control panel for the surface render.voidBuild the clipping control panel for the surface render.voidBuild the display control panel for the surface render.voidBuild the flythru move control panel.voidBuild the flythru control panel.private voidBuild the fly through toolbar.voidBuild the Geodesic control panel.voidThe histogram control panel of the lookup table.voidThe label panel of the x, y, z slider position.voidBuild the light control panel for the surface render.protected JMenuBarBuilds menus for the tri-planar view.voidBuild the mouse control panel for the raycast render.voidBuild the volume opacity control panel for the surface render.voidBuild the adding surface control panel for the surface render.voidBuild the camera control panel for the raycast render.voidBuild the view control panel for the raycast render.private voidBuild the raycast toolbar.voidBuild the Sculpturing control panel.voidBuild the camera control panel for the shearwarp render.voidBuild the view control panel for the shearwarp render.private voidBuild the shearwarp toolbar.voidBuild the slices control panel for the surface render.voidBuild the adding surface control panel for the surface render.private voidThe the top one volume view toolbar.private voidBuild the surface render toolbar.protected voidBuilds the toolbars for the tri-planar view.voidBuild the view control panel for the surface render.private voidThe the top one volume view toolbar.voidcalcShearWarpImage(ModelImage _imageA, ModelImage _imageB) Transform the image into shear warp image, which has the same resolution.voidcomponentResized(ComponentEvent event) Method called when a component resize event is generated.protected voidConstructs main frame structures for image canvas.voidConstruct the volume rendering methods based on the choices made from the resample dialog.voidDisable target point for the RFA probe from within the plane renderer.voiddisposeLocal(boolean flag) Dispose memory.voiddoPadding(int[] extents, int[] volExtents) Insert the blank images to the end of image.voiddoResample(int[] volExtents, float[] newRes, boolean forceResample, int nDim, int iFilterType) Resample the images to power of 2.voiddrawBrainSurfaceFlattenerPoint(javax.vecmath.Point3f kStart, int[] aiIndex, int iWhich) Draws the point selected on the Mesh for the brainsurfaceFlattener.voiddrawRFAPoint(javax.vecmath.Point3f kPoint) Called from the PlaneRender class when a new Probe Entry Point has been selected.private voidEnable dual panel renders.private voidEnable the fly through frame layout.private voidEnable the shear warp render.private voidEnable surface render.voidEnable target point for the RFA probe from within the plane renderer.private voidEnable volume render.protected voidfinalize()Cleans up memory from gc.intGet the imageA and imageB blending value from the PlaneRender.Required by the parent super class, do nothing.Returns which image is active in the HistoLUT -- either imageA or imageB.Returns which image is active in the HistoRGB -- either imageA or imageB.Get the image A reference.Get the imageB reference.Get a reference to the original image we passed into the renderer from MIPAV (non-cloned).Deprecated.Return the rfa probe panel.static final JProgressBarRetrieve the progress bar used in the volume renderer (the one in the upper right hand corner).Deprecated.Return the segmentation region map image which contains info on where the vascualture, etc are located.Return the image panel.voidinsertFlythruTab(String _name, JPanel _panel) Insert tab into the flythru tab list ( flythru render ) for backup.voidinsertRaycastTab(String _name, JPanel _panel) Insert tab into the raycast tab list ( raycast render ) for backup.voidinsertShearwarpTab(String _name, JPanel _panel) Insert tab into the shear warp tab list ( shear warp render ) for backup.voidinsertSurfaceTab(String _name, JPanel _panel) Insert tab into the surface tab list ( SurfaceRender ) for backup.voidInsert the new tab into the current visible tab list.booleanReturns the pick enabled state of the brainsurfaceFlattener.booleanCheck whether the Geodesic drawing is enabled or not.voiditemStateChanged(ItemEvent event) Sets the flags for the getOptionses and resets labels.voidHandle the double mouse click event when the use swith between the dual image panel view.voidMethods do nothing, implemented mouseListener.voidMethods do nothing, implemented mouseListener.voidMethods do nothing, implemented mouseListener.voidMethods do nothing, implemented mouseListener.voidremoveBranch(javax.media.j3d.BranchGroup kBranch, boolean bRemoveMesh) Updates the surRender -- removes a BranchGroup to the main Display.voidRequired by the parent super class, do nothing.voidRemove the red line showing where the probe will pass through.voidReset image volume orieint along X axis.voidReset image volume orieint along Y axis.voidReset image volume orieint along Z axis.private voidresetLUTMinMax(ModelImage image, ModelLUT lut) Calculate the LUT from the resampled image.private voidMethod that resizes the frame and adjusts the rows, columns as needed.private voidset3DModelPosition(WildMagic.LibFoundation.Mathematics.Vector3f kPosition) Sets the 3DModel position label.voidsetActiveImage(int active) Required by the parent super class, do nothing.voidsetAlphaBlend(int value) Required by the parent super class, do nothing.voidRequired by the parent super class, do nothing.voidsetEnabled(boolean flag) Do nothing methods, just extend the ViewJframeBase.voidsetFlythruColor(Color _color) Set the flythru surface color.voidsetImageB(ModelImage _imageB) Required by the parent super class, do nothing.voidSet the reference to the original image we passed into the renderer from MIPAV (non-cloned).voidAccessor that sets the LUT.voidAccessor that sets the LUT.voidsetMaterialShininess(float value) Set material ( texture or voxels ) shininess value.voidsetPaintBitmapSwitch(boolean paintBitmapSwitch) Required by the parent super class, do nothing.voidsetPathPosition(javax.vecmath.Point3f kPosition, javax.vecmath.Point3f kScaledPosition) Called when the view position changes in the FlyThruRenderer, updates the position representation in the Slice views:private voidsetPatientSlicePosition(WildMagic.LibFoundation.Mathematics.Vector3f position) Sets the PatientSlice position label.voidsetPositionLabels(WildMagic.LibFoundation.Mathematics.Vector3f position) Sets the position labels.voidsetRenderPerspective(boolean bEnable) private voidsetRFAToolbarVisible(boolean flag) Set the RFA button visible or not.voidSets the RGB table for ARGB image A.voidSets the RGB table for image B.voidUpdate the right panel when finish loading Endoscopy images.voidSet the image which we can check to see if the probe is hitting anything important (such as vessels, etc).voidsetSlice(int slice) Required by the parent super class, do nothing.voidsetSliceFromPlane(WildMagic.LibFoundation.Mathematics.Vector3f kCenter) Sets the position of the slices in the SurfaceRender and PlaneRender objects.voidsetSliceFromSurface(WildMagic.LibFoundation.Mathematics.Vector3f center) Sets the position of the slices in the PlaneRender.voidsetSliceHairColor(int iView, Color color) Sets the color for the PlaneRender iView (AXIAL, SAGITTAL, CORONAL) slice.voidsetTimeSlice(int slice) Required by the parent super class, do nothing.voidsetTitle()Set the title of the frame with the image name of slice location.voidstateChanged(ChangeEvent event) Switch between slices control button and surface render button of the surface toolbar.voidswitchTabList(String command) Update the tabbed pane when switch view buttons in the View toolbar.booleanUpdate image extends from the ModelImage.booleanUpdate images in surface render, raycast render and shearwarp render.booleanupdateImages(boolean forceShow) This methods calls corresponding render to update images without LUT changes.booleanupdateImages(ModelLUT LUTa, ModelLUT LUTb, boolean forceShow, int interpMode) This methods calls corresponding render to update images with LUT changes.voidThe navigation mode update the probe position in 3D texture volume.voidCauses the PlaneRender objects to update the texture maps when the underlying ModelImage changes.voidupdateSurRenderWinlevel(boolean flag) Hack.voidRepaint the volume.voidwindowClosing(WindowEvent event) Closes window and disposes of frame and component.Methods inherited from class gov.nih.mipav.view.ViewJFrameBase
about, canCloseImageBAfterLoad, close, close, closeImageB, componentHidden, componentMoved, componentShown, getAlphaBlend, getDefaultLUTa, getDefaultLUTb, getDisplayMode, getImageNameA, getImageNameB, getLastState, getLUTa, getLUTb, getRGBTA, getRGBTB, getTriImg, getUserInterface, handleMaskPopupMenu, handlePaintToMaskPopupMenu, handleZoomPopupMenu, initExtents, initImageBuffer, initLUT, initNumSlices, initPixelBuffer, initResFactor, initResolutions, initRGB, initSlicePositions, initUnits, initZoom, loadAllVOIs, loadAllVOIsFrom, loadImage, loadLUT, loadLUTandTransferFunctionFrom, loadLUTandTransferFunctionFrom, makeString, newFrameBeenCreated, openVOI, openVOI, pickImageFile, save, save, save, saveAllVOIs, saveAllVOIsTo, saveLabels, saveLUT, saveLUTandTransferFunction, saveLUTandTransferFunction, saveLUTAs, saveLUTAs, saveVOI, saveVOIAs, saveVOIAs, saveVOIIntensities, saveVOIIntensitiesTo, setAbsPositionLabels, setEnableCloseImageBAfterLoad, setImageA, setLastState, setLinkedFrame, setLinkedTriFrame, setLUTs, setMessageText, setOpacityInfo, setpaintBitmap, setScannerPosition, windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowIconified, windowOpenedMethods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateMethods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedMethods 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, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, 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, 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, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, 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.MenuContainer
getFont, postEvent
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDUse serialVersionUID for interoperability.- See Also:
-
NONE
public static final int NONERender mode values.- See Also:
-
RAYCAST
public static final int RAYCASTDOCUMENT ME!- See Also:
-
SHEARWARP
public static final int SHEARWARPDOCUMENT ME!- See Also:
-
SURFACE
public static final int SURFACEDOCUMENT ME!- See Also:
-
DUALPANEL
public static final int DUALPANELDOCUMENT ME!- See Also:
-
ENDOSCOPY
public static final int ENDOSCOPYDOCUMENT ME!- See Also:
-
BRAINSURFACE_FLATTENER
public static final int BRAINSURFACE_FLATTENERDOCUMENT ME!- See Also:
-
SURFACEVIEW
public static final int SURFACEVIEWDOCUMENT ME!- See Also:
-
rendererProgressBar
The small bar on the top right corner the volume view frame. -
config
Configuration param, which will pass down to each render's constructor. -
isoImageA
Isotropic version image A, B, used by the shear warp renderer. -
isoImageB
Isotropic version image A, B, used by the shear warp renderer. -
modelViewLabel
Labels for the current position in 3D ModelView coordinates:. -
modelViewLabelVals
DOCUMENT ME! -
orient
protected int[] orientOrientations of the three axes. -
panelToolbar
Panel that holds the toolbars. -
patientSliceLabel
Labels for the current position in PatientSlice coordinates:. -
patientSliceLabelVals
DOCUMENT ME! -
RGBTA
Lookup table of the color imageA, B. -
RGBTB
Lookup table of the color imageA, B. -
serif12
Fonts, same asMipavUtil.font12andMipavUtil.font12B. -
serif12B
Fonts, same asMipavUtil.font12andMipavUtil.font12B. -
panelLabels
JPanel panelLabelsPanel containing the position labels:. -
axialOrientation
private boolean axialOrientationIndicates that image orientation is unknown type or not. -
brainsurfaceFlattenerRender
Rendering the brainsurfaceFlattener objects. -
cameraPanel
DOCUMENT ME! -
clipBox
DOCUMENT ME! -
clipButton
Button to invoke all the six clipping planes. -
clipDisableButton
Button to disable all the six clipping planes. -
clipMaskButton
Button to crop the clip volume. -
clipMaskUndoButton
Button to undo crop the clip volume. -
clipPanel
DOCUMENT ME! -
clipPlaneButton
Button to invoke clipping planes. -
clipSaveButton
Button to save clipped region. -
displayPanel
DOCUMENT ME! -
dualImagePane
dual image pane that holds the left and right panel. -
dualImagePanel
The image panel to hold two Canvas3D. -
dualLeftPanel
Left panel of the dual panel view. -
dualRightPanel
Right panel of the dual panel view. -
firstTimeVolView
private boolean firstTimeVolViewKeep track of whether we're switching to the volume renderer for the first time. -
flythruControl
Fly through setup control panel. -
flythruMoveControl
Fly through movement control panel. -
flythruMovePanel
View panel contains the fly thru control panel. -
flythruOptions
Fly through options. -
flythruPanel
Fly through panel. -
flythruRender
Reference to fly through renderer. -
flythruSurfaceButton
Surface load button. -
flythruTabVector
DOCUMENT ME! -
flyThruToolbar
Flythru toolbar. -
histoLUTPanel
Control panel for the surface renderer. -
imageAOriginal
Reference to the imageA original copy. -
imageOrientation
private int imageOrientationImage orientation: coronal, sagittal, axial, unknown. -
imagePanel
The image panel to hold one Canvas3D. -
intensityDialog
DOCUMENT ME! -
isBrainsurfaceFlattenerEnable
private boolean isBrainsurfaceFlattenerEnableIndicate if the brainsurface flattener render is enabled from the resample dialog or not. -
isEndoscopyEnable
private boolean isEndoscopyEnableIndicate if the fly through render is enabled from the resample dialog or not. -
isRayCastEnable
private boolean isRayCastEnableIndicate if the raycast render is enabled from the resample dialog or not. -
isShearWarpEnable
private boolean isShearWarpEnableIndicate if the shear warp render is enabled from the resample dialog or not. -
isSurfaceRenderEnable
private boolean isSurfaceRenderEnableIndicate if the surface render is enabled from the resample dialog or not. -
isSurfaceViewEnable
private boolean isSurfaceViewEnableIndicate if the surface view is enabled from the resample dialog or not. -
leftPanelRenderMode
private int leftPanelRenderModeThe left panel renderer mode. -
lightPanel
DOCUMENT ME! -
m_akPlaneRender
The three slice views displayed as texture-mapped polygons:. -
m_kBrainsurfaceFlattenerPanel
Control panels for the Brainsurface Flattener:. -
m_kGeodesicPanel
Control panel for drawing geodesic curves. -
m_kSculptPanel
Control panel for volume sculpting. -
maxPanelWidth
private int maxPanelWidthThe max width of the control panels. -
mousePanel
DOCUMENT ME! -
opacityDialog
DOCUMENT ME! -
opacityPanel
DOCUMENT ME! -
paddingImageA
Padding imageA with blank images feeding. -
paddingImageB
Padding imageB with blank images feeding. -
paintGrowDialog
Control panels of the triplanar view. -
panelHistogram
LUT control panel of the gray scale image. -
parallelButton
Rendering parallel rotation button. -
probePanel
DOCUMENT ME! -
radioCOMPOSITE
Radio button of the COMPOSITE mode option. -
radioCOMPOSITEShear
Radio button of the COMPOSITE mode option. -
radioMIP
Radio button of the MIP mode option. -
radioMIPShear
Radio button of the MIP mode option. -
radioSURFACE
Radio button of the SURFACE mode option. -
radioSURFACEFAST
Radio button of the SURFACE mode option. -
radioSURFACEShear
Radio button of the SURFACE mode option. -
radioSurrenderCOMPOSITE
Radio button of the surface render composite mode. -
radioSurrenderLIGHT
Radio button of the surface render lighting mode. -
radioXRAY
Radio button of the XRAY mode option. -
radioXRAYShear
Radio button of the XRAY mode option. -
raisedbevel
Panel Border view. -
loweredbevel
Panel Border view. -
compound
Panel Border view. -
redBorder
Panel Border view. -
etchedBorder
Panel Border view. -
pressedBorder
Panel Border view. -
raycastCameraPanel
DOCUMENT ME! -
raycastOptionsPanel
Control panels for the raycast render. -
raycastRender
DOCUMENT ME! -
raycastTabVector
DOCUMENT ME! -
rayCastToolBar
Raycast toolbar. -
resampleDialog
Reference to resample dialog, use to null out the resample dialog in this frame. -
rfaButton
Button for RFA. -
rfaSeparator
RFA separator. -
rightPane
The view pane that contains the image view and tri-planar view panels. -
rightPanelRenderMode
private int rightPanelRenderModeThe right panel renderer mode. -
screenWidth
private int screenWidthScreen width, screen height. -
screenHeight
private int screenHeightScreen width, screen height. -
sculptHeight
private int sculptHeightSculpt region height. -
sculptWidth
private int sculptWidthSculpt region width. -
shearwarpCameraPanel
DOCUMENT ME! -
shearwarpOptionsPanel
Control panels for the shearwarp render. -
shearwarpRender
DOCUMENT ME! -
shearwarpTabVector
DOCUMENT ME! -
shearWarpToolBar
Shearwarp toolbar. -
slicePanel
DOCUMENT ME! -
storeTabbedPaneIndex
private int storeTabbedPaneIndexPrevioius tab index recorder. -
surfacePanel
DOCUMENT ME! -
surRender
Three types of renderer. -
surView
Surface View reference -
surTabVector
For each render, use the vector to store the currently active tabs. -
toolbarBuilder
Toolbar builder reference. -
triImagePanel
Tri image planar render panels. -
unparallelButton
Rendering unparallel rotaion button. -
viewPanel
DOCUMENT ME! -
viewToolBar
The top one render view switch toolbar. -
volToolBar
Surface Render toolbar.
-
-
Constructor Details
-
ViewJFrameVolumeView
public ViewJFrameVolumeView(ModelImage _imageA, ModelLUT LUTa, ModelRGB _RGBTA, ModelImage _imageB, ModelLUT LUTb, ModelRGB _RGBTB, int _leftPanelRenderMode, int _rightPanelRenderMode, JDialogVolViewResample _resampleDialog) Make a volume rendering frame, which contains the toolbars on the top, control panel on the left, the volume rendering panel on the right, and the three orthogonal view ( axial, sagittal, coronal, views) on the bottom right.- Parameters:
_imageA- First image to displayLUTa- LUT of the imageA (if null grayscale LUT is constructed)_RGBTA- RGB table of imageA_imageB- Second loaded imageLUTb- LUT of the imageB_RGBTB- RGB table of imageB_leftPanelRenderMode- shear warp render mode enabled or not_rightPanelRenderMode- volume rendering panel render mode ( Raycast, shearwarp, etc)._resampleDialog- resample dialog reference.
-
-
Method Details
-
getRendererProgressBar
Retrieve the progress bar used in the volume renderer (the one in the upper right hand corner).- Returns:
- the volume renderer progress bar
-
actionPerformed
Calls various methods depending on the action.- Specified by:
actionPerformedin interfaceActionListener- Specified by:
actionPerformedin classViewJFrameBase- Parameters:
event- Event that triggers function.
-
addAttachedSurfaces
public void addAttachedSurfaces()Add any attached surfaces the current image has in its file info (if the file info is in the xml format). -
addBranch
public void addBranch(javax.media.j3d.BranchGroup kBranch, ModelTriangleMesh kMesh, javax.vecmath.Point3f kCenter) Updates the surRender -- adds a BranchGroup to the main Display.- Parameters:
kBranch- BranchGroup branch groupkMesh- ModelTriangleMesh surface meshkCenter- Point3f center of mass
-
addFlightPath
public void addFlightPath()Updates the surRender to display the flythru flight path from the flythruRender. -
addSurface
Adding surface to the 3D texuture volume.- Parameters:
dir- surface file direcotryfile- surface file name
-
buildBrainsurfaceFlattener
public void buildBrainsurfaceFlattener()Build the Brainsurface Flattener panel: -
buildCameraPanel
public void buildCameraPanel()Build the camera control panel for the surface render. -
buildClipPanel
public void buildClipPanel()Build the clipping control panel for the surface render. -
buildDisplayPanel
public void buildDisplayPanel()Build the display control panel for the surface render. -
buildFlythruMovePanel
public void buildFlythruMovePanel()Build the flythru move control panel. -
buildFlythruPanel
public void buildFlythruPanel()Build the flythru control panel. -
buildGeodesic
public void buildGeodesic()Build the Geodesic control panel. -
buildHistoLUTPanel
public void buildHistoLUTPanel()The histogram control panel of the lookup table. -
buildLabelPanel
public void buildLabelPanel()The label panel of the x, y, z slider position.- Overrides:
buildLabelPanelin classViewJFrameBase
-
buildLightPanel
public void buildLightPanel()Build the light control panel for the surface render. -
buildMousePanel
public void buildMousePanel()Build the mouse control panel for the raycast render. -
buildOpacityPanel
public void buildOpacityPanel()Build the volume opacity control panel for the surface render. -
buildProbePanel
public void buildProbePanel()Build the adding surface control panel for the surface render. -
buildRayCastCameraPanel
public void buildRayCastCameraPanel()Build the camera control panel for the raycast render. -
buildRayCastOptions
public void buildRayCastOptions()Build the view control panel for the raycast render. -
buildSculpt
public void buildSculpt()Build the Sculpturing control panel. -
buildShearWarpCameraPanel
public void buildShearWarpCameraPanel()Build the camera control panel for the shearwarp render. -
buildShearWarpOptions
public void buildShearWarpOptions()Build the view control panel for the shearwarp render. -
buildSlicePanel
public void buildSlicePanel()Build the slices control panel for the surface render. -
buildSurfacePanel
public void buildSurfacePanel()Build the adding surface control panel for the surface render. -
buildViewPanel
public void buildViewPanel()Build the view control panel for the surface render. -
calcShearWarpImage
Transform the image into shear warp image, which has the same resolution.- Parameters:
_imageA- the reference to image A._imageB- the reference to image B.
-
componentResized
Method called when a component resize event is generated. This method snaps the size of the frame and pagePanel to the nearest row, column sizing (so the gridRow and gridColumn and page layout may change).- Specified by:
componentResizedin interfaceComponentListener- Overrides:
componentResizedin classViewJFrameBase- Parameters:
event- frame resize event
-
constructRenderers
public void constructRenderers()Construct the volume rendering methods based on the choices made from the resample dialog. This method is called by the Resample dialog. -
disableTargetPointPicking
public void disableTargetPointPicking()Disable target point for the RFA probe from within the plane renderer. -
disposeLocal
public void disposeLocal(boolean flag) Dispose memory.- Parameters:
flag- call super dispose or not
-
doPadding
public void doPadding(int[] extents, int[] volExtents) Insert the blank images to the end of image. Padding the image to power of 2.- Parameters:
extents- int[] original extentsvolExtents- int[] padding to power of 2 extents.
-
doResample
public void doResample(int[] volExtents, float[] newRes, boolean forceResample, int nDim, int iFilterType) Resample the images to power of 2.- Parameters:
volExtents- resampled volume extentsnewRes- new resampled resolutionforceResample- resampled or notnDim- number of dimensionsiFilterType- type of sample filter, may be one of 7 different filters: TriLinear Interpolation, NearestNeighbor, CubicBSpline, QuadraticBSpline, CubicLagragian, QuinticLagragian, HepticLagragian, or WindowedSinc (see AlgorithmTransform.java).
-
drawBrainSurfaceFlattenerPoint
public void drawBrainSurfaceFlattenerPoint(javax.vecmath.Point3f kStart, int[] aiIndex, int iWhich) Draws the point selected on the Mesh for the brainsurfaceFlattener.- Parameters:
kStart- Ruida please add commentaiIndex- Ruida please add commentiWhich- Ruida please add comment
-
drawRFAPoint
public void drawRFAPoint(javax.vecmath.Point3f kPoint) Called from the PlaneRender class when a new Probe Entry Point has been selected. The point is passed into each PlaneRender class for display, and to the SurfaceRender class for display- Parameters:
kPoint- target point position
-
enableTargetPointPicking
public void enableTargetPointPicking()Enable target point for the RFA probe from within the plane renderer. -
getBlendValue
public int getBlendValue()Get the imageA and imageB blending value from the PlaneRender.- Returns:
- blendValue blender slider value.
-
getControls
Required by the parent super class, do nothing.- Specified by:
getControlsin classViewJFrameBase- Returns:
- null
-
getHistoLUTActiveImage
Returns which image is active in the HistoLUT -- either imageA or imageB. Called by the PlaneRenderer object to determine which LUT to update based on dragging the right-mouse in the PlaneRender window:- Returns:
- ModelImage, either imageA or imageB, depending on which is selected in the HistoLUT
-
getHistoRGBActiveImage
Returns which image is active in the HistoRGB -- either imageA or imageB. Called by the PlaneRenderer object to determine which LUT to update based on dragging the right-mouse in the PlaneRender window:- Returns:
- ModelImage, either imageA or imageB, depending on which is selected in the HistoLUT
-
getImageA
Get the image A reference.- Specified by:
getImageAin classViewJFrameBase- Returns:
- imageA model image A reference.
-
getImageB
Get the imageB reference.- Specified by:
getImageBin classViewJFrameBase- Returns:
- imageB model image B reference.
-
getImageOriginal
Get a reference to the original image we passed into the renderer from MIPAV (non-cloned).- Returns:
- the original image
-
getLUTDialog
Deprecated.Get the LUT panel (only should be used with grayscale images).- Returns:
- the histo LUT panel
-
getHistogramDialog
-
getProbeDialog
Return the rfa probe panel.- Returns:
- the rfa probe panel
-
getRGBDialog
Deprecated.Get the RGB panel (only should be used with color images).- Returns:
- the histo RGB panel
-
getSegmentationImage
Return the segmentation region map image which contains info on where the vascualture, etc are located.- Returns:
- (vessel, etc) segmentation image
-
getViewPanel
Return the image panel.- Returns:
- JSplitPane
-
insertFlythruTab
Insert tab into the flythru tab list ( flythru render ) for backup.- Parameters:
_name- flythru render control panel name_panel- flythru render control panel
-
insertRaycastTab
Insert tab into the raycast tab list ( raycast render ) for backup.- Parameters:
_name- raycast render control panel name_panel- raycast render control panel
-
insertShearwarpTab
Insert tab into the shear warp tab list ( shear warp render ) for backup.- Parameters:
_name- shear warp render control panel name_panel- shear warp render control panel
-
insertSurfaceTab
Insert tab into the surface tab list ( SurfaceRender ) for backup.- Parameters:
_name- surface render control panel name_panel- surface render control panel
-
insertTab
Insert the new tab into the current visible tab list.- Parameters:
_name- control panel name_panel- control panel
-
isBrainSurfaceFlattenerPickEnabled
public boolean isBrainSurfaceFlattenerPickEnabled()Returns the pick enabled state of the brainsurfaceFlattener.- Returns:
- flag brain surface pickable or not.
-
isGeodesicEnable
public boolean isGeodesicEnable()Check whether the Geodesic drawing is enabled or not.- Returns:
- boolean
trueGeodesic drawing enabled,falseGeodesic disable.
-
itemStateChanged
Sets the flags for the getOptionses and resets labels.- Specified by:
itemStateChangedin interfaceItemListener- Parameters:
event- Event that triggered this function.
-
mouseClicked
Handle the double mouse click event when the use swith between the dual image panel view.- Specified by:
mouseClickedin interfaceMouseListener- Parameters:
e- MouseEvent
-
mouseEntered
Methods do nothing, implemented mouseListener.- Specified by:
mouseEnteredin interfaceMouseListener- Parameters:
e- MouseEvent
-
mouseExited
Methods do nothing, implemented mouseListener.- Specified by:
mouseExitedin interfaceMouseListener- Parameters:
e- MouseEvent
-
mousePressed
Methods do nothing, implemented mouseListener.- Specified by:
mousePressedin interfaceMouseListener- Parameters:
e- MouseEvent
-
mouseReleased
Methods do nothing, implemented mouseListener.- Specified by:
mouseReleasedin interfaceMouseListener- Parameters:
e- MouseEvent
-
removeBranch
public void removeBranch(javax.media.j3d.BranchGroup kBranch, boolean bRemoveMesh) Updates the surRender -- removes a BranchGroup to the main Display.- Parameters:
kBranch- BranchGroup surface branch group reference.bRemoveMesh- boolean flag to remove the surface mesh or not
-
removeControls
public void removeControls()Required by the parent super class, do nothing.- Specified by:
removeControlsin classViewJFrameBase
-
removeProbeLine
public void removeProbeLine()Remove the red line showing where the probe will pass through. Used when changing the probe target point through the tri-images. -
resetAxisX
public void resetAxisX()Reset image volume orieint along X axis. -
resetAxisY
public void resetAxisY()Reset image volume orieint along Y axis. -
resetImage
public void resetImage()Reset image volume orieint along Z axis. -
setActiveImage
public void setActiveImage(int active) Required by the parent super class, do nothing.- Specified by:
setActiveImagein classViewJFrameBase- Parameters:
active- int
-
setAlphaBlend
public void setAlphaBlend(int value) Required by the parent super class, do nothing.- Specified by:
setAlphaBlendin classViewJFrameBase- Parameters:
value- DOCUMENT ME!
-
setControls
public void setControls()Required by the parent super class, do nothing.- Specified by:
setControlsin classViewJFrameBase
-
setEnabled
public void setEnabled(boolean flag) Do nothing methods, just extend the ViewJframeBase.- Specified by:
setEnabledin classViewJFrameBase- Parameters:
flag- DOCUMENT ME!
-
setFlythruColor
Set the flythru surface color.- Parameters:
_color- ModelLUT table
-
setImageB
Required by the parent super class, do nothing.- Specified by:
setImageBin classViewJFrameBase- Parameters:
_imageB- image to set the frame to
-
setImageOriginal
Set the reference to the original image we passed into the renderer from MIPAV (non-cloned).- Parameters:
img- the original image
-
setLUTa
Accessor that sets the LUT.- Overrides:
setLUTain classViewJFrameBase- Parameters:
LUT- the LUT
-
setLUTb
Accessor that sets the LUT.- Overrides:
setLUTbin classViewJFrameBase- Parameters:
LUT- the LUT
-
setMaterialShininess
public void setMaterialShininess(float value) Set material ( texture or voxels ) shininess value.- Parameters:
value- float
-
setPaintBitmapSwitch
public void setPaintBitmapSwitch(boolean paintBitmapSwitch) Required by the parent super class, do nothing.- Specified by:
setPaintBitmapSwitchin classViewJFrameBase- Parameters:
paintBitmapSwitch- boolean
-
setPathPosition
public void setPathPosition(javax.vecmath.Point3f kPosition, javax.vecmath.Point3f kScaledPosition) Called when the view position changes in the FlyThruRenderer, updates the position representation in the Slice views:- Parameters:
kPosition- center position.kScaledPosition- position of the flythru view point along the flythru path.
-
setPositionLabels
public void setPositionLabels(WildMagic.LibFoundation.Mathematics.Vector3f position) Sets the position labels.- Parameters:
position- the slice positions in FileCoordinates.
-
setRGBTA
Sets the RGB table for ARGB image A.- Specified by:
setRGBTAin classViewJFrameBase- Parameters:
RGBT- RGB table
-
setRGBTB
Sets the RGB table for image B.- Specified by:
setRGBTBin classViewJFrameBase- Parameters:
RGBT- RGB table
-
setRightPanelCanvas
public void setRightPanelCanvas()Update the right panel when finish loading Endoscopy images. -
setSegmentationImage
Set the image which we can check to see if the probe is hitting anything important (such as vessels, etc).- Parameters:
img- segmentation image
-
setSlice
public void setSlice(int slice) Required by the parent super class, do nothing.- Specified by:
setSlicein interfaceViewImageUpdateInterface- Parameters:
slice- int
-
setSliceFromPlane
public void setSliceFromPlane(WildMagic.LibFoundation.Mathematics.Vector3f kCenter) Sets the position of the slices in the SurfaceRender and PlaneRender objects. Called from the PlaneRender class.- Parameters:
center- the new slice positions in FileCoordinates
-
setSliceFromSurface
public void setSliceFromSurface(WildMagic.LibFoundation.Mathematics.Vector3f center) Sets the position of the slices in the PlaneRender. Called from the SurfaceRender class.- Parameters:
center- the new slice positions in FileCoordinates
-
setSliceHairColor
Sets the color for the PlaneRender iView (AXIAL, SAGITTAL, CORONAL) slice.- Parameters:
iView- (AXIAL, SAGITTAL, CORONAL)color- the new axis color attribute.
-
setTimeSlice
public void setTimeSlice(int slice) Required by the parent super class, do nothing.- Specified by:
setTimeSlicein interfaceViewImageUpdateInterface- Parameters:
slice- int
-
setTitle
public void setTitle()Set the title of the frame with the image name of slice location.- Specified by:
setTitlein classViewJFrameBase
-
stateChanged
Switch between slices control button and surface render button of the surface toolbar.- Specified by:
stateChangedin interfaceChangeListener- Overrides:
stateChangedin classViewJFrameBase- Parameters:
event- ChangeEvent
-
switchTabList
Update the tabbed pane when switch view buttons in the View toolbar.- Parameters:
command- command of the renderer's view toolbar button click.
-
updateImageExtents
public boolean updateImageExtents()Update image extends from the ModelImage. Now, disabled.- Specified by:
updateImageExtentsin interfaceViewImageUpdateInterface- Specified by:
updateImageExtentsin classViewJFrameBase- Returns:
- DOCUMENT ME!
- See Also:
-
updateImages
public boolean updateImages()Update images in surface render, raycast render and shearwarp render.- Specified by:
updateImagesin interfaceViewImageUpdateInterface- Returns:
- boolean boolean confirming successful update
-
updateImages
public boolean updateImages(boolean forceShow) This methods calls corresponding render to update images without LUT changes.- Specified by:
updateImagesin interfaceViewImageUpdateInterface- Parameters:
forceShow- forces show to reimport image and calc. java image- Returns:
- boolean confirming successful update
-
updateImages
This methods calls corresponding render to update images with LUT changes.- Specified by:
updateImagesin interfaceViewImageUpdateInterface- Parameters:
LUTa- LUT used to update imageALUTb- LUT used to update imageBforceShow- forces show to reimport image and calc. java imageinterpMode- image interpolation method (Nearest or Smooth)- Returns:
- boolean confirming successful update
-
updateProbePos
public void updateProbePos()The navigation mode update the probe position in 3D texture volume. Not used now. Might be used later on. -
updateSliceData
public void updateSliceData()Causes the PlaneRender objects to update the texture maps when the underlying ModelImage changes. -
updateSurRenderWinlevel
public void updateSurRenderWinlevel(boolean flag) Hack. Update the the surface render win-level from the plane renderer.- Parameters:
flag- true update win-level, false not update.
-
volumeRepaint
public void volumeRepaint()Repaint the volume. -
windowClosing
Closes window and disposes of frame and component.- Specified by:
windowClosingin interfaceWindowListener- Overrides:
windowClosingin classViewJFrameBase- Parameters:
event- Event that triggered function
-
buildMenu
Builds menus for the tri-planar view.- Returns:
- DOCUMENT ME!
-
buildToolbars
protected void buildToolbars()Builds the toolbars for the tri-planar view. -
configureFrame
protected void configureFrame()Constructs main frame structures for image canvas. -
finalize
Cleans up memory from gc.- Overrides:
finalizein classViewJFrameBase- Throws:
Throwable- DOCUMENT ME!
-
addToolbar
private void addToolbar()Add surface volume renderer control buttons. -
buildFlyThruToolbar
private void buildFlyThruToolbar()Build the fly through toolbar. -
buildRayCastToolbar
private void buildRayCastToolbar()Build the raycast toolbar. -
buildShearWarpToolbar
private void buildShearWarpToolbar()Build the shearwarp toolbar. -
buildSurRenderToolbar
private void buildSurRenderToolbar()Build the surface render toolbar. -
buildSurfaceViewToolbar
private void buildSurfaceViewToolbar()The the top one volume view toolbar. -
buildViewToolbar
private void buildViewToolbar()The the top one volume view toolbar. -
enableDualPanelRender
private void enableDualPanelRender()Enable dual panel renders. -
enableFlyThruRender
private void enableFlyThruRender()Enable the fly through frame layout. -
enableShearWarpRender
private void enableShearWarpRender()Enable the shear warp render. -
enableSurfaceRender
private void enableSurfaceRender()Enable surface render. -
enableVolumeRender
private void enableVolumeRender()Enable volume render. -
resetLUTMinMax
Calculate the LUT from the resampled image.- Parameters:
image- ModelImage referencelut- ModelLUT reference
-
resizePanel
private void resizePanel()Method that resizes the frame and adjusts the rows, columns as needed. -
set3DModelPosition
private void set3DModelPosition(WildMagic.LibFoundation.Mathematics.Vector3f kPosition) Sets the 3DModel position label.- Parameters:
position- DOCUMENT ME!
-
setPatientSlicePosition
private void setPatientSlicePosition(WildMagic.LibFoundation.Mathematics.Vector3f position) Sets the PatientSlice position label.- Parameters:
position- DOCUMENT ME!
-
setRFAToolbarVisible
private void setRFAToolbarVisible(boolean flag) Set the RFA button visible or not.- Parameters:
flag- Set the RFA button visible or not
-
setRenderPerspective
public void setRenderPerspective(boolean bEnable)
-