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,java.awt.event.ActionListener,java.awt.event.ComponentListener,java.awt.event.WindowListener,java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,java.util.EventListener,javax.accessibility.Accessible,javax.swing.event.ChangeListener,javax.swing.RootPaneContainer,javax.swing.WindowConstants
public class ViewJFramePaintVasculature extends ViewJFrameBase
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:
ViewJFrameImage, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
-
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected ViewJComponentEditImagecomponentImageDisplay of the MIP image.protected intfudgeFactorFrame adjustment to keep the frame from being just small enough for the ScrollPane to display the scroll bars.protected floatheightResFactorStorage for correction parameters where datasets have non isotropic values.protected float[]imageBufferBuffer used to store image intensities the presently viewed slice of image.protected booleanlogMagDisplayFlag indicating whether or not that the image should be displayed in Log scale.protected float[]mipBufferBuffer to store the MIP image that results from the raytrace.protected int[]mipExtentsThe dimensions of the MIP image.protected ModelImagemipImageMIP image generated from the volume.protected java.util.Hashtable<java.lang.Integer,java.lang.Float>mipZTableTable which holds the z coordinate on the 3D volume for a point (x,y) on the 2D MIP image.protected JDialogPaintVasculaturepaintDialogDialog to facilitate vasculature painting.protected ViewJFrameBaseparentParent frame of this frame.protected int[]pixBufferInteger buffer (4 bytes that stores the concatenated Alpha (1 byte), Red (1 byte), Green ( 1 byte ), Blue (1 byte ) data.protected float[]resolsStorage of the image voxel resolutions.private javax.swing.JScrollPanescrollPaneThe scrollPane where the image is displayed.protected VOIseedPointsVOI containing the possible seed points.private static longserialVersionUIDUse serialVersionUID for interoperability.protected int[]unitsStorage of the resolution units of measure.protected floatwidthResFactorStorage for correction parameters where datasets have non isotropic values.protected intxScreenWidth of the display screen.protected intyScreenHeight of the display screen.protected floatzoomDefaults 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, zoomMode
-
Fields 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_CURSOR
-
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
-
Constructor Summary
Constructors Constructor Description ViewJFramePaintVasculature(ModelImage img, ModelLUT lut, java.awt.Dimension loc, ViewJFrameBase frame)Constructs the MIP frame and pops up the region grow dialog.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.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(java.awt.event.ComponentEvent event)Resizes frame and all components.protected static 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.ViewJComponentEditImagegetComponentImage()Returns the reference to the component image.ViewControlsImagegetControls()Placeholder.ModelImagegetImageA()Returns the reference to mipImage.ModelImagegetImageB()Deprecated.DOCUMENT ME!floatgetMIPZValue(int index)Gets the Z value where a pixel in the MIP image occurred in the volume.ViewJFrameBasegetParentFrame()Get the parent frame of this MIP image frame.ModelRGBgetRGBTA()Gets the RGB LUT table for ARGB image A.ModelRGBgetRGBTB()Deprecated.DOCUMENT ME!VOIgetSeedPoints()Return the points that have been marked on the MIP as possible seed points.private voidinitComponentImage()Construct the component image which contains the MIP image (should be called after calcMIPBuffer).voidinitFrame(java.awt.Dimension loc)Initializes the 2D MIP image frame.voidremoveControls()Placeholder.voidsetActiveImage(int val)Deprecated.DOCUMENT ME!voidsetAlphaBlend(int val)Deprecated.DOCUMENT ME!voidsetControls()Placeholder.voidsetEnabled(boolean flag)Controls whether or not the images/VOIs of the frame can be modified.voidsetImageB(ModelImage imB)Deprecated.DOCUMENT ME!voidsetLUTa(ModelLUT LUT)Sets the LUT for image A.voidsetPaintBitmapSwitch(boolean val)Deprecated.DOCUMENT ME!voidsetRGBTA(ModelRGB RGBT)Sets the RGB LUT table for ARGB image A.voidsetRGBTB(ModelRGB val)Deprecated.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.booleanupdateImageExtents()This methods calls the componentImage's REPAINT method to redraw the screen.booleanupdateImages()This 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(java.awt.event.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, windowOpened
-
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, update
-
Methods 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, setUndecorated
-
Methods 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, toFront
-
Methods 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, validateTree
-
Methods 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, transferFocusUpCycle
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Use serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
componentImage
protected ViewJComponentEditImage componentImage
Display of the MIP image.
-
fudgeFactor
protected int fudgeFactor
Frame 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 heightResFactor
Storage for correction parameters where datasets have non isotropic values.
-
imageBuffer
protected float[] imageBuffer
Buffer used to store image intensities the presently viewed slice of image.
-
logMagDisplay
protected boolean logMagDisplay
Flag 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[] mipBuffer
Buffer to store the MIP image that results from the raytrace.
-
mipExtents
protected int[] mipExtents
The dimensions of the MIP image.
-
mipImage
protected ModelImage mipImage
MIP image generated from the volume.
-
mipZTable
protected java.util.Hashtable<java.lang.Integer,java.lang.Float> mipZTable
Table which holds the z coordinate on the 3D volume for a point (x,y) on the 2D MIP image.
-
paintDialog
protected JDialogPaintVasculature paintDialog
Dialog to facilitate vasculature painting.
-
parent
protected ViewJFrameBase parent
Parent frame of this frame.
-
pixBuffer
protected int[] pixBuffer
Integer 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[] resols
Storage of the image voxel resolutions. One resolution value per dimension.
-
seedPoints
protected VOI seedPoints
VOI containing the possible seed points.
-
units
protected int[] units
Storage of the resolution units of measure. For example, mm, cm, inches ...
-
widthResFactor
protected float widthResFactor
Storage for correction parameters where datasets have non isotropic values.
-
xScreen
protected int xScreen
Width of the display screen.
-
yScreen
protected int yScreen
Height of the display screen.
-
zoom
protected float zoom
Defaults magnification of image to 1.
-
scrollPane
private javax.swing.JScrollPane scrollPane
The scrollPane where the image is displayed.
-
-
Constructor Detail
-
ViewJFramePaintVasculature
public ViewJFramePaintVasculature(ModelImage img, ModelLUT lut, java.awt.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 Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
Listen for events from the MIP frame GUI.- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- 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
public void componentResized(java.awt.event.ComponentEvent event)
Resizes frame and all components.- Specified by:
componentResizedin interfacejava.awt.event.ComponentListener- Overrides:
componentResizedin classViewJFrameBase- Parameters:
event- event that triggered function
-
finalize
public void finalize() throws java.lang.ThrowableCleans memory.- Overrides:
finalizein classViewJFrameBase- Throws:
java.lang.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
public ViewJComponentEditImage getComponentImage()
Returns the reference to the component image.- Returns:
- component image
-
getControls
public ViewControlsImage getControls()
Placeholder.- Specified by:
getControlsin classViewJFrameBase- Returns:
- null
-
getImageA
public ModelImage getImageA()
Returns the reference to mipImage.- Specified by:
getImageAin classViewJFrameBase- Returns:
- image
-
getImageB
public ModelImage 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
public ViewJFrameBase getParentFrame()
Get the parent frame of this MIP image frame.- Returns:
- the parent frame (the main RFAST frame)
-
getRGBTA
public ModelRGB 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
public ModelRGB getRGBTB()
Deprecated.DOCUMENT ME!Placeholder required by ViewJFrameBase.- Overrides:
getRGBTBin classViewJFrameBase- Returns:
- the RGBTB data
-
getSeedPoints
public VOI getSeedPoints()
Return the points that have been marked on the MIP as possible seed points.- Returns:
- a VOI containing the possible seed points
-
initFrame
public void initFrame(java.awt.Dimension loc) throws java.lang.OutOfMemoryErrorInitializes the 2D MIP image frame.- Parameters:
loc- where the frame should be placed- Throws:
java.lang.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
public void setImageB(ModelImage imB)
Deprecated.DOCUMENT ME!Placeholder required by ViewJFrameBase.- Specified by:
setImageBin classViewJFrameBase- Parameters:
imB- the second image
-
setLUTa
public void setLUTa(ModelLUT LUT)
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
public void setRGBTA(ModelRGB RGBT)
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
public void setRGBTB(ModelRGB val)
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:
ViewImageUpdateInterface
-
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
public boolean updateImages(ModelLUT _LUTa, ModelLUT _LUTb, boolean forceShow, int interpMode)
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
public void windowClosing(java.awt.event.WindowEvent event)
Closes window and disposes of frame and component.- Specified by:
windowClosingin interfacejava.awt.event.WindowListener- 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).
-
-