Package gov.nih.mipav.view
Class ViewJFramePaintVasculature
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.ViewJFramePaintVasculature
- All Implemented Interfaces:
ViewImageUpdateInterface,ActionListener,ComponentListener,WindowListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,ChangeListener,RootPaneContainer,WindowConstants
Generates a MIP image from a 3D volume. When the user clicks on a pixel of the MIP, a region grow is performed
starting at the point where the clicked intensity occurs.
Rotation of the volume to take different MIPs is something that might be useful to add (it's been partially added (see the MIP menu), but it is untested..).
Not tested with color images... probably won't work.
Right now, the MIP and the volume partially share the same LUT.
- Author:
- Evan McCreedy
- See Also:
-
Nested Class Summary
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 ViewJComponentEditImageDisplay of the MIP image.protected intFrame adjustment to keep the frame from being just small enough for the ScrollPane to display the scroll bars.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.protected booleanFlag indicating whether or not that the image should be displayed in Log scale.protected float[]Buffer to store the MIP image that results from the raytrace.protected int[]The dimensions of the MIP image.protected ModelImageMIP image generated from the volume.Table which holds the z coordinate on the 3D volume for a point (x,y) on the 2D MIP image.protected JDialogPaintVasculatureDialog to facilitate vasculature painting.protected ViewJFrameBaseParent frame of this frame.protected int[]Integer buffer (4 bytes that stores the concatenated Alpha (1 byte), Red (1 byte), Green ( 1 byte ), Blue (1 byte ) data.protected float[]Storage of the image voxel resolutions.private JScrollPaneThe scrollPane where the image is displayed.protected VOIVOI containing the possible seed points.private static final longUse serialVersionUID for interoperability.protected int[]Storage of the resolution units of measure.protected floatStorage for correction parameters where datasets have non isotropic values.protected intWidth of the display screen.protected intHeight of the display screen.protected floatDefaults magnification of image to 1.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
ConstructorsConstructorDescriptionViewJFramePaintVasculature(ModelImage img, ModelLUT lut, Dimension loc, ViewJFrameBase frame) Constructs the MIP frame and pops up the region grow dialog. -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) Listen for events from the MIP frame GUI.voidcalcMIPBuffer(int firstDim, int secondDim, int thirdDim) Generates a MIP image from the volume.voidclose()Closes window and disposes of frame and component.voidcomponentResized(ComponentEvent event) Resizes frame and all components.protected static final doubledistance(WildMagic.LibFoundation.Mathematics.Vector3f pt1, WildMagic.LibFoundation.Mathematics.Vector3f pt2) Calculates the 3D euclidian distance between two points.voidfinalize()Cleans memory.voidfindSeedPoints(int val) Mark all points within the image which match a certain intensity with point VOIs.Returns the reference to the component image.Placeholder.Returns the reference to mipImage.Deprecated.DOCUMENT ME!floatgetMIPZValue(int index) Gets the Z value where a pixel in the MIP image occurred in the volume.Get the parent frame of this MIP image frame.getRGBTA()Gets the RGB LUT table for ARGB image A.getRGBTB()Deprecated.DOCUMENT ME!Return the points that have been marked on the MIP as possible seed points.private voidConstruct the component image which contains the MIP image (should be called after calcMIPBuffer).voidInitializes the 2D MIP image frame.voidPlaceholder.voidsetActiveImage(int val) Deprecated.DOCUMENT ME!voidsetAlphaBlend(int val) Deprecated.DOCUMENT ME!voidPlaceholder.voidsetEnabled(boolean flag) Controls whether or not the images/VOIs of the frame can be modified.voidsetImageB(ModelImage imB) Deprecated.DOCUMENT ME!voidSets the LUT for image A.voidsetPaintBitmapSwitch(boolean val) Deprecated.DOCUMENT ME!voidSets the RGB LUT table for ARGB image A.voidDeprecated.DOCUMENT ME!voidsetSlice(int val) Deprecated.DOCUMENT ME!voidsetTimeSlice(int val) Deprecated.DOCUMENT ME!voidsetTitle()Sets the title of the frame with the image name of slice location.voidupdateFrame(float sX, float sY) Updates the this frame's size the compnents sizes.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(ModelLUT _LUTa, ModelLUT _LUTb, boolean forceShow, int interpMode) This methods calls the componentImage's update method to redraw the screen.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, getAlphaBlend, 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, setLUTb, setLUTs, setMessageText, setOpacityInfo, setpaintBitmap, setScannerPosition, stateChanged, windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowIconified, windowOpenedMethods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateMethods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedMethods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.awt.MenuContainer
getFont, postEvent
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDUse serialVersionUID for interoperability.- See Also:
-
componentImage
Display of the MIP image. -
fudgeFactor
protected int fudgeFactorFrame adjustment to keep the frame from being just small enough for the ScrollPane to display the scroll bars. Windows seems to find an inset value needing a fudge factor of 3, but Mac OS 10 (X), doesn't, and needs a fudge factor of 7 to not require scroll bars. Either way, insets + fudge-factor must equal 7. -
heightResFactor
protected float heightResFactorStorage for correction parameters where datasets have non isotropic values. -
imageBuffer
protected float[] imageBufferBuffer used to store image intensities the presently viewed slice of image. -
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. -
mipBuffer
protected float[] mipBufferBuffer to store the MIP image that results from the raytrace. -
mipExtents
protected int[] mipExtentsThe dimensions of the MIP image. -
mipImage
MIP image generated from the volume. -
mipZTable
Table which holds the z coordinate on the 3D volume for a point (x,y) on the 2D MIP image. -
paintDialog
Dialog to facilitate vasculature painting. -
parent
Parent frame of this frame. -
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 mipImage intensities as a index into a LUT. -
resols
protected float[] resolsStorage of the image voxel resolutions. One resolution value per dimension. -
seedPoints
VOI containing the possible seed points. -
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. -
xScreen
protected int xScreenWidth of the display screen. -
yScreen
protected int yScreenHeight of the display screen. -
zoom
protected float zoomDefaults magnification of image to 1. -
scrollPane
The scrollPane where the image is displayed.
-
-
Constructor Details
-
ViewJFramePaintVasculature
public ViewJFramePaintVasculature(ModelImage img, ModelLUT lut, Dimension loc, ViewJFrameBase frame) Constructs the MIP frame and pops up the region grow dialog.- Parameters:
img- volume to perform the MIP onlut- LUT of the volumeloc- where to place the frameframe- the parent frame (which must have the component image containing img)
-
-
Method Details
-
actionPerformed
Listen for events from the MIP frame GUI.- Specified by:
actionPerformedin interfaceActionListener- Specified by:
actionPerformedin classViewJFrameBase- Parameters:
event- event triggered by GUI
-
calcMIPBuffer
public void calcMIPBuffer(int firstDim, int secondDim, int thirdDim) Generates a MIP image from the volume.- Parameters:
firstDim- the "x" dimension of the generated MIPsecondDim- the slowest moving dimension -- the "y" dimension of the generated MIPthirdDim- the fastest moving dimension -- the one we are finding the maximum intensity of
-
close
public void close()Closes window and disposes of frame and component.- Overrides:
closein classViewJFrameBase
-
componentResized
Resizes frame and all components.- Specified by:
componentResizedin interfaceComponentListener- Overrides:
componentResizedin classViewJFrameBase- Parameters:
event- event that triggered function
-
finalize
Cleans memory.- Overrides:
finalizein classViewJFrameBase- Throws:
Throwable- if something goes wrong in the parent constructor
-
findSeedPoints
public void findSeedPoints(int val) Mark all points within the image which match a certain intensity with point VOIs. If points are too close to one another in the volume, only one is marked.- Parameters:
val- the intensity value to mark
-
getComponentImage
Returns the reference to the component image.- Returns:
- component image
-
getControls
Placeholder.- Specified by:
getControlsin classViewJFrameBase- Returns:
- null
-
getImageA
Returns the reference to mipImage.- Specified by:
getImageAin classViewJFrameBase- Returns:
- image
-
getImageB
Deprecated.DOCUMENT ME!Placeholder required by ViewJFrameBase.- Specified by:
getImageBin classViewJFrameBase- Returns:
- the second image
-
getMIPZValue
public float getMIPZValue(int index) Gets the Z value where a pixel in the MIP image occurred in the volume. Used to translate points on the MIP to points on the volume.- Parameters:
index- index into the mip buffer of the point to get ( index = x + y * xDimSize )- Returns:
- z value of the point on the volume which was used for the MIP image point
-
getParentFrame
Get the parent frame of this MIP image frame.- Returns:
- the parent frame (the main RFAST frame)
-
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
Deprecated.DOCUMENT ME!Placeholder required by ViewJFrameBase.- Overrides:
getRGBTBin classViewJFrameBase- Returns:
- the RGBTB data
-
getSeedPoints
Return the points that have been marked on the MIP as possible seed points.- Returns:
- a VOI containing the possible seed points
-
initFrame
Initializes the 2D MIP image frame.- Parameters:
loc- where the frame should be placed- Throws:
OutOfMemoryError- if there is not enough memory available to construct the MIP window
-
removeControls
public void removeControls()Placeholder.- Specified by:
removeControlsin classViewJFrameBase
-
setActiveImage
public void setActiveImage(int val) Deprecated.DOCUMENT ME!Placeholder required by ViewJFrameBase.- Specified by:
setActiveImagein classViewJFrameBase- Parameters:
val- the active image number
-
setAlphaBlend
public void setAlphaBlend(int val) Deprecated.DOCUMENT ME!Placeholder required by ViewJFrameBase.- Specified by:
setAlphaBlendin classViewJFrameBase- Parameters:
val- alpha blending value
-
setControls
public void setControls()Placeholder.- Specified by:
setControlsin classViewJFrameBase
-
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
Deprecated.DOCUMENT ME!Placeholder required by ViewJFrameBase.- Specified by:
setImageBin classViewJFrameBase- Parameters:
imB- the second image
-
setLUTa
Sets the LUT for image A.- Overrides:
setLUTain classViewJFrameBase- Parameters:
LUT- the LUT
-
setPaintBitmapSwitch
public void setPaintBitmapSwitch(boolean val) Deprecated.DOCUMENT ME!Placeholder required by ViewJFrameBase.- Specified by:
setPaintBitmapSwitchin classViewJFrameBase- Parameters:
val- whether to show the paint mask
-
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
Deprecated.DOCUMENT ME!Placeholder required by ViewJFrameBase.- Specified by:
setRGBTBin classViewJFrameBase- Parameters:
val- the RGBTB data
-
setSlice
public void setSlice(int val) Deprecated.DOCUMENT ME!Placeholder required by ViewJFrameBase.- Parameters:
val- the slice
-
setTimeSlice
public void setTimeSlice(int val) Deprecated.DOCUMENT ME!Placeholder required by ViewJFrameBase.- Parameters:
val- the time slice
-
setTitle
public void setTitle()Sets the title of the frame with the image name of slice location.- Specified by:
setTitlein classViewJFrameBase
-
updateFrame
public void updateFrame(float sX, float sY) Updates the this frame's size the compnents 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
-
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 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.- 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.- Parameters:
forceShow- forces show to re import image and calc. java image- Returns:
- boolean confirming successful update
-
updateImages
This methods calls the componentImage's update method to redraw the screen.- Parameters:
_LUTa- LUT used to update imageA (and mipImage)_LUTb- 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
-
windowClosing
Closes window and disposes of frame and component.- Specified by:
windowClosingin interfaceWindowListener- Overrides:
windowClosingin classViewJFrameBase- Parameters:
event- Event that triggered function
-
distance
protected static final double distance(WildMagic.LibFoundation.Mathematics.Vector3f pt1, WildMagic.LibFoundation.Mathematics.Vector3f pt2) Calculates the 3D euclidian distance between two points.- Parameters:
pt1- first pointpt2- second point- Returns:
- returns the distance
-
initComponentImage
private void initComponentImage()Construct the component image which contains the MIP image (should be called after calcMIPBuffer).
-