Package gov.nih.mipav.view
Class ViewJFrameImage
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.ViewJFrameImage
- All Implemented Interfaces:
VOIManagerInterfaceListener,ViewImageUpdateInterface,ViewOpenFrameInterface,ActionListener,ComponentListener,KeyListener,MouseListener,MouseMotionListener,WindowListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,ChangeListener,RootPaneContainer,WindowConstants
- Direct Known Subclasses:
ViewJFrameFastMarching2,ViewJFrameFastMarching3
public class ViewJFrameImage
extends ViewJFrameBase
implements KeyListener, MouseListener, MouseMotionListener, ViewOpenFrameInterface, VOIManagerInterfaceListener
Makes a frame and put a single image component into it.
- Version:
- 1.0 Sept 28, 1998
- Author:
- Matthew J. McAuliffe, Ph.D.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class(package private) classPick up the selected color and call method to change the VOI color.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 ViewJColorChooserReference to the color chooser.protected ViewJComponentEditImageObject where DICOM image, ... is converted and displayed as a Java imageprotected ViewControlsImageReference to the toolbars located in the controls object.private final booleanDOCUMENT ME!private final booleanWhen loading an image into B slot, should origins and orients be matched?private JDialogDataProvenanceData provenance dialogprivate JDialogGridOptionsOnly want one gridoptions dialog per jframeimage.protected floatStorage for correction parameters where datasets have non isotropic values.protected float[]Buffer used to store image intensities the presently viewed slice of image A.protected float[]Buffer used to store image intensities the presently viewed slice of image B.protected JDialogImageInforeference to the JDialogImageInfo for updating slice/resolutions.protected JDialogImageInfoDOCUMENT ME!private booleanboolean indicating if shift button is down.protected booleanFlag indicating whether or not that the image should be displayed in Log scale.protected JMenuBarReference to the frame's menu bar.protected ViewMenuBarConstructs the image menu bar.protected ViewMenuBuilderThis object contains a number of useful functions for building a menu and querying the state of menu items.protected JDialogMultiPaintreference to the JDialogMultiPaint for shortcutsprotected intNumber of slices in a 3D dataset.protected intNumber of time sequences in a 4D dataset.private booleanused in conjuction with the above variable, stating that the paint brush has been changed but will change back to previous.protected int[]Integer buffer (4 bytes that stores the concatenated Alpha (1 byte), Red (1 byte), Green ( 1 byte ), Blue (1 byte ) data.protected int[]Integer buffer (4 bytes that stores the concatenated Alpha (1 byte), Red (1 byte), Green ( 1 byte ), Blue (1 byte ) data.private JDialogAAMClassificationprivate JDialogAAMplusSVMprivate intDOCUMENT ME!protected float[]Storage of the image voxel resolutions.protected JScrollPaneThe scrollPane where the image is displayed.private static final longUse serialVersionUID for interoperability.protected int[]Storage of the resolution units of measure.protected ButtonGroupprotected VOIManagerInterfaceprotected JMenuprotected floatStorage for correction parameters where datasets have non isotropic values.protected JDialogWinLevel[]Reference to the two window and level dialogs where [0] is for imageA, [1] for imageB.protected static final intWidth of the display screen.protected static final intHeight of the display screen.protected floatDefaults magnification of image to 1.private JDialogZoomReference to the magnification tool.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
ConstructorsConstructorDescriptionViewJFrameImage(ModelImage _imageA) Makes a frame and puts an image into it.ViewJFrameImage(ModelImage _imageA, ModelImage _imageB) Makes a frame and puts an image component into it, does not display the frame through ViewJFrameImage's init() method.ViewJFrameImage(ModelImage _imageA, ModelLUT LUTa) Makes a frame and puts an image into it.ViewJFrameImage(ModelImage _imageA, ModelLUT LUTa, Dimension loc) Makes a frame and puts an image component into it.ViewJFrameImage(ModelImage _imageA, ModelLUT LUTa, Dimension loc, boolean logMagDisplay) Makes a frame and puts an image component into it.ViewJFrameImage(ModelSimpleImage simpleImage, String name) Constructs a ModelSimpleImage VJF -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidprivate voidprivate voidvoidabout()Makes an aboutDialog box and displays information of the image plane presently being displayed.voidactionPerformed(ActionEvent event) calls various methods depending on the action.voidaddSphereVOIs(VOI annotations) private voidadjustScrollbars(int x, int y) DOCUMENT ME!voidRoutine to enable some menu items and disable othter menu items when the dimensionality or type of the image is changed.private booleanvoidclose()Closes window and disposes of frame and component.voidclose(boolean closeAll, boolean recordScriptAction) Closes window and disposes of frame and component.voidcollapseAlltoSinglePaint(boolean showProgressBar) This method is provided for the user to convert a masked area back to a painted area.voidcomponentResized(ComponentEvent event) Resizes frame and all components.protected voidprivate void computeIdealWindowSize() This method will enlarge or shrink the window size in response to the componentImage being zoomed.private voidvoidcreate3DVOI(boolean bIntersection) protected int[]Create the buffers for imageA and imageB.voiddecSlice()Decreases the slice to be displayed by one and updates title frame.voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidvoiddoLinkedScrolling(int offset) voidenableImageB(boolean enable) Quick and simple way for ViewJFrameBase to tell the ViewJFrameImage it created to set the menu (right now only for 2Dimensional) for image B.private voidvoidfinalize()Cleans memory.private voidRead the 3D atlas images directory, convert each 3D image to 2D slices based atlas.private voidReturns the reference to the currently active image.protected JDialogImageInfoReturns a reference to the image info dialog for the active image.floatReturns the alphaBlend value for blending between imageA and imageB.WildMagic.LibFoundation.Mathematics.Vector3fReturns the reference to the component image.Get control widgets (toolbars, sliders) for the image frame.getFrame()intReturn the height that the frame should have.int[]Get the frame four corner landmark points.Return the preferred size for the frame.getFrameSize(Dimension size) Return the preferred size for the frame.intReturn the width that the frame should have.Returns the reference to imageA.Returns the reference to imageB.protected JDialogImageInfoReturns the image info dialog for image B.getRegisteredFramedImages(ModelImage activeImage) Returns the Vector of Registered Framed Images that are of the same number of dimensions as the active image and same extents for dimesions 3, 4, and 5.getRegisteredFramedImages4D3D(ModelImage activeImage) If active image is 4D, this returns all 3d images that have same x,y,and z dimensionality as the 4d imageintReturns the size of the RegisteredFramedImages Vector.getRGBTA()Gets the RGB LUT table for ARGB image A.getRGBTB()Gets the RGB LUT table for ARGB image B.DOCUMENT ME!protected intGet the height of the scroll pane holding the component image.protected DimensionGet the size of the scroll pane holding the component image.getScrollPaneSize(Dimension size) Return the preferred size for the component image scroll pane.protected intGet the width of the scroll pane holding the component image.intGet the top-most slice.intGets the current Time slice which is being viewed.booleanhandleMaskToPaint(boolean showProgressBar) This method is provided for the user to convert a masked area back to a painted area.private voidvoidincSlice()Increases the slice to be displayed by one and updates title frame.voidprivate voidInitializes the frame and variables.protected voidinitComponentImage(int[] extents) Creates and initializes the component image for the given image.voidInitializes the variables based on the image extents.protected voidinitLUT()Creates and initializes the LUT for the first image (imageA) if it hasn't been already.voidInitializes the resolutions and units from the image.protected voidinitVOI()Initialize the 3D VOI interface.voidinitZoom()Initializes the zoom variables for the first image (imageA).private booleanHelper method to establish if there are other images so that a dialog can be created.private booleanisMultipleSameSizeImages(boolean isForCalculator) Helper method to establish if there are images of the same dimensionality so that a dialog can be created.void********************************************************************* **************************** Key Events *** **************************voidDOCUMENT ME!voidDOCUMENT ME!private voidprotected StringConstructs the title of the frame with the image name and the slice location.voidvoidmouseClicked(MouseEvent event) DOCUMENT ME!voidDOCUMENT ME!voidmouseEntered(MouseEvent event) DOCUMENT ME!voidmouseExited(MouseEvent event) DOCUMENT ME!voidDOCUMENT ME!voidmousePressed(MouseEvent event) DOCUMENT ME!voidmouseReleased(MouseEvent event) DOCUMENT ME!openFrame(ModelImage image) ViewOpenFrameInterface function to create a new frame from a result image (jdialog produced)voidvoidvoidPointerActive(boolean bActive) voidMethod to send an image to the printer.private voidDOCUMENT ME!private voidDOCUMENT ME!private voidDOCUMENT ME!WildMagic.LibFoundation.Mathematics.Vector3fPropDown(int iActive) WildMagic.LibFoundation.Mathematics.Vector3fPropUp(int iActive) private voidprivate voidprivate voidReconstruct the prostate surface from the coarse VOIs cloudy points.voidvoidRemoves the menu and controls of the main frame so that a new frame can load the main frame with the proper controls.voidvoidvoidvoidvoidSaves the image info; need to do before saving image.private voidThis method merges the 3 axial, sagittal, coronal VOIs and save them into one cloudy points file.private voidprivate voidprivate voidvoidsetActiveImage(int active) Sets the active image for drawing VOIs.voidsetActiveImage(ModelImage kImage) voidsetAlphaBlend(int value) Sets the alpha blending of parameter for two image displaying.booleansetAndLoad(ModelImage image2load) DOCUMENT ME!booleansetAndLoad(ModelImage image2load, boolean doOrigins, boolean doOrients, double defaultValue, double defaultRed, double defaultGreen, double defaultBlue) DOCUMENT ME!voidsetCenter(WildMagic.LibFoundation.Mathematics.Vector3f kCenter) voidSets the menu and controls (i.e. toolbars) of the main frame!voidvoidsetEnabled(boolean flag) Controls whether or not the images/VOIs of the frame can be modified.voidsetImageB(ModelImage _imageB) Sets the reference to imageB.voidSets the LUT for image A.voidSets the LUT for image B.voidvoidsetOutputWindowBox(boolean isShown) Updates the checkbox to show whether or not the output window is currently displayed.voidsetPaintBitmapSwitch(boolean paintBitmapSwitch) When switching the active image, copy the paintBitmap of the previous active image into the paintBitmap of the new active image.voidsetPaintMask(BitSet mask) voidSets the RGB LUT table for ARGB image A.voidSets the RGB LUT table for ARGB image B.voidsetShiftDown(boolean isShiftDown) DOCUMENT MEvoidsetSlice(int slice) Sets the slice to be displayed and updates title frame.voidsetSlice(int slice, boolean updateLinkedImages) DOCUMENT ME!voidsetTimeSlice(int slice) Sets the slice to be displayed and updates title frame.voidsetTimeSlice(int slice, boolean checkScroll) Sets the slice to be displayed and updates title frame.voidsetTitle()Sets the title of the frame with the image name and the slice location.booleansetZoomB()Sets the magnification of Image B.voidSets the magnification dialog to null.voidDOCUMENT ME!voidstateChanged(ChangeEvent event) DOCUMENT ME!private voidprotected booleantestParameter(String str, double minValue, double maxValue) Tests that the entered parameter is in range.private voidvoidprivate voidprivate voidprivate voidvoidDOCUMENT ME!voidvoidupdateFrame(float sX, float sY) Updates the this frame's size the components sizes.voidupdateFrame(float sX, float sY, int x, int y) public void updateFrame(float xZoom, float yZoom, int x, int y) This method is called when the user is zooming in or out.protected voidupdateHistoLUTFrame(int imageAorB) Deprecated.protected voidupdateHistoLUTFrame(int imageAorB, ViewJComponentEditImage compImg) Deprecated.protected voidupdateHistoRGBFrame(int imageAorB) Deprecated.protected voidupdateHistoRGBFrame(int imageAorB, ViewJComponentEditImage compImg) Deprecated.booleanThis methods calls the componentImage's REPAINT method to redraw the screen.booleanThis methods calls the componentImage's update method to redraw the screen - fastest of the three update methods.booleanupdateImages(boolean forceShow) This methods calls the componentImage's update method to redraw the screen.booleanupdateImages(boolean forceShow, int interpMode) This methods calls the componentImage's update method to redraw the screen.booleanupdateImages(ModelLUT LUTa, ModelLUT LUTb, boolean forceShow, int interpMode) This methods calls the componentImage's update method to redraw the screen.voidThis method updates the menubar; ie: after an image has been opened.voidupdateWinLevel(int min, int max) Update the window level sliders from the CT preset dialog.voidwindowClosing(WindowEvent event) Closes window and disposes of frame and component.Methods inherited from class gov.nih.mipav.view.ViewJFrameBase
about, buildLabelPanel, canCloseImageBAfterLoad, close, closeImageB, componentHidden, componentMoved, componentShown, getDefaultLUTa, getDefaultLUTb, getDisplayMode, getImageNameA, getImageNameB, getLastState, getLUTa, getLUTb, 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, 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, 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:
-
xScreen
protected static final int xScreenWidth of the display screen. -
yScreen
protected static final int yScreenHeight of the display screen. -
componentImage
Object where DICOM image, ... is converted and displayed as a Java image -
controls
Reference to the toolbars located in the controls object. -
heightResFactor
protected float heightResFactorStorage for correction parameters where datasets have non isotropic values. -
imageBufferA
protected float[] imageBufferABuffer used to store image intensities the presently viewed slice of image A. -
imageBufferB
protected float[] imageBufferBBuffer used to store image intensities the presently viewed slice of image B. -
infoDialogA
reference to the JDialogImageInfo for updating slice/resolutions. -
infoDialogB
DOCUMENT ME! -
logMagDisplay
protected boolean logMagDisplayFlag indicating whether or not that the image should be displayed in Log scale. Used primarily for displaying the FFT of an image. -
nImage
protected int nImageNumber of slices in a 3D dataset. -
nTImage
protected int nTImageNumber of time sequences in a 4D dataset. -
pixBuffer
protected int[] pixBufferInteger buffer (4 bytes that stores the concatenated Alpha (1 byte), Red (1 byte), Green ( 1 byte ), Blue (1 byte ) data. The ARGB values are generated by using the imageA intensities as a index into a LUT. -
pixBufferB
protected int[] pixBufferBInteger buffer (4 bytes that stores the concatenated Alpha (1 byte), Red (1 byte), Green ( 1 byte ), Blue (1 byte ) data. The ARGB values are generated by using the imageB intensities as a index into a LUT. -
resols
protected float[] resolsStorage of the image voxel resolutions. One resolution value per dimension. -
scrollPane
The scrollPane where the image is displayed. -
units
protected int[] unitsStorage of the resolution units of measure. For example, mm, cm, inches ... -
widthResFactor
protected float widthResFactorStorage for correction parameters where datasets have non isotropic values. -
windowLevel
Reference to the two window and level dialogs where [0] is for imageA, [1] for imageB. -
zoom
protected float zoomDefaults magnification of image to 1. -
colorChooser
Reference to the color chooser. -
doOrients
private final boolean doOrientsDOCUMENT ME!- See Also:
-
doOrigins
private final boolean doOriginsWhen loading an image into B slot, should origins and orients be matched?- See Also:
-
gridOptions
Only want one gridoptions dialog per jframeimage. -
isShiftDown
private boolean isShiftDownboolean indicating if shift button is down. -
paintBrushLocked
private boolean paintBrushLockedused in conjuction with the above variable, stating that the paint brush has been changed but will change back to previous. -
quickPaintBrushIndex
private int quickPaintBrushIndexDOCUMENT ME! -
zoomDialog
Reference to the magnification tool. -
dpDialog
Data provenance dialog -
multipaintDialog
reference to the JDialogMultiPaint for shortcuts -
VOIGroup
-
voiMenu
-
voiManager
-
prostateAAMClassification
-
prostateML
-
-
Constructor Details
-
ViewJFrameImage
Makes a frame and puts an image into it. Image will be centered on screen.- Parameters:
_imageA- ModelImage - first image to display
-
ViewJFrameImage
Makes a frame and puts an image into it. Image will be centered on screen.- Parameters:
_imageA- ModelImage - first image to displayLUTa- LUT of the imageA (if null grayscale LUT is constructed)
-
ViewJFrameImage
Makes a frame and puts an image component into it.- Parameters:
_imageA- First image to displayLUTa- LUT of the imageA (if null grayscale LUT is constructed)loc- location where image should be initially placed
-
ViewJFrameImage
Makes a frame and puts an image component into it, does not display the frame through ViewJFrameImage's init() method.- Parameters:
_imageA- First image to display_imageB- Second image to display
-
ViewJFrameImage
Makes a frame and puts an image component into it.- Parameters:
_imageA- First image to displayLUTa- LUT of the imageA (if null grayscale LUT is constructed)loc- location where image should be initially placedlogMagDisplay- Display log magnitude of image
-
ViewJFrameImage
Constructs a ModelSimpleImage VJF- Parameters:
simpleImage-name-
-
-
Method Details
-
about
public void about()Makes an aboutDialog box and displays information of the image plane presently being displayed. -
actionPerformed
calls various methods depending on the action.- Specified by:
actionPerformedin interfaceActionListener- Specified by:
actionPerformedin classViewJFrameBase- Parameters:
event- event that triggered function
-
close
public void close()Closes window and disposes of frame and component.- Overrides:
closein classViewJFrameBase
-
close
public void close(boolean closeAll, boolean recordScriptAction) Closes window and disposes of frame and component. -
removeComponentListener
public void removeComponentListener() -
removeMouseMotionListener
public void removeMouseMotionListener() -
removeWindowListener
public void removeWindowListener() -
removeMouseListener
public void removeMouseListener() -
removeKeyListener
public void removeKeyListener() -
collapseAlltoSinglePaint
public void collapseAlltoSinglePaint(boolean showProgressBar) This method is provided for the user to convert a masked area back to a painted area. It only affects those areas that were masked with the intensity value that is currently active.- Parameters:
showProgressBar- DOCUMENT ME!
-
componentResized
Resizes frame and all components.- Specified by:
componentResizedin interfaceComponentListener- Overrides:
componentResizedin classViewJFrameBase- Parameters:
event- event that triggered function
-
decSlice
public void decSlice()Decreases the slice to be displayed by one and updates title frame. -
decSliceEyeTracker
public void decSliceEyeTracker() -
doLinkedScrolling
public void doLinkedScrolling(int offset) -
enableImageB
public void enableImageB(boolean enable) Quick and simple way for ViewJFrameBase to tell the ViewJFrameImage it created to set the menu (right now only for 2Dimensional) for image B.- Parameters:
enable- whether to enable the imageB related menu items
-
changeMenuEnables
public void changeMenuEnables()Routine to enable some menu items and disable othter menu items when the dimensionality or type of the image is changed. -
finalize
Cleans memory.- Overrides:
finalizein classViewJFrameBase- Throws:
Throwable- theExceptionraised by this method
-
getActiveImage
Returns the reference to the currently active image.- Specified by:
getActiveImagein interfaceVOIManagerInterfaceListener- Returns:
- the active image
-
getAlphaBlend
public float getAlphaBlend()Returns the alphaBlend value for blending between imageA and imageB.- Overrides:
getAlphaBlendin classViewJFrameBase- Returns:
- the alphaBlend value for blending between imageA and imageB
-
getComponentImage
Returns the reference to the component image.- Returns:
- component image
-
getControls
Get control widgets (toolbars, sliders) for the image frame.- Specified by:
getControlsin classViewJFrameBase- Returns:
- the controls for this image frame
-
getFrameHeight
public int getFrameHeight()Return the height that the frame should have.- Returns:
- the frame's height
-
getFrameSize
Return the preferred size for the frame.- Returns:
- the size the frame should be
-
getFrameSize
Return the preferred size for the frame.- Parameters:
size- if non-null, its dimensions are changed to the size the frame should be- Returns:
- the size the frame should be
-
getFrameWidth
public int getFrameWidth()Return the width that the frame should have.- Returns:
- the frame's width
-
getImageA
Returns the reference to imageA.- Specified by:
getImageAin classViewJFrameBase- Returns:
- image
-
getImageB
Returns the reference to imageB.- Specified by:
getImageBin classViewJFrameBase- Returns:
- imageB
-
getViewMenuBar
- Returns:
- menuBarMaker
-
getJMenuBar
- Overrides:
getJMenuBarin classJFrame- Returns:
- menuBar
-
getRegisteredFramedImages
Returns the Vector of Registered Framed Images that are of the same number of dimensions as the active image and same extents for dimesions 3, 4, and 5.- Returns:
- Vector
-
getRegisteredFramedImages4D3D
If active image is 4D, this returns all 3d images that have same x,y,and z dimensionality as the 4d image- Returns:
- Vector
-
getRegisteredFramedImagesSize
public int getRegisteredFramedImagesSize()Returns the size of the RegisteredFramedImages Vector.- Returns:
- size of the Vector
-
getRGBTA
Gets the RGB LUT table for ARGB image A.- Overrides:
getRGBTAin classViewJFrameBase- Returns:
- RGBT the new RGB LUT to be applied to the image
-
getRGBTB
Gets the RGB LUT table for ARGB image B.- Overrides:
getRGBTBin classViewJFrameBase- Returns:
- RGBT the new RGB LUT to be applied to the image
-
getScrollPane
DOCUMENT ME!- Returns:
- JScrollPane
-
getScrollPaneSize
Return the preferred size for the component image scroll pane.- Parameters:
size- if non-null, its dimensions are changed to the size the scroll pane should be- Returns:
- the size the scroll pane should be
-
getViewableSlice
public int getViewableSlice()Get the top-most slice.- Returns:
- returns the slice which is currently displayed
-
getViewableTimeSlice
public int getViewableTimeSlice()Gets the current Time slice which is being viewed.- Returns:
- int the current time slice
-
handleMaskToPaint
public boolean handleMaskToPaint(boolean showProgressBar) This method is provided for the user to convert a masked area back to a painted area. It only affects those areas that were masked with the intensity value that is currently active.- Parameters:
showProgressBar- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
incSlice
public void incSlice()Increases the slice to be displayed by one and updates title frame. -
incSliceEyeTracker
public void incSliceEyeTracker() -
initExtentsVariables
Initializes the variables based on the image extents. (i.e. number of slices, number of time slices, the initial z-slice, etc.- Parameters:
img- the image to set the extent variables for
-
keyPressed
********************************************************************* **************************** Key Events *** **************************.*********************************************************************- Specified by:
keyPressedin interfaceKeyListener- Parameters:
e- DOCUMENT ME!
-
keyReleased
DOCUMENT ME!- Specified by:
keyReleasedin interfaceKeyListener- Parameters:
e- DOCUMENT ME!
-
keyTyped
DOCUMENT ME!- Specified by:
keyTypedin interfaceKeyListener- Parameters:
e- DOCUMENT ME!
-
mouseClicked
DOCUMENT ME!- Specified by:
mouseClickedin interfaceMouseListener- Parameters:
event- DOCUMENT ME!
-
mouseDragged
DOCUMENT ME!- Specified by:
mouseDraggedin interfaceMouseMotionListener- Parameters:
e- DOCUMENT ME!
-
mouseEntered
DOCUMENT ME!- Specified by:
mouseEnteredin interfaceMouseListener- Parameters:
event- DOCUMENT ME!
-
mouseExited
DOCUMENT ME!- Specified by:
mouseExitedin interfaceMouseListener- Parameters:
event- DOCUMENT ME!
-
mouseMoved
DOCUMENT ME!- Specified by:
mouseMovedin interfaceMouseMotionListener- Parameters:
e- DOCUMENT ME!
-
mousePressed
DOCUMENT ME!- Specified by:
mousePressedin interfaceMouseListener- Parameters:
event- DOCUMENT ME!
-
mouseReleased
DOCUMENT ME!- Specified by:
mouseReleasedin interfaceMouseListener- Parameters:
event- DOCUMENT ME!
-
openFrame
ViewOpenFrameInterface function to create a new frame from a result image (jdialog produced)- Specified by:
openFramein interfaceViewOpenFrameInterface
-
printImage
public void printImage()Method to send an image to the printer. -
removeControls
public void removeControls()Removes the menu and controls of the main frame so that a new frame can load the main frame with the proper controls. Since the controls point to this particular image, when we remove the controls, turn off the highlight box.- Specified by:
removeControlsin classViewJFrameBase- See Also:
-
saveImageInfo
public void saveImageInfo()Saves the image info; need to do before saving image. -
setActiveImage
public void setActiveImage(int active) Sets the active image for drawing VOIs. VOIs are only drawn in the active image. In addition, algorithms are executed on the active window.- Specified by:
setActiveImagein interfaceVOIManagerInterfaceListener- Specified by:
setActiveImagein classViewJFrameBase- Parameters:
active- IMAGE_A or IMAGE_B
-
setAlphaBlend
public void setAlphaBlend(int value) Sets the alpha blending of parameter for two image displaying.- Specified by:
setAlphaBlendin classViewJFrameBase- Parameters:
value- amount [0,100] that is the percentage of Image A to be displayed
-
setAndLoad
DOCUMENT ME!- Parameters:
image2load- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
setAndLoad
public boolean setAndLoad(ModelImage image2load, boolean doOrigins, boolean doOrients, double defaultValue, double defaultRed, double defaultGreen, double defaultBlue) DOCUMENT ME!- Parameters:
image2load- DOCUMENT ME!doOrigins- DOCUMENT ME!doOrients- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
setControls
public void setControls()Sets the menu and controls (i.e. toolbars) of the main frame! This puts the menus and controls needed to controls the operations of this frame. Different image frames have different menu and controls. Notify this componentImage that it needs to display highlight box, notifying user that this componentImage is the image being controlled- Specified by:
setControlsin classViewJFrameBase- See Also:
-
setEnabled
public void setEnabled(boolean flag) Controls whether or not the images/VOIs of the frame can be modified.- Specified by:
setEnabledin classViewJFrameBase- Parameters:
flag- if true the image/VOIs can be modified; if false image/VOIs can NOT be modified
-
setImageB
Sets the reference to imageB.- Specified by:
setImageBin classViewJFrameBase- Parameters:
_imageB- image to set the frame to
-
setLUTa
Sets the LUT for image A.- Overrides:
setLUTain classViewJFrameBase- Parameters:
LUT- the LUT
-
setLUTb
Sets the LUT for image B.- Overrides:
setLUTbin classViewJFrameBase- Parameters:
LUT- the LUT
-
setOutputWindowBox
public void setOutputWindowBox(boolean isShown) Updates the checkbox to show whether or not the output window is currently displayed.- Parameters:
isShown- boolean is the output window shown
-
setPaintBitmapSwitch
public void setPaintBitmapSwitch(boolean paintBitmapSwitch) When switching the active image, copy the paintBitmap of the previous active image into the paintBitmap of the new active image.- Specified by:
setPaintBitmapSwitchin classViewJFrameBase- Parameters:
paintBitmapSwitch- if true do not getMask on a setActiveImage command
-
setRGBTA
Sets the RGB LUT table for ARGB image A.- Specified by:
setRGBTAin classViewJFrameBase- Parameters:
RGBT- the new RGB LUT to be applied to the image
-
setRGBTB
Sets the RGB LUT table for ARGB image B.- Specified by:
setRGBTBin classViewJFrameBase- Parameters:
RGBT- the new RGB LUT to be applied to the image
-
setShiftDown
public void setShiftDown(boolean isShiftDown) DOCUMENT ME.*- Parameters:
isShiftDown- DOCUMENT ME!
-
setSlice
public void setSlice(int slice) Sets the slice to be displayed and updates title frame.- Specified by:
setSlicein interfaceViewImageUpdateInterface- Parameters:
slice- indicates image slice to be displayed
-
setSlice
public void setSlice(int slice, boolean updateLinkedImages) DOCUMENT ME!- Parameters:
slice- DOCUMENT ME!updateLinkedImages- DOCUMENT ME!
-
setTimeSlice
public void setTimeSlice(int slice) Sets the slice to be displayed and updates title frame.- Specified by:
setTimeSlicein interfaceViewImageUpdateInterface- Parameters:
slice- indicates image time-slice (4th dimension) to be displayed
-
setTimeSlice
public void setTimeSlice(int slice, boolean checkScroll) Sets the slice to be displayed and updates title frame.- Parameters:
slice- indicates image time-slice (4th dimension) to be displayedwhether- linked images should change their linked image sets
-
setTitle
public void setTitle()Sets the title of the frame with the image name and the slice location.- Specified by:
setTitlein classViewJFrameBase
-
setZoomB
public boolean setZoomB()Sets the magnification of Image B. Allocates the image buffers so that it can be displayed properly.- Returns:
- true if setting the zoom on imageB was successful
-
setZoomDialogNull
public void setZoomDialogNull()Sets the magnification dialog to null. -
showEditImageInfo
public void showEditImageInfo()DOCUMENT ME! -
stateChanged
DOCUMENT ME!- Specified by:
stateChangedin interfaceChangeListener- Overrides:
stateChangedin classViewJFrameBase- Parameters:
event- DOCUMENT ME!
-
triPlanarClosing
public void triPlanarClosing()DOCUMENT ME! -
updateFrame
public void updateFrame(float sX, float sY) Updates the this frame's size the components sizes. If the magnified image fits into the frame that will fit into the screen then frame and image are sized appropriately. If the frame, to fit the image, exceeds the screen size the frame remains the same size and the image magnified and placed in the scroll pane.- Parameters:
sX- zoom in the x dimensionsY- zoom in the y dimension
-
updateFrame
public void updateFrame(float sX, float sY, int x, int y) public void updateFrame(float xZoom, float yZoom, int x, int y) This method is called when the user is zooming in or out.- Parameters:
sX- float zoom in the x dimensionsY- float zoom in the y dimensionx- int X-pixel the user wants to zoom aroundy- int Y-pixel the user wants to zoom around
-
updateImageExtents
public boolean updateImageExtents()This 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- Specified by:
updateImageExtentsin classViewJFrameBase- Returns:
- whether the image extents update was successful
- See Also:
-
updateImages
public boolean updateImages()This methods calls the componentImage's update method to redraw the screen - fastest of the three update methods.- Specified by:
updateImagesin interfaceViewImageUpdateInterface- Returns:
- boolean confirming successful update
-
updateImages
public boolean updateImages(boolean forceShow) This 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
public boolean updateImages(boolean forceShow, int interpMode) This methods calls the componentImage's update method to redraw the screen. Without LUT changes.- Parameters:
forceShow- forces show to re import image and calc. java imageinterpMode-- Returns:
- boolean confirming successful update
-
updateImages
This methods calls the componentImage's update method to redraw the screen.- Specified by:
updateImagesin interfaceViewImageUpdateInterface- Parameters:
LUTa- LUT used to update imageALUTb- LUT used to update imageBforceShow- forces show to re import image and calc. java imageinterpMode- image interpolation method (Nearest or Smooth)- Returns:
- boolean confirming successful update
-
updateMenubar
public void updateMenubar()This method updates the menubar; ie: after an image has been opened. -
updateWinLevel
public void updateWinLevel(int min, int max) Update the window level sliders from the CT preset dialog.- Parameters:
min- min value.max- max value.
-
windowClosing
Closes window and disposes of frame and component.- Specified by:
windowClosingin interfaceWindowListener- Overrides:
windowClosingin classViewJFrameBase- Parameters:
event- Event that triggered function
-
createBuffers
Create the buffers for imageA and imageB.- Returns:
- the extents of the buffers
- Throws:
OutOfMemoryError- if enough memory cannot be allocated for this method
-
getActiveImageInfoDialog
Returns a reference to the image info dialog for the active image. Image A and image B have references to their individual dialogs.- Returns:
- a reference to the image info dialog for the active image
-
getImageInfoDialogB
Returns the image info dialog for image B.- Returns:
- the image info dialog for image B
-
getScrollPaneHeight
protected int getScrollPaneHeight()Get the height of the scroll pane holding the component image.- Returns:
- the height of the component image scroll pane
-
getScrollPaneSize
Get the size of the scroll pane holding the component image.- Returns:
- the size of the component image scroll pane
-
getScrollPaneWidth
protected int getScrollPaneWidth()Get the width of the scroll pane holding the component image.- Returns:
- the width of the component image scroll pane
-
initLUT
Creates and initializes the LUT for the first image (imageA) if it hasn't been already.- Throws:
OutOfMemoryError- if enough memory cannot be allocated for this method
-
initResolutions
public void initResolutions()Initializes the resolutions and units from the image. -
initZoom
public void initZoom()Initializes the zoom variables for the first image (imageA). -
makeTitle
Constructs the title of the frame with the image name and the slice location.- Returns:
- the image frame title
-
testParameter
Tests that the entered parameter is in range.- Parameters:
str- the value entered by the userminValue- the minimum value this variable may be set tomaxValue- the maximum value this variable may be set to- Returns:
- boolean result of test
-
updateHistoLUTFrame
Deprecated.Displays histoLUT frame for a gray scale image.- Parameters:
imageAorB- whether to show the IMAGE_A, IMAGE_B or IMAGE_A_B lut frame
-
updateHistoLUTFrame
Deprecated.Displays histoLUT frame for a gray scale image.- Parameters:
imageAorB- whether to show the IMAGE_A, IMAGE_B or IMAGE_A_B lut framecompImg- the component image with the image histogram frames to update
-
updateHistoRGBFrame
Deprecated.Displays histoRGB frame for an RGB image.- Parameters:
imageAorB- indicates whether to show IMAGE_A, IMAGE_B or IMAGE_A_B (both).
-
updateHistoRGBFrame
Deprecated.Displays histoRGB frame for an RGB image.- Parameters:
imageAorB- indicates whether to show IMAGE_A, IMAGE_B or IMAGE_A_B (both).compImg- the component image with the image histogram frames to update
-
adjustScrollbars
private void adjustScrollbars(int x, int y) DOCUMENT ME!- Parameters:
x- inty- int
-
computeIdealWindowSize
protected void computeIdealWindowSize()private void computeIdealWindowSize() This method will enlarge or shrink the window size in response to the componentImage being zoomed. It will only resize the window to IMAGE_SCREEN_RATIO of the screen size, in this case 3/5. If the image is zoomed past that size, scrollbars are added. If the user has dragged the window to a size larger than 3/5 of screen size, I assume he wants it that way and the window will not be resized in that case upon zoom-in. -
init
Initializes the frame and variables.- Parameters:
LUTa- LUT of the imageA (if null grayscale LUT is constructed)loc- location where image should be initially placedlogMagDisplay- a boolean indicating if the log magnitude of image should be displayed.- Throws:
OutOfMemoryError- if enough memory cannot be allocated for the GUI
-
initComponentImage
Creates and initializes the component image for the given image.- Parameters:
extents- the image dimensionality.- Throws:
OutOfMemoryError- if enough memory cannot be allocated for this method
-
isMultipleImages
private boolean isMultipleImages()Helper method to establish if there are other images so that a dialog can be created. Used by registration methods, load frame, etc.- Returns:
trueif there are images to operate on.
-
isMultipleSameSizeImages
private boolean isMultipleSameSizeImages(boolean isForCalculator) Helper method to establish if there are images of the same dimensionality so that a dialog can be created. Used by image calculator, concat, etc.- Parameters:
isForCalculator- whether this call is being done before using the image calculator- Returns:
trueif there are images to operate on.
-
propagatePaintToAllSlices
private void propagatePaintToAllSlices()DOCUMENT ME! -
propagatePaintToNextSlice
private void propagatePaintToNextSlice()DOCUMENT ME! -
propagatePaintToPreviousSlice
private void propagatePaintToPreviousSlice()DOCUMENT ME! -
checkForActiveVOIs
private boolean checkForActiveVOIs() -
convertVOITBI
private void convertVOITBI() -
surfaceReconstructionTBI
private void surfaceReconstructionTBI() -
saveMergedVOIs
private void saveMergedVOIs()This method merges the 3 axial, sagittal, coronal VOIs and save them into one cloudy points file. This function is used by the prostate surface reconstruction analysis. -
reconstructSurfaceFromVOIs
private void reconstructSurfaceFromVOIs()Reconstruct the prostate surface from the coarse VOIs cloudy points. -
saveProstateFeatures
private void saveProstateFeatures() -
saveProstateFeatures2D
private void saveProstateFeatures2D() -
saveProstateBoundaryFeature
private void saveProstateBoundaryFeature() -
testProstateFeatures2D
private void testProstateFeatures2D() -
testProstateFeatures
public void testProstateFeatures() -
testProstateFeaturesClassification
private void testProstateFeaturesClassification() -
testProstateFeaturesTrain
private void testProstateFeaturesTrain() -
testProstateBoundaryFeatureTrain
private void testProstateBoundaryFeatureTrain() -
generateAtlasImage
private void generateAtlasImage()Read the 3D atlas images directory, convert each 3D image to 2D slices based atlas. And save the final 2D slice and corresponding VOIs to specified atlas directory. -
generateEndingSlices
private void generateEndingSlices() -
aamGroups
private void aamGroups() -
aamGroupRename
private void aamGroupRename() -
aamClassification
private void aamClassification() -
deepCNNTrain
private void deepCNNTrain() -
deepCNNTest
private void deepCNNTest() -
deepCNNConvert
private void deepCNNConvert() -
deepKneesAtlas
private void deepKneesAtlas() -
deepKneesMap
private void deepKneesMap() -
deepCNNMap
private void deepCNNMap() -
hedCNNMap
private void hedCNNMap() -
aamMLClassification
private void aamMLClassification() -
extractCEFeature
private void extractCEFeature() -
loadProstateMask
private void loadProstateMask() -
prostateSemiAutoBSplineFuzzyC
private void prostateSemiAutoBSplineFuzzyC() -
prostateSemiAutoBSpline
private void prostateSemiAutoBSpline() -
initVOI
protected void initVOI()Initialize the 3D VOI interface. -
getCenterPt
public WildMagic.LibFoundation.Mathematics.Vector3f getCenterPt()- Specified by:
getCenterPtin interfaceVOIManagerInterfaceListener
-
getFrame
- Specified by:
getFramein interfaceVOIManagerInterfaceListener
-
getVOIManager
- Specified by:
getVOIManagerin interfaceVOIManagerInterfaceListener
-
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
-
create3DVOI
public void create3DVOI(boolean bIntersection) - Specified by:
create3DVOIin interfaceVOIManagerInterfaceListener
-
setActiveImage
- Specified by:
setActiveImagein interfaceVOIManagerInterfaceListener
-
setCenter
public void setCenter(WildMagic.LibFoundation.Mathematics.Vector3f kCenter) - Specified by:
setCenterin interfaceVOIManagerInterfaceListener
-
setCursor
- Specified by:
setCursorin interfaceVOIManagerInterfaceListener- Overrides:
setCursorin classWindow
-
setModified
public void setModified()- Specified by:
setModifiedin interfaceVOIManagerInterfaceListener
-
updateData
public void updateData()- Specified by:
updateDatain interfaceVOIManagerInterfaceListener
-
getActiveLUT
- Specified by:
getActiveLUTin interfaceVOIManagerInterfaceListener
-
getActiveRGB
- Specified by:
getActiveRGBin interfaceVOIManagerInterfaceListener
-
setPaintMask
- Specified by:
setPaintMaskin interfaceVOIManagerInterfaceListener
-
paintToShortMask
public void paintToShortMask()- Specified by:
paintToShortMaskin interfaceVOIManagerInterfaceListener
-
paintToUbyteMask
public void paintToUbyteMask()- Specified by:
paintToUbyteMaskin interfaceVOIManagerInterfaceListener
-
maskToPaint
public void maskToPaint()- Specified by:
maskToPaintin interfaceVOIManagerInterfaceListener
-
getFrameLandMarkPoints
public int[] getFrameLandMarkPoints()Get the frame four corner landmark points.- Returns:
- landmark points result[0] = startX; result[1] = startY; result[2] = endX; result[3] = endY;
-
addSphereVOIs
- Specified by:
addSphereVOIsin interfaceVOIManagerInterfaceListener
-