Class VolumeTriPlanarInterface
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
gov.nih.mipav.view.renderer.WildMagic.VolumeTriPlanarInterface
- All Implemented Interfaces:
VOIManagerInterfaceListener,ViewImageUpdateInterface,ActionListener,ComponentListener,WindowListener,ImageObserver,MenuContainer,PropertyChangeListener,Serializable,EventListener,Accessible,ChangeListener,RootPaneContainer,WindowConstants
- Direct Known Subclasses:
VolumeTriPlanarInterfaceDTI
public class VolumeTriPlanarInterface
extends JFrame
implements ViewImageUpdateInterface, ActionListener, WindowListener, ComponentListener, ChangeListener, VOIManagerInterfaceListener, PropertyChangeListener
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass(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 TypeFieldDescriptionprotected JPanelPanel to hold the BrainSurfaceFlattener or Flythrough views.protected CorticalAnalysisRenderRendering the brainsurfaceFlattener objects.protected JButtonButton to invoke all the six clipping planes.protected JButtonButton to disable all the six clipping planes.protected JPanelClip_WMClipping user-interface panel:protected JButtonButton to crop the clip volume.protected JButtonButton to undo crop the clip volume.protected JButtonButton to invoke clipping planes.protected JButtonButton to save clipped region.protected JPanelCustomBlendMultihistogram panel:protected JPanelDisplay_WMDisplay options panel:protected JSplitPaneFor displaying the BrainSurfaceFlattener or Flythrough renderers.protected JPanelVirtualEndoscopySetup_WMFlythough setup panel:protected JPanelFlythruMoveFlythough Move panel:protected JFrameHistogramprotected JPanelGeodesic_WMGeodesic user-interface panel:protected JPanelThe image panel to hold one Canvas3D.protected PlaneRender_WM[]The three slice views displayed as texture-mapped polygons:.private booleanprotected booleanprotected intprotected JPanelAnnotationAnimationprotected FlyThroughRenderFlythrough renderer:protected JPanelLights_WMLight panelprivate JButtonprivate JToggleButtonprivate JButtonprotected VOILatticeManagerInterfaceprotected JPanelVolumeOpacityOpacity panel.private JPanelVolume4Dprotected VolumeImageVolumeImage contains data and textures for ModelImage A.protected VolumeImageVolumeImage contains data and textures for ModelImage B.private JSplitPaneprotected intThe max width of the control panels.protected JMenuBarMenu bar.protected ViewMenuBuilderMenu items storage.protected JPanel3DMouse_WM3D mouse user-interface panel:protected JPanelMultiDimensionalTransferMultihistogram panel:protected JPanelNavigationNavigation mode user-interface panelprotected JPanelAxial view panel.protected JPanelCoronal view panel.protected JPanelSagittal view panel.protected JPanelPanel that holds the toolbars.protected GridBagConstraintsConstraints on panelToolbar layout:protected JPanelPositions(package private) intprotected VolumeTriPlanarRenderVolume/Slice/Surface renderer.protected JPanelRenderMode_WMRenderer mode user-interface panelprotected static JProgressBarThe small bar on the top right corner the volume view frame.protected JSplitPaneThe view pane that contains the image view and tri-planar view panels.protected intCurrent frame width and height.protected intCurrent frame width and height.protected JPanelSculptor_WMSculpting user-interface panel:protected static final longUse serialVersionUID for interoperability.protected JPanelSlices_WM3D Slice-view user-interface panel:protected JPanelSurface_WM3D Surface user-interface panel:protected JPanelSurfaceTexture_WMSurface Texture user-interface panel:private JTabbedPaneThe main tabbed pane in the volume view frame.protected ViewToolBarBuilderToolbar builder reference.protected JPanelTri image planar render panels.protected ViewUserInterfaceReference to the user interface.protected JToolBarThe top one render view switch toolbar.protected JMenuFields 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
ConstructorsConstructorDescriptionSpecific constructor call from the VolumeViewerDTI.VolumeTriPlanarInterface(ModelImage _imageA, ModelImage _imageB) VolumeTriPlanarInterface(ModelImage _imageA, ModelImage _imageB, boolean cloneImage) -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) voidaddAnnotationPoint(WildMagic.LibFoundation.Mathematics.Vector3f point, WildMagic.LibFoundation.Mathematics.Vector3f scannerPt) When left mouse press with the control key down on the bottom three planar view, add the annotation pointvoidaddConfiguredListener(RendererListener listener) voidaddGeodesic(WildMagic.LibGraphics.SceneGraph.TriMesh kSurface, WildMagic.LibGraphics.SceneGraph.Geometry kNew, int iGroup) Add a geodesic element to the surface display.addNode(WildMagic.LibGraphics.SceneGraph.Node kNode) Add a new display node to the volume/surface display list.voidaddPolyline(VOIContour kContour, WildMagic.LibGraphics.SceneGraph.Polyline akPolyline, int groupIndex) Add a polyline to the VolumeDTI display.voidaddSlices(VolumeSlices kSlices) Pass the VolumeSlices from the Volume Renderer to the PlaneRender objects.voidaddSphereVOIs(VOI annotations) voidaddSurface(SurfaceState kSurface) voidaddSurface(SurfaceState kSurface, boolean fileCoords) Add TriMesh surfaces to the Volume Renderer.voidaddSurface(WildMagic.LibGraphics.SceneGraph.TriMesh mesh) voidvoidBuild the clipping control panel for the surface render.voidBuild the clipping control panel for the surface render.voidvoidBuild the display control panel for the surface render.voidBuild the flythru move control panel.voidBuild the Geodesic control panel.voidThe histogram control panel of the lookup table.protected voidprivate voidvoidvoidBuild the light control panel for the surface render.protected JMenuBarBuilds menus for the tri-planar view.voidBuilds the navigation mode control panel.voidBuild the volume opacity control panel for the surface render.voidBuilds the render mode control panel.voidBuild the Sculpturing control panel.voidBuild the slices control panel for the surface render.voidBuild the adding surface control panel for the surface render.voidBuilds the Surface texture panel.protected voidThe the top one volume view toolbar.voidclose()Closes both image A and image B (if it exists).voidvoidcomponentMoved(ComponentEvent event) voidcomponentResized(ComponentEvent event) Method called when a component resize event is generated.voidcomponentShown(ComponentEvent arg0) protected voidConstructs main frame structures for image canvas.protected voidconstructRenderers(ViewJProgressBar progressBar) Construct the volume rendering methods based on the choices made from the resample dialog.voidcreate3DVOI(boolean bIntersection) voidvoidvoidCauses redisplay of all components.voidprivate voidprivate voidvoiddisposeLocal(boolean flag) Dispose memory.private voidvoidenableGeodesic(boolean bEnable) Enable geodesic calculations and display.voidenablePaint(WildMagic.LibFoundation.Mathematics.ColorRGBA kPaintColor, int iBrushSize, boolean bEnabled, boolean bPaint, boolean bDropper, boolean bPaintCan, boolean bErase) Enable painting on TriMesh surfaces.voidErase all surface paint.getActiveLookupTable(ModelImage kImage) Returns the ModelLUT or ModelRGB based on which image is currently active, either imageA or imageB and they type of image (color or grayscale).intGet the imageA and imageB blending value from the PlaneRender.WildMagic.LibFoundation.Mathematics.Vector3fGet the camera current locationfloat[]Get the camera parameters.WildMagic.LibFoundation.Mathematics.Vector3fgetFrame()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.WildMagic.LibGraphics.Rendering.Light[]Return the Light[] used in the volume/surface display.Get the LUT panel (only should be used with grayscale images).WildMagic.LibGraphics.Rendering.MaterialStategetMaterial(String kSurfaceName) Return the material properties of the given surface.Get the navigation mode interface panel.float[]Get the object parameters.WildMagic.LibFoundation.Mathematics.Matrix3fGet the object rotation matrix.floatgetOpacity(String kSurfaceName) Return the opacity properties of the given surface.Get the render mode interface panel.static final JProgressBarRetrieve the progress bar used in the volume renderer (the one in the upper right hand corner).floatgetSurfaceArea(String kSurfaceName) Return the size of the surface-area of the given surface.getSurfaceAreaString(String kSurfaceName) Return the size of the surface-area of the given surface.Return the surface panel.WildMagic.LibFoundation.Mathematics.Vector3fgetTranslateSurface(String kSurfaceName) Return the translation vector for the surface with the given name.floatReturn the size of the volume of the given surface.private StringgetVolumeRenderStateFile(boolean bSave) getVolumeString(String kSurfaceName) voidprivate voidinitVOI()voidInsert the new tab into the current visible tab list.private voidvoidvoidvoidWildMagic.LibFoundation.Mathematics.Vector3fpatientToScreen(int iActive, WildMagic.LibFoundation.Mathematics.Vector3f kPatient) voidPickCorrespondence(boolean bOn) Enables picking correspondence points between the surface renderer and the BrainSurfaceFlattener renderer.voidPickCorrespondence(int iV0, int iV1, int iV2) Passes the triangle indices of the picked triangle to the BrainSurfaceFlattener renderer for display.voidplay4D(boolean bOn) voidPointerActive(boolean bActive) WildMagic.LibFoundation.Mathematics.Vector3fPropDown(int iActive) voidWildMagic.LibFoundation.Mathematics.Vector3fPropUp(int iActive) voidvoidremoveAllGeodesic(WildMagic.LibGraphics.SceneGraph.TriMesh kSurface) Removes all geodesic curves for the given surface.voidvoidremoveGeodesic(WildMagic.LibGraphics.SceneGraph.TriMesh kSurface, int iNode, int iGroup) Remove the specific geodesic curves from the given surface.removeNode(String kNodeName) voidremovePolyline(int groupIndex) Remove the polyline from the volume DTI display.voidremoveSurface(String kSurfaceName) Remove the given surface from the render display list.voidreplaceGeodesic(WildMagic.LibGraphics.SceneGraph.TriMesh kOld, WildMagic.LibGraphics.SceneGraph.TriMesh kNew) When the Geodesic object cuts the mesh along an open curve, the old mesh changes, but does not need to be deleted and no new mesh needs to be added.voidReset image volume orientation along X axis.voidReset image volume orientation along X axis.voidReset image volume orientation along Y axis.voidReset image volume orientation along Z axis.protected voidMethod that resizes the frame and adjusts the rows, columns as needed.private voidRestoreState(VolumeRenderState kState) private voidRestoreTabs(VolumeRenderState kState) voidWhen the mouse tranlation moves the object out of the Viewing bounding box, click the home button to bring the image back to center.private voidprivate voidSaveTabs(VolumeRenderState kState) voidsetActiveImage(int active) voidsetActiveImage(ModelImage kImage) voidsetAnimationSpeed(float fValue) voidsetAnnotationMode(boolean _isAnnotationEnabled) Set the annotation modevoidsetBackface(String kSurfaceName, boolean bOn) Enables backface culling for the given surface.voidsetBackgroundColor(Color color) Sets the background color.voidsetBlendValue(int iValue) Sets the blend value between images A and B.voidsetBoundingBoxColor(Color color) Sets the volume bounding box color.voidsetCamera(WildMagic.LibFoundation.Mathematics.Vector3f center) When the mouse move in bottom three planar view, need to update the camera view location to the indicated image center.voidsetCameraLocation(WildMagic.LibFoundation.Mathematics.Vector3f v) Set the camera location.voidsetCameraNearPlane(float distance) voidDisplay the camera parameters in the user-interface.voidsetCenter(WildMagic.LibFoundation.Mathematics.Vector3f kCenter) voidsetClipping(String kSurfaceName, boolean bClip) Enable clipping for the given surface.voidSet the color for the given surface.voidvoidSetCustomBlend(int iBlendEquation, int iLogicOp, int iSrcBlend, int iDstBlend, WildMagic.LibFoundation.Mathematics.ColorRGBA kColor) voidvoidsetDropperColor(WildMagic.LibFoundation.Mathematics.ColorRGBA kDropperColor, WildMagic.LibFoundation.Mathematics.Vector3f kPickPoint) Passes the picked dropper color to the surface interface.voidsetEnabled(boolean flag) voidsetGeodesic(WildMagic.LibGraphics.SceneGraph.TriMesh kMesh, WildMagic.LibGraphics.Collision.PickRecord kPickPoint) Passes the picked point to the Geodesic object for calculating the geodesic curve on the TriMesh surface.voidsetGradientMagnitude(boolean bShow) Turn the gradient magnitude filter on/off for volume shaders.voidsetImage(ModelImage kImageA, ModelImage kImageB, ModelLUT kLUTA, ModelLUT kLUTB, boolean updateRenderer) Changes the underlying images displayed in the VolumeTriPlanarInteface.voidSetImageNew(String kSurfaceName, ModelImage kImage) Sets the ModelImage to use as an alternative to the volume ModelImage for surface texturing.voidsetIPD(float fIPD) Sets the inter-pupillary distance for stereo rendering.voidSetLUTNew(String kSurfaceName, ModelStorageBase kLUT) Sets the LUT to use as an alternative to the volume lut for surface texturing.voidsetMaterial(String kSurfaceName, WildMagic.LibGraphics.Rendering.MaterialState kMaterial, boolean bUpdate) Sets the material for the given surface.voidCauses the bottom three panels to re-display.voidsetMouseFlythruMode(boolean _isMouseflythru) Set the flythru modevoidSet the object rotation parameters for displaying.voidsetObjectRotation(WildMagic.LibFoundation.Mathematics.Matrix3f rot) Set the object rotation matrixvoidsetPaintMask(BitSet mask) voidsetPathFlythruMode(boolean _isPathflythru) voidsetPickable(String kSurfaceName, boolean bOn) Turn picking on/off for the given surface.voidsetPlaneConstant(float distance) voidsetPolygonMode(String kSurfaceName, WildMagic.LibGraphics.Rendering.WireframeState.FillMode eMode) Set the polygon mode (FILL, LINE, POINT) for the given surface.voidsetPositionLabels(WildMagic.LibFoundation.Mathematics.Vector3f position) Sets the position labels.voidsetRadiological(boolean bOn) Toggles between radiological and neurological views of the data.voidsetRenderPerspective(boolean bEnable) Switches between orthographic and perspective projection.voidvoidvoidsetShowBoxFrame(boolean bShow) Turn the volume bounding box frame on/off.voidsetShowOrientationCube(boolean bShow) Turn the orientation cube on/off.voidsetSlice(int slice) setSlice.voidsetSliceFromPlane(WildMagic.LibFoundation.Mathematics.Vector3f center) 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.voidsetSliceOpacity(int i, float fAlpha) Set the transparency value for the slice.voidsetSurfaceTexture(String kSurfaceName, boolean bOn, boolean bUseNewImage, boolean bUseNewLUT) Turns on surface texture display for the given surface.voidsetTimeSlice(int slice) setTimeSlice.voidsetTransparency(String kSurfaceName, float fValue) Set the transparency for the given surface.voidsetVisible(boolean b) voidshowBoundingBox(int i, boolean bShow) Turns showing the slice bounding box on/off.voidshowSlice(int i, boolean bShow) Turns showing the slice on/off.voidsmoothMesh(String kSurfaceName, int iteration, float alpha, boolean volumeLimit, float volumePercent) Smooth the given surface.voidsmoothThree(String kSurfaceName, int iteration, float lambda, float mu) Smooth the given surface.voidsmoothTwo(String kSurfaceName, int iteration, float fStiffness, boolean volumeLimit, float volumePercent) Smooth the given surface.voidstateChanged(ChangeEvent event) Does nothing.private VolumeRenderStatevoidSURMode(boolean bSURFast) voidtoggleGeodesicPathDisplay(String kSurfaceName, int iWhich) Switches between different ways of displaying the geodesic path (Euclidean, Geodesic, or Mesh).voidtoggleNode(WildMagic.LibGraphics.SceneGraph.Node kNode, boolean bDisplay) Toggle the display on/off for the given Node.voidtranslateSurface(String kSurfaceName, WildMagic.LibFoundation.Mathematics.Vector3f kTranslate) Changes the translation vector for the surface with the given name.voidupdate blending between images A/B.voidCauses the PlaneRender objects to update the texture maps when the underlying ModelImage changes.private voidupdateHistoLUTPanels(boolean updateImageB) Creates or updates the histogram / LUT panel and opacity panels when a new image is loaded.booleanThis methods calls the componentImage's REPAINT method to redraw the screen.booleanThis methods calls the componentImage's REPAINT method to redraw the screen.booleanupdateImages(boolean forceShow) This methods calls the componentImage's update method to redraw the screen.booleanupdateImages(ModelLUT LUTa, ModelLUT LUTb, boolean forceShow, int interpMode) This methods calls corresponding render to update images with LUT changes.voidvoidupdateLighting(WildMagic.LibGraphics.Rendering.Light[] akGLights) voidupdateMultihistoTab(boolean flag) Update the multi-histogram tab when the MultiHistogram checkbox is checked in the renderMode panel.voidCauses the texture representation of all the surface meshes to be recalculated.voidwindowActivated(WindowEvent event) voidwindowClosed(WindowEvent arg0) voidwindowClosing(WindowEvent event) voidwindowDeactivated(WindowEvent event) Does nothing.voidwindowDeiconified(WindowEvent event) voidwindowIconified(WindowEvent event) voidwindowOpened(WindowEvent arg0) Methods 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, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.awt.MenuContainer
getFont, postEventMethods inherited from interface gov.nih.mipav.view.renderer.WildMagic.VOI.VOIManagerInterfaceListener
setCursor
-
Field Details
-
serialVersionUID
protected static final long serialVersionUIDUse serialVersionUID for interoperability.- See Also:
-
rendererProgressBar
The small bar on the top right corner the volume view frame. -
mainPane
-
panelToolbar
Panel that holds the toolbars. -
panelToolBarGBC
Constraints on panelToolbar layout: -
brainsurfaceFlattenerRender
Rendering the brainsurfaceFlattener objects. -
m_kFlyThroughRender
Flythrough renderer: -
flythruControl
Flythough setup panel: -
flythruMoveControl
Flythough Move panel: -
clipGUI
Clipping user-interface panel: -
positionsPanel
-
sliceGUI
3D Slice-view user-interface panel: -
surfaceGUI
3D Surface user-interface panel: -
displayGUI
Display options panel: -
geodesicGUI
Geodesic user-interface panel: -
sculptGUI
Sculpting user-interface panel: -
surfaceTextureGUI
Surface Texture user-interface panel: -
rendererGUI
Renderer mode user-interface panel -
multiHistogramGUI
Multihistogram panel: -
customBlendGUI
Multihistogram panel: -
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. -
clipPlaneButton
Button to invoke clipping planes. -
clipSaveButton
Button to save clipped region. -
gpuPanel
The image panel to hold one Canvas3D. -
bf_flyPanel
Panel to hold the BrainSurfaceFlattener or Flythrough views. -
m_kLightsPanel
Light panel -
m_kAnnotationAnimationPanel
-
m_akPlaneRender
The three slice views displayed as texture-mapped polygons:. -
maxPanelWidth
protected int maxPanelWidthThe max width of the control panels. -
voiMenu
-
frameHistogram
-
m_kVolumeImageA
VolumeImage contains data and textures for ModelImage A. -
m_kVolumeImageB
VolumeImage contains data and textures for ModelImage B. -
raycastRenderWM
Volume/Slice/Surface renderer. -
rightPane
The view pane that contains the image view and tri-planar view panels. -
dualPane
For displaying the BrainSurfaceFlattener or Flythrough renderers. -
toolbarBuilder
Toolbar builder reference. -
triImagePanel
Tri image planar render panels. -
viewToolBar
The top one render view switch toolbar. -
m_kVolOpacityPanel
Opacity panel. -
panelAxial
Axial view panel. -
panelSagittal
Sagittal view panel. -
panelCoronal
Coronal view panel. -
mouseGUI
3D mouse user-interface panel: -
screenWidth
protected int screenWidthCurrent frame width and height. -
screenHeight
protected int screenHeightCurrent frame width and height. -
m_kVOIInterface
-
m_iVOICount
protected int m_iVOICount -
m_kVolume4DGUI
-
m_b4D
private boolean m_b4D -
m_kRecordToggle
-
m_kSaveButton
-
m_kLoadButton
-
tabbedPane
The main tabbed pane in the volume view frame. -
userInterface
Reference to the user interface. -
m_bDependentInterfaceInit
protected boolean m_bDependentInterfaceInit -
prevHeight
int prevHeight
-
-
Constructor Details
-
VolumeTriPlanarInterface
public VolumeTriPlanarInterface()Specific constructor call from the VolumeViewerDTI. -
VolumeTriPlanarInterface
-
VolumeTriPlanarInterface
-
-
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
-
addConfiguredListener
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
addGeodesic
public void addGeodesic(WildMagic.LibGraphics.SceneGraph.TriMesh kSurface, WildMagic.LibGraphics.SceneGraph.Geometry kNew, int iGroup) Add a geodesic element to the surface display.- Parameters:
kSurface- the surface the geodesic element is attached to.kNew- the new geodesic element.iGroup- the Node index.
-
addNode
Add a new display node to the volume/surface display list. This is done from the other renderers: BrainSurfaceFlattener and Flythrough.- Parameters:
kNode-
-
addPolyline
public void addPolyline(VOIContour kContour, WildMagic.LibGraphics.SceneGraph.Polyline akPolyline, int groupIndex) Add a polyline to the VolumeDTI display.- Parameters:
akPolyline- new polyline.groupIndex- Node index.
-
addSlices
Pass the VolumeSlices from the Volume Renderer to the PlaneRender objects.- Parameters:
kSlices-
-
addSurface
public void addSurface(WildMagic.LibGraphics.SceneGraph.TriMesh mesh) -
addSurface
-
addSurface
Add TriMesh surfaces to the Volume Renderer.- Parameters:
akSurfaces- new surfaces.
-
display3DWindowOnly
public void display3DWindowOnly() -
displayAnnotationSpheres
public void displayAnnotationSpheres() -
addVOIS
-
addSphereVOIs
- Specified by:
addSphereVOIsin interfaceVOIManagerInterfaceListener
-
buildClipPanel
public void buildClipPanel()Build the clipping control panel for the surface render. -
buildCustomBlendPanel
public void buildCustomBlendPanel() -
buildDisplayPanel
public void buildDisplayPanel()Build the display control panel for the surface render. -
buildFlythroughPanel
public void buildFlythroughPanel()Build the flythru move 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() -
buildLightPanel
public void buildLightPanel()Build the light control panel for the surface render. -
buildOpacityPanel
public void buildOpacityPanel()Build the volume opacity control panel for the surface render. -
buildRenderModePanel
public void buildRenderModePanel()Builds the render mode control panel. -
buildSculpt
public void buildSculpt()Build the Sculpturing control panel. -
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. -
buildSurfaceTexturePanel
public void buildSurfaceTexturePanel()Builds the Surface texture panel. -
build3DMousePanel
public void build3DMousePanel()Build the clipping control panel for the surface render. -
close
public void close()Closes both image A and image B (if it exists). It ensures the images are un-registered from the main-frame then removes any display listeners. -
componentHidden
- Specified by:
componentHiddenin interfaceComponentListener
-
componentMoved
- Specified by:
componentMovedin interfaceComponentListener
-
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- Parameters:
event- frame resize event
-
componentShown
- Specified by:
componentShownin interfaceComponentListener
-
create3DVOI
public void create3DVOI(boolean bIntersection) - Specified by:
create3DVOIin interfaceVOIManagerInterfaceListener
-
CustomBlendMode
public void CustomBlendMode() -
displayAll
public void displayAll()Causes redisplay of all components. -
disposeLocal
public void disposeLocal(boolean flag) Dispose memory.- Parameters:
flag- call super dispose or not
-
enableGeodesic
public void enableGeodesic(boolean bEnable) Enable geodesic calculations and display.- Parameters:
bEnable- when true geodesic curves are enabled.
-
enablePaint
public void enablePaint(WildMagic.LibFoundation.Mathematics.ColorRGBA kPaintColor, int iBrushSize, boolean bEnabled, boolean bPaint, boolean bDropper, boolean bPaintCan, boolean bErase) Enable painting on TriMesh surfaces.- Parameters:
kPaintColor- paint color.iBrushSize- brush size.bEnabled- painting on/off.bPaint- when true apply paint.bDropper- when true do dropper mode.bPaintCan- when true do paint can mode.bErase- when true erase.
-
eraseAllPaint
public void eraseAllPaint()Erase all surface paint. -
getActiveImage
- Specified by:
getActiveImagein interfaceVOIManagerInterfaceListener
-
getActiveLookupTable
Returns the ModelLUT or ModelRGB based on which image is currently active, either imageA or imageB and they type of image (color or grayscale).- Returns:
- the active LUT/RGB table.
-
getActiveLUT
- Specified by:
getActiveLUTin interfaceVOIManagerInterfaceListener
-
getActiveRGB
- Specified by:
getActiveRGBin interfaceVOIManagerInterfaceListener
-
getLUTPanel
-
getOpacityPanel
-
getBlendValue
public int getBlendValue()Get the imageA and imageB blending value from the PlaneRender.- Returns:
- blendValue blender slider value.
-
getCameraLocation
public WildMagic.LibFoundation.Mathematics.Vector3f getCameraLocation()Get the camera current location- Returns:
- camera position vector
-
getCameraParameters
public float[] getCameraParameters()Get the camera parameters.- Returns:
- camera parameters array.
-
getCenterPt
public WildMagic.LibFoundation.Mathematics.Vector3f getCenterPt()- Specified by:
getCenterPtin interfaceVOIManagerInterfaceListener
-
getControls
-
getFrame
- Specified by:
getFramein interfaceVOIManagerInterfaceListener
-
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.- Returns:
- imageA model image A reference.
-
getImageB
Get the imageB reference.- Returns:
- imageB model image B reference.
-
getVolumeImageA
-
getVolumeImageB
-
GetLights
public WildMagic.LibGraphics.Rendering.Light[] GetLights()Return the Light[] used in the volume/surface display.- Returns:
-
getLUTDialog
Get the LUT panel (only should be used with grayscale images).- Returns:
- the histo LUT panel
-
getMaterial
Return the material properties of the given surface.- Parameters:
kSurfaceName- the surface to query.- Returns:
- the material properties of the surface.
-
getNode
-
getObjectParameters
public float[] getObjectParameters()Get the object parameters.- Returns:
- Get the object rotation parameters array.
-
getObjectRotation
public WildMagic.LibFoundation.Mathematics.Matrix3f getObjectRotation()Get the object rotation matrix.- Returns:
- rotation matrix
-
getOpacity
Return the opacity properties of the given surface.- Parameters:
kSurfaceName- the surface to query.- Returns:
- the opacity value of the surface.
-
getRendererGUI
Get the render mode interface panel.- Returns:
- render mode interface panel.
-
getSurfaceArea
Return the size of the surface-area of the given surface.- Parameters:
kSurfaceName- the surface to calculate the surface-area for.- Returns:
- the surface-area of the surface.
-
getSurfaceAreaString
Return the size of the surface-area of the given surface.- Parameters:
kSurfaceName- the surface to calculate the surface-area for.- Returns:
- the surface-area of the surface.
-
getSurfacePanel
Return the surface panel. -
getTranslateSurface
Return the translation vector for the surface with the given name.- Parameters:
kSurfaceName- the surface to move.- Returns:
- the translation vector
-
getVOIManager
- Specified by:
getVOIManagerin interfaceVOIManagerInterfaceListener
-
getVolume
Return the size of the volume of the given surface.- Parameters:
kSurfaceName- the surface to calculate the volume for.- Returns:
- the volume of the surface.
-
getVolumeString
-
getVolumeGPU
- Returns:
- VolumeTriPlanarRender object.
-
hideMenus
public void hideMenus() -
insertTab
Insert the new tab into the current visible tab list.- Parameters:
_name- control panel name_panel- control panel
-
maskToPaint
public void maskToPaint()- Specified by:
maskToPaintin interfaceVOIManagerInterfaceListener
-
paintToShortMask
public void paintToShortMask()- Specified by:
paintToShortMaskin interfaceVOIManagerInterfaceListener
-
paintToUbyteMask
public void paintToUbyteMask()- Specified by:
paintToUbyteMaskin interfaceVOIManagerInterfaceListener
-
patientToScreen
public WildMagic.LibFoundation.Mathematics.Vector3f patientToScreen(int iActive, WildMagic.LibFoundation.Mathematics.Vector3f kPatient) -
PickCorrespondence
public void PickCorrespondence(boolean bOn) Enables picking correspondence points between the surface renderer and the BrainSurfaceFlattener renderer.- Parameters:
bOn- true enables, false disables.
-
PickCorrespondence
public void PickCorrespondence(int iV0, int iV1, int iV2) Passes the triangle indices of the picked triangle to the BrainSurfaceFlattener renderer for display.- Parameters:
iV0- index 0 of the picked triangle.iV1- index 1 of the picked triangle.iV2- index 2 of the picked triangle.
-
play4D
public void play4D(boolean bOn) -
PointerActive
public void PointerActive(boolean bActive) - Specified by:
PointerActivein interfaceVOIManagerInterfaceListener
-
PropDown
public WildMagic.LibFoundation.Mathematics.Vector3f PropDown(int iActive) - Specified by:
PropDownin interfaceVOIManagerInterfaceListener
-
PropUp
public WildMagic.LibFoundation.Mathematics.Vector3f PropUp(int iActive) - Specified by:
PropUpin interfaceVOIManagerInterfaceListener
-
refreshLighting
public void refreshLighting() -
removeAllGeodesic
public void removeAllGeodesic(WildMagic.LibGraphics.SceneGraph.TriMesh kSurface) Removes all geodesic curves for the given surface.- Parameters:
kSurface- the surface to modify.
-
removeControls
public void removeControls() -
removeGeodesic
public void removeGeodesic(WildMagic.LibGraphics.SceneGraph.TriMesh kSurface, int iNode, int iGroup) Remove the specific geodesic curves from the given surface.- Parameters:
kSurface- the surface to modify.iNode- the node to remove.iGroup- the group the node belongs to.
-
removeNode
-
removePolyline
public void removePolyline(int groupIndex) Remove the polyline from the volume DTI display.- Parameters:
groupIndex- the polyline to remove.
-
removeSurface
Remove the given surface from the render display list.- Parameters:
kSurfaceName- the name of the surface to remove.
-
replaceGeodesic
public void replaceGeodesic(WildMagic.LibGraphics.SceneGraph.TriMesh kOld, WildMagic.LibGraphics.SceneGraph.TriMesh kNew) When the Geodesic object cuts the mesh along an open curve, the old mesh changes, but does not need to be deleted and no new mesh needs to be added. This function allows the Geodesic object to replace the original mesh with the sliced mesh in the surface renderer. ReplaceMesh is also used to undo cutting operations.- Parameters:
kOld- TriMesh old surface meshkNew- TriMesh new surface mesh
-
rollbackToImageCenter
public void rollbackToImageCenter()When the mouse tranlation moves the object out of the Viewing bounding box, click the home button to bring the image back to center. -
resetAxisX
public void resetAxisX()Reset image volume orientation along X axis. -
resetAxisXInv
public void resetAxisXInv()Reset image volume orientation along X axis. -
resetAxisY
public void resetAxisY()Reset image volume orientation along Y axis. -
resetImage
public void resetImage()Reset image volume orientation along Z axis. -
setActiveImage
public void setActiveImage(int active) - Specified by:
setActiveImagein interfaceVOIManagerInterfaceListener
-
setActiveImage
- Specified by:
setActiveImagein interfaceVOIManagerInterfaceListener
-
setAnimationSpeed
public void setAnimationSpeed(float fValue) -
setBackface
Enables backface culling for the given surface.- Parameters:
kSurfaceName- the surface to modify.bOn- when true back-face culling is enabled, false disables backface culling.
-
setBackgroundColor
Sets the background color.- Parameters:
color-
-
setBlendValue
public void setBlendValue(int iValue) Sets the blend value between images A and B.- Parameters:
iValue-
-
setBoundingBoxColor
Sets the volume bounding box color.- Parameters:
color-
-
setCameraLocation
public void setCameraLocation(WildMagic.LibFoundation.Mathematics.Vector3f v) Set the camera location.- Parameters:
v- camera position vector
-
setCameraParameters
public void setCameraParameters()Display the camera parameters in the user-interface. -
setCenter
public void setCenter(WildMagic.LibFoundation.Mathematics.Vector3f kCenter) - Specified by:
setCenterin interfaceVOIManagerInterfaceListener
-
setClipping
Enable clipping for the given surface.- Parameters:
kSurfaceName- the surface to modify.bClip- true enables clipping, false disables clipping.
-
setColor
public void setColor(String kSurfaceName, WildMagic.LibFoundation.Mathematics.ColorRGB kColor, boolean bUpdate) Set the color for the given surface.- Parameters:
kSurfaceName- the surface to modify.kColor- the new color.
-
setControls
public void setControls() -
SetCustomBlend
public void SetCustomBlend(int iBlendEquation, int iLogicOp, int iSrcBlend, int iDstBlend, WildMagic.LibFoundation.Mathematics.ColorRGBA kColor) -
setDefaultCursor
public void setDefaultCursor() -
setDropperColor
public void setDropperColor(WildMagic.LibFoundation.Mathematics.ColorRGBA kDropperColor, WildMagic.LibFoundation.Mathematics.Vector3f kPickPoint) Passes the picked dropper color to the surface interface.- Parameters:
kDropperColor- the color of the surface at the picked point.kPickPoint- the picked point for use in the region-grow operation.
-
setEnabled
public void setEnabled(boolean flag) - Overrides:
setEnabledin classComponent
-
setGeodesic
public void setGeodesic(WildMagic.LibGraphics.SceneGraph.TriMesh kMesh, WildMagic.LibGraphics.Collision.PickRecord kPickPoint) Passes the picked point to the Geodesic object for calculating the geodesic curve on the TriMesh surface.- Parameters:
kMesh- the surface that was picked.kPickPoint- the picked point.
-
setGradientMagnitude
public void setGradientMagnitude(boolean bShow) Turn the gradient magnitude filter on/off for volume shaders.- Parameters:
bShow- on/off.
-
setImage
public void setImage(ModelImage kImageA, ModelImage kImageB, ModelLUT kLUTA, ModelLUT kLUTB, boolean updateRenderer) Changes the underlying images displayed in the VolumeTriPlanarInteface.- Parameters:
kImageA- new imageAkImageB- new imageBkLUTA- new lut for imageA.kLUTB- new lut for imageBupdateRenderer- flag indicating if the image dimensions have changed size. If so recreate the image on the GPU, otherwise just reload the data.
-
updateHistoLUTPanels
private void updateHistoLUTPanels(boolean updateImageB) Creates or updates the histogram / LUT panel and opacity panels when a new image is loaded. -
SetImageNew
Sets the ModelImage to use as an alternative to the volume ModelImage for surface texturing.- Parameters:
kSurfaceName- the surface to modify.kImage- the alternate ModelImage to use for the surface texture.
-
setIPD
public void setIPD(float fIPD) Sets the inter-pupillary distance for stereo rendering.- Parameters:
fIPD- the IPD value.
-
SetLUTNew
Sets the LUT to use as an alternative to the volume lut for surface texturing.- Parameters:
kSurfaceName- the surface to modify.kLUT- the new LUT.kRGBT- the new ModelRGB (for color images).
-
setMaterial
public void setMaterial(String kSurfaceName, WildMagic.LibGraphics.Rendering.MaterialState kMaterial, boolean bUpdate) Sets the material for the given surface.- Parameters:
kSurfaceName- the surface to update.kMaterial- the new material.
-
setModified
public void setModified()Causes the bottom three panels to re-display.- Specified by:
setModifiedin interfaceVOIManagerInterfaceListener
-
setObjectParameters
public void setObjectParameters()Set the object rotation parameters for displaying. -
setObjectRotation
public void setObjectRotation(WildMagic.LibFoundation.Mathematics.Matrix3f rot) Set the object rotation matrix- Parameters:
rot- rotation matrix
-
setPaintMask
- Specified by:
setPaintMaskin interfaceVOIManagerInterfaceListener
-
setPickable
Turn picking on/off for the given surface.- Parameters:
kSurfaceName- the surface to modify.bOn- when true enable picking, false disables picking.
-
setPolygonMode
public void setPolygonMode(String kSurfaceName, WildMagic.LibGraphics.Rendering.WireframeState.FillMode eMode) Set the polygon mode (FILL, LINE, POINT) for the given surface.- Parameters:
kSurfaceName- the surface to modify.eMode- FILL, LINE, or POINT.
-
setPositionLabels
public void setPositionLabels(WildMagic.LibFoundation.Mathematics.Vector3f position) Sets the position labels.- Parameters:
position- the slice positions in FileCoordinates.
-
setRadiological
public void setRadiological(boolean bOn) Toggles between radiological and neurological views of the data.- Parameters:
bOn- when true display using radiological coordinates, when false use neurological.
-
setRenderPerspective
public void setRenderPerspective(boolean bEnable) Switches between orthographic and perspective projection.- Parameters:
bEnable- when true enable perspective projection, when false use orthographic projection.
-
setRGBTA
-
setRGBTB
-
setShowBoxFrame
public void setShowBoxFrame(boolean bShow) Turn the volume bounding box frame on/off.- Parameters:
bShow- when true display the bounding box.
-
setShowOrientationCube
public void setShowOrientationCube(boolean bShow) Turn the orientation cube on/off.- Parameters:
bShow- when true display the orientation cube, when false do not display the cube.
-
setSlice
public void setSlice(int slice) Description copied from interface:ViewImageUpdateInterfacesetSlice.- Specified by:
setSlicein interfaceViewImageUpdateInterface- Parameters:
slice- Current slice
-
setSliceFromPlane
public void setSliceFromPlane(WildMagic.LibFoundation.Mathematics.Vector3f center) 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
-
setCamera
public void setCamera(WildMagic.LibFoundation.Mathematics.Vector3f center) When the mouse move in bottom three planar view, need to update the camera view location to the indicated image center.- Parameters:
center- image center
-
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.
-
setSliceOpacity
public void setSliceOpacity(int i, float fAlpha) Set the transparency value for the slice.- Parameters:
i- the slice to modify.fAlpha- the new transparency value.
-
setSurfaceTexture
public void setSurfaceTexture(String kSurfaceName, boolean bOn, boolean bUseNewImage, boolean bUseNewLUT) Turns on surface texture display for the given surface. The user can use a separate ModelImage and LUT than the one displayed in the volume renderer.- Parameters:
kSurfaceName- the name of the surface to texture.bOn- texture on/off.bUseNewImage- when false use the current ModelImage, when true the user specifies the model image.bUseNewLUT- when false use the current LUT, when true the user specifies the LUT.
-
setTimeSlice
public void setTimeSlice(int slice) Description copied from interface:ViewImageUpdateInterfacesetTimeSlice.- Specified by:
setTimeSlicein interfaceViewImageUpdateInterface- Parameters:
slice- Current time volume
-
setTransparency
Set the transparency for the given surface.- Parameters:
kSurfaceName- the name of the surface to modify.fValue- transparency value.
-
showBoundingBox
public void showBoundingBox(int i, boolean bShow) Turns showing the slice bounding box on/off.- Parameters:
i- which slice bounding box to turn off.bShow- on/off.
-
showSlice
public void showSlice(int i, boolean bShow) Turns showing the slice on/off.- Parameters:
i- which slice to turn off.bShow- on/off.
-
smoothMesh
public void smoothMesh(String kSurfaceName, int iteration, float alpha, boolean volumeLimit, float volumePercent) Smooth the given surface.- Parameters:
kSurfaceName- the name of the surface to smooth.iteration- smooth iterations.alpha- smooth factor.volumeLimit- whether to use a volume % change limit.volumePercent- the % volume change limiting factor
-
smoothThree
Smooth the given surface.- Parameters:
kSurfaceName- the name of the surface to smooth.iteration- smooth iterations.lambda- smooth factor.mu- smooth factor.
-
smoothTwo
public void smoothTwo(String kSurfaceName, int iteration, float fStiffness, boolean volumeLimit, float volumePercent) Smooth the given surface.- Parameters:
kSurfaceName- the name of the surface to smooth.iteration- smooth iterations.fStiffness- stiffness factor.volumeLimit- whether to use a volume % change limit.volumePercent- the % volume change limiting factor.
-
stateChanged
Does nothing.- Specified by:
stateChangedin interfaceChangeListener- Parameters:
event- the change event
-
SURMode
public void SURMode(boolean bSURFast) -
toggleGeodesicPathDisplay
Switches between different ways of displaying the geodesic path (Euclidean, Geodesic, or Mesh).- Parameters:
kSurfaceName- the surface the path is on.iWhich- the type of display.
-
toggleNode
public void toggleNode(WildMagic.LibGraphics.SceneGraph.Node kNode, boolean bDisplay) Toggle the display on/off for the given Node.- Parameters:
kNode- node to toggle on/off.bDisplay- display toggle on/off.
-
translateSurface
public void translateSurface(String kSurfaceName, WildMagic.LibFoundation.Mathematics.Vector3f kTranslate) Changes the translation vector for the surface with the given name.- Parameters:
kSurfaceName- the surface to move.kTranslate- the new translation vector
-
updateABBlend
public void updateABBlend()update blending between images A/B. -
updateData
public void updateData()Causes the PlaneRender objects to update the texture maps when the underlying ModelImage changes.- Specified by:
updateDatain interfaceVOIManagerInterfaceListener
-
updateImageExtents
public boolean updateImageExtents()Description copied from interface:ViewImageUpdateInterfaceThis methods calls the componentImage's REPAINT method to redraw the screen. The extents on this image have changed, so the extents need to be read in again and menus, panes and slide bars adjusted accordingly.- Specified by:
updateImageExtentsin interfaceViewImageUpdateInterface- Returns:
- boolean confirming successful update
-
updateImages
public boolean updateImages()Description copied from interface:ViewImageUpdateInterfaceThis methods calls the componentImage's REPAINT method to redraw the screen. Without LUT changes or image changes- Specified by:
updateImagesin interfaceViewImageUpdateInterface- Returns:
- boolean confirming successful update
-
updateImages
public boolean updateImages(boolean forceShow) Description copied from interface:ViewImageUpdateInterfaceThis methods calls the componentImage's update method to redraw the screen. Without LUT changes.- Specified by:
updateImagesin interfaceViewImageUpdateInterface- Parameters:
forceShow- forces show to re import 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
-
updateLevWidgetState
-
updateLighting
public void updateLighting(WildMagic.LibGraphics.Rendering.Light[] akGLights) -
updateMultihistoTab
public void updateMultihistoTab(boolean flag) Update the multi-histogram tab when the MultiHistogram checkbox is checked in the renderMode panel.- Parameters:
flag- MultiHistogram Check box checked or not.
-
updatePlanes
public void updatePlanes()Causes the texture representation of all the surface meshes to be recalculated. -
windowActivated
- Specified by:
windowActivatedin interfaceWindowListener
-
windowClosed
- Specified by:
windowClosedin interfaceWindowListener
-
windowClosing
- Specified by:
windowClosingin interfaceWindowListener
-
windowDeactivated
Does nothing.- Specified by:
windowDeactivatedin interfaceWindowListener- Parameters:
event- the window event
-
windowDeiconified
- Specified by:
windowDeiconifiedin interfaceWindowListener
-
windowIconified
- Specified by:
windowIconifiedin interfaceWindowListener
-
windowOpened
- Specified by:
windowOpenedin interfaceWindowListener
-
buildImageIndependentComponents
private void buildImageIndependentComponents() -
disposeImageDependentComponents
private void disposeImageDependentComponents() -
disposeImageIndependentComponents
private void disposeImageIndependentComponents() -
disposeRenderers
private void disposeRenderers() -
getVolumeRenderStateFile
-
initVOI
private void initVOI() -
LoadState
private void LoadState() -
RestoreState
-
RestoreTabs
-
SaveState
private void SaveState() -
SaveTabs
-
StoreState
-
buildImageDependentComponents
protected void buildImageDependentComponents() -
buildMenu
Builds menus for the tri-planar view.- Returns:
- new menu bar containing menus.
-
buildViewToolbar
protected void buildViewToolbar()The the top one volume view toolbar. -
configureFrame
protected void configureFrame()Constructs main frame structures for image canvas. -
getVolumeSlicesPanel
-
constructRenderers
Construct the volume rendering methods based on the choices made from the resample dialog. This method is called by the Resample dialog. -
resizePanel
protected void resizePanel()Method that resizes the frame and adjusts the rows, columns as needed. -
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
setCameraNearPlane
public void setCameraNearPlane(float distance) -
setPlaneConstant
public void setPlaneConstant(float distance) -
setVisible
public void setVisible(boolean b) - Overrides:
setVisiblein classWindow
-
setAnnotationMode
public void setAnnotationMode(boolean _isAnnotationEnabled) Set the annotation mode- Parameters:
_isAnnotationEnabled-
-
setMouseFlythruMode
public void setMouseFlythruMode(boolean _isMouseflythru) Set the flythru mode- Parameters:
_flythru-
-
setPathFlythruMode
public void setPathFlythruMode(boolean _isPathflythru) -
addAnnotationPoint
public void addAnnotationPoint(WildMagic.LibFoundation.Mathematics.Vector3f point, WildMagic.LibFoundation.Mathematics.Vector3f scannerPt) When left mouse press with the control key down on the bottom three planar view, add the annotation point- Parameters:
point- annotation point in patient space
-