Package gov.nih.mipav.view
Class ViewJFrameMultimodalitySingleViewer
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.ViewJFrameTriImage
gov.nih.mipav.view.ViewJFrameMultimodalitySingleViewer
- All Implemented Interfaces:
VOIManagerInterfaceListener,ViewImageUpdateInterface,ActionListener,ComponentListener,ItemListener,KeyListener,MouseListener,MouseMotionListener,MouseWheelListener,WindowListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,ChangeListener,RootPaneContainer,WindowConstants
public class ViewJFrameMultimodalitySingleViewer
extends ViewJFrameTriImage
implements ItemListener, ChangeListener, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, VOIManagerInterfaceListener
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classNested classes/interfaces inherited from class gov.nih.mipav.view.ViewJFrameTriImage
ViewJFrameTriImage.OkColorListener, ViewJFrameTriImage.PaintBoxRendererNested 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 ImageIconprivate JComboBoxprivate ImageIconprivate ViewJFrameImageprivate intprivate intprivate ViewJComponentEditImage[]private ViewJFrameImage[]private String[]private intprivate ModelImage[]private JFileChoosertarget image variables.private JScrollPaneprivate floatprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JPanelprivate JPanelprivate Pointprivate JPopupMenuprivate booleanprivate JPanelprivate JPanelprotected Fontprotected Fontprivate intprivate JTextField[]private JLabel[]private JPanelprivate JPanelprivate ViewUserInterfaceThe main user interface.(package private) static intprivate int[]private JSlider[]Fields inherited from class gov.nih.mipav.view.ViewJFrameTriImage
addPointToggleButton, ATLAS_AC_TO_ANT, ATLAS_AC_TO_INF, ATLAS_AC_TO_LAT, ATLAS_AC_TO_PC, ATLAS_AC_TO_SUP, ATLAS_BBOX_ANT, ATLAS_BBOX_INF, ATLAS_BBOX_INF_NEW, ATLAS_BBOX_LAT, ATLAS_BBOX_POS, ATLAS_BBOX_SUP, ATLAS_PC_TO_POS, AXIAL_A, AXIAL_AB, AXIAL_B, bogusBorderPaintButton, borderPaintButton, btnInvisible, bufferFactor, centerButtonSelected, chkShowTalairachGrid, chkShowTalairachGridMarkers, color, colorChooser, colorPaintButton, controls, coordinateListeners, CORONAL_A, CORONAL_AB, CORONAL_B, crosshairSpinner, currentAbsolutePositionLabels, DEFAULT_OPTIMAL_ZOOM, defaultPreferredHeight, dropperPaintToggleButton, extents, IMAGE_ALIGN_TOOLBAR, imageAlignToolBar, imageToolBar, indivMagButton, indivMinButton, intensitySpinner, iTalLabel, labelXTal, labelYTal, labelZTal, leastSquaresButton, magButton, MAX_INITIAL_TRI_IMAGES, menuObj, minButton, NUM_INVISIBLE_BUTTONS, OLD_LAYOUT, oldLayout, OPACITY, PAINT_TOOLBAR, paintBox, paintBrushNames, paintCanToggleButton, paintToolBar, PANEL_PLUGIN, panelActiveImage, panelToolbar, panelToolBarGBC, parentFrame, pluginPanel, radioImageA, radioImageB, radioImageBoth, resols, RGBTa, RGBTb, SAGITTAL_A, SAGITTAL_AB, SAGITTAL_B, scrollButton, scrollOriginalCrosshair, scrollPane, showTalairachGrid, showTalairachPosition, talairachPanel, tDim, tImageSlider, toolbarBuilder, tpSplineButton, traverseButton, triImage, triImagePanel, tSlice, tTalVoxLabel, units, useInfNew, viewPanel, VOI_TOOLBAR, VOIGroup, voiManager, voiMenu, volumeCenter, volumePositionFrame, volumePositionPanel, xTalLabel, yTalLabel, zoom, zTalLabelFields 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
ConstructorsConstructorDescriptionViewJFrameMultimodalitySingleViewer(ModelImage _imageA, ViewJFrameImage frame) -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) Calls various methods depending on the action.voidaddPopup()private voidadjustScrollbars(int x, int y, JScrollPane scrollPane) DOCUMENT ME!protected voidBuilds the active image panel for choosing which image (A, B, or BOTH) to perform operations on.private voidBuilds a list of images to operate on from the template image.private voidbuildSlider(JPanel rightPanel) (package private) voidcaptureComponent(Component component) private voidchangeIcon(String whiteCicleName, String blackCircleName) voidShould be called when window is closing to perform cleanup.voidvoidprotected voidfinalize()DOCUMENT ME!int[]Sets the x coordinate of the point to be the center of the transformed image.WildMagic.LibFoundation.Mathematics.Vector3fgetFrame()private voidAccessor that returns the reference to imageA.Accessor that returns the reference to imageB.Gets the linked ViewJFrameTriImage.Returns a reference to the ViewJFrameImage object that is the parent of this frame.private voidvoidvoidkeyPressed event method for KeyListener.voidkeyReleased event method for KeyListener.voidDOCUMENT ME!voidmouseClicked(MouseEvent event) DOCUMENT ME!voidvoidmouseEntered(MouseEvent event) DOCUMENT ME!voidmouseExited(MouseEvent event) DOCUMENT ME!voidmouseMoved(MouseEvent evt) voidmousePressed(MouseEvent event) DOCUMENT ME!voidmouseReleased(MouseEvent event) DOCUMENT ME!voidmouseWheelMoved(MouseWheelEvent mouseWheelEvent) private voidreadImages(File dir) private voidFile chooser to select target image directory.voidsetActiveImage(int active) Set the active image for drawing VOIs.voidsetCenter(int i, int j, int k) sets the crosshair positions and slices for each of the triImages.voidsetCenter(int i, int j, int k, boolean checkLinkedScroll) sets the crosshair positions and slices for each of the triImages.voidsetCenter(WildMagic.LibFoundation.Mathematics.Vector3f kCenter) voidvoidsetEnabled(boolean flag) Controls whether or not the images/VOIs of the frame can be modified.voidsetImageA(ModelImage image) Changes imageA to a new model image reference.voidsetImageB(ModelImage _imageB) Accessor that sets the reference to imageB.voidsetImageB(ModelImage _imageB, boolean disposeOldB) Accessor that sets the reference to imageB.voidsetLinkButtonSelected(boolean selected) Sets whether the linking button should be set for this image, implies that this image will be linked to another tri-frame when truevoidAccessor that sets the LUT.voidAccessor that sets the LUT.voidsetPaintBitmapSwitch(boolean paintBitmapSwitch) When switching the active image, take the paintBitmap of the previous active image as the paintBitmap of the new active image Currenlty unused.voidsetPaintColor(Color color) Sets the color of the paint.voidsetPositionLabels(int x, int y, int z) Sets the labels which show the absolute position within the image volume and the patient position.voidSets the RGB table for ARGB image A.voidSets the RGB table for image B.voidsetSlice(int slice) Does nothing.voidsetSlices(int x, int y, int z) Sets the slice index for each plane in the frame and components.voidsetSlicesFromFrame(int x, int y, int z) Called from the "normal" image component, sets the slices for the tri planar view to display.voidsetTimeSlice(int slice) Sets the slice to be displayed and updates title frame.voidsetTimeSlice(int slice, boolean checkedLinkedScroll) Sets the slice to be displayed and updates title frame.voidsetTitle()Sets the title bar for the tri-image frame.voidSets the traverse button to selected.voidsetVolumeCenter(int x, int y, int z) Sets the x coordinate of the point to be the center of the transformed image.voidsetVolumeCenter(Point3D newVolumeCenter) Sets the x coordinate of the point to be the center of the transformed image.voidvoidSets values based on knob along time slider.voidprivate voidvoidupdateImage(int index) booleanDo nothing - required by ViewJFrameBase.booleanThis methods calls the componentImage's update method to redraw the screen.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.voidupdateImageSubset(ViewJComponentTriImage triImage) DOCUMENT ME!private voidvoidwindowClosing(WindowEvent event) Closes window and disposes of frame and component.voidwindowOpened(WindowEvent event) Does nothing.protected voidzoomInFrame(int frame) this method will zoom in a particular frame.protected voidzoomOutFrame(int frame) this method will zoom out a particular frame.Methods inherited from class gov.nih.mipav.view.ViewJFrameTriImage
absoluteGoTo, addCoordinateChangeListener, addSphereVOIs, addTabbedPane, buildDisabledTextButton, buildIconButton, buildImageAlignToolBar, buildLUTs, buildMagToolBar, buildMenu, buildNamedTextButton, buildPaintToolBar, buildProgressBar, buildTImageSliderLabels, buildToggleButton, buildToggleButton, buildToolbarMenu, buildToolbars, buildTriImage, buildVolumePositionPanel, cleanVolumePositionPanel, closeImageB, configureFrame, create3DVOI, doOldLayout, enableBoth, fireCoordinateChange, getActiveImage, getActiveLUT, getActiveRGB, getAxialComponentSlice, getBoundedVolume, getControls, getCoronalComponentSlice, getCurrentOrientation, getCurrentPositionLabels, getOptimalZoom, getSagittalComponentSlice, getSelectedImage, getTriImage, gettTalVoxLabel, getVOIManager, getXSliceHairColor, getYSliceHairColor, getZSliceHairColor, handleLeastSquares, handlePluginPanelSelection, handleTPSpline, init, initProgressBar, initVOI, isFocusable, isMultipleSameSizeTriImages, itemStateChanged, makeSeparator, maskToPaint, paintToShortMask, paintToUbyteMask, PointerActive, PropDown, PropUp, removeControls, removeCoordinateChangeListener, setActiveImage, setAlphaBlend, setControls, setCrop, setCurrentOrientation, setDefault, setImageActiveInTriComponents, setImageSelectorPanelVisible, setIntensityDropper, setIntensityPaintName, setModified, setOldLayout, setPaintMask, setTalairachPositionLabels, settTalVoxLabelText, setXSliceHairColor, setYSliceHairColor, setZSliceHairColor, updateData, updateHistoLUTFrame, updateLayout, updatePaintMethods inherited from class gov.nih.mipav.view.ViewJFrameBase
about, buildLabelPanel, canCloseImageBAfterLoad, close, close, componentHidden, componentMoved, componentResized, componentShown, getAlphaBlend, getDefaultLUTa, getDefaultLUTb, getDisplayMode, getImageNameA, getImageNameB, getLastState, getLUTa, getLUTb, getRGBTA, getRGBTB, getTriImg, getUserInterface, handleMaskPopupMenu, handlePaintToMaskPopupMenu, handleZoomPopupMenu, initExtents, initImageBuffer, initLUT, initNumSlices, initPixelBuffer, initResFactor, initResolutions, initRGB, initSlicePositions, initUnits, initZoom, loadAllVOIs, loadAllVOIsFrom, loadImage, loadLUT, loadLUTandTransferFunctionFrom, loadLUTandTransferFunctionFrom, makeString, newFrameBeenCreated, openVOI, openVOI, pickImageFile, save, save, save, saveAllVOIs, saveAllVOIsTo, saveLabels, saveLUT, saveLUTandTransferFunction, saveLUTandTransferFunction, saveLUTAs, saveLUTAs, saveVOI, saveVOIAs, saveVOIAs, saveVOIIntensities, saveVOIIntensitiesTo, setAbsPositionLabels, setEnableCloseImageBAfterLoad, setLastState, setLinkedFrame, setLinkedTriFrame, setLUTs, setMessageText, setOpacityInfo, setpaintBitmap, setScannerPosition, windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowIconifiedMethods 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, 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, 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.event.ItemListener
itemStateChangedMethods inherited from interface java.awt.MenuContainer
getFont, postEventMethods inherited from interface gov.nih.mipav.view.renderer.WildMagic.VOI.VOIManagerInterfaceListener
addSphereVOIs, create3DVOI, getActiveImage, getActiveLUT, getActiveRGB, getVOIManager, maskToPaint, paintToShortMask, paintToUbyteMask, PointerActive, PropDown, PropUp, setActiveImage, setModified, setPaintMask, updateData
-
Field Details
-
imagesChooser
target image variables. -
UI
The main user interface. -
currentFrame
-
imageScroll
-
origin
-
quadImagePanel
-
currentSlice
private int currentSlice -
zDim
private int[] zDim -
comboBoxImage
-
initZoomFactor
private float initZoomFactor -
popup
-
sliceNumCache
private int sliceNumCache -
serif12
-
serif12B
-
sliderMax
-
zImageSlider
-
slicesTextField
-
imageFrame
-
imageComp
-
imageNames
-
imageNamesIndex
private int imageNamesIndex -
images
-
imageActiveIndex
private int imageActiveIndex -
sliderPanel
-
cornerImage
-
blackImage
-
rightPanel
-
leftPanel
-
topPanel
-
lowerPanel
-
label1
-
label2
-
label3
-
label4
-
label5
-
label6
-
label7
-
label8
-
pressed
private boolean pressed -
v
static int v
-
-
Constructor Details
-
ViewJFrameMultimodalitySingleViewer
-
-
Method Details
-
addPopup
public void addPopup() -
startRecording
public void startRecording() -
stopRecording
public void stopRecording() -
getFramesInfo
private void getFramesInfo() -
captureComponent
-
initLayout
private void initLayout() -
buildSlider
-
updateSlider
private void updateSlider() -
mouseWheelMoved
- Specified by:
mouseWheelMovedin interfaceMouseWheelListener
-
buildComboBoxImage
private void buildComboBoxImage()Builds a list of images to operate on from the template image. -
equalScaleImage
public void equalScaleImage() -
equalScaleImageLight
public void equalScaleImageLight() -
actionPerformed
Calls various methods depending on the action.- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classViewJFrameTriImage- Parameters:
event- event that triggered function
-
updateImage
public void updateImage(int index) -
disposeLocal
public void disposeLocal()Should be called when window is closing to perform cleanup.- Overrides:
disposeLocalin classViewJFrameTriImage
-
getCenter
public int[] getCenter()Sets the x coordinate of the point to be the center of the transformed image.- Overrides:
getCenterin classViewJFrameTriImage- Returns:
- DOCUMENT ME!
-
getCenterPt
public WildMagic.LibFoundation.Mathematics.Vector3f getCenterPt()- Specified by:
getCenterPtin interfaceVOIManagerInterfaceListener- Overrides:
getCenterPtin classViewJFrameTriImage
-
getImageA
Accessor that returns the reference to imageA.- Overrides:
getImageAin classViewJFrameTriImage- Returns:
- image
-
getImageB
Accessor that returns the reference to imageB.- Overrides:
getImageBin classViewJFrameTriImage- Returns:
- imageB
-
getLinkedTriFrame
Gets the linked ViewJFrameTriImage.- Overrides:
getLinkedTriFramein classViewJFrameTriImage- Returns:
- linkedFrame
-
getParentFrame
Returns a reference to the ViewJFrameImage object that is the parent of this frame.- Overrides:
getParentFramein classViewJFrameTriImage- Returns:
- a reference to the ViewJFrameImage object that is the parent of this frame
-
keyPressed
keyPressed event method for KeyListener.- Specified by:
keyPressedin interfaceKeyListener- Overrides:
keyPressedin classViewJFrameTriImage- Parameters:
e- KeyEvent
-
keyReleased
keyReleased event method for KeyListener.- Specified by:
keyReleasedin interfaceKeyListener- Overrides:
keyReleasedin classViewJFrameTriImage- Parameters:
e- KeyEvent
-
keyTyped
DOCUMENT ME!- Specified by:
keyTypedin interfaceKeyListener- Overrides:
keyTypedin classViewJFrameTriImage- Parameters:
e- DOCUMENT ME!
-
mouseClicked
DOCUMENT ME!- Specified by:
mouseClickedin interfaceMouseListener- Overrides:
mouseClickedin classViewJFrameTriImage- Parameters:
event- DOCUMENT ME!
-
mouseEntered
DOCUMENT ME!- Specified by:
mouseEnteredin interfaceMouseListener- Overrides:
mouseEnteredin classViewJFrameTriImage- Parameters:
event- DOCUMENT ME!
-
mouseExited
DOCUMENT ME!- Specified by:
mouseExitedin interfaceMouseListener- Overrides:
mouseExitedin classViewJFrameTriImage- Parameters:
event- DOCUMENT ME!
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mousePressed
DOCUMENT ME!- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classViewJFrameTriImage- Parameters:
event- DOCUMENT ME!
-
mouseReleased
DOCUMENT ME!- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classViewJFrameTriImage- Parameters:
event- DOCUMENT ME!
-
setActiveImage
public void setActiveImage(int active) Set 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- Overrides:
setActiveImagein classViewJFrameTriImage- Parameters:
active- ViewJComponentBase.IMAGE_A or ViewJComponentBase.IMAGE_B
-
setCenter
public void setCenter(int i, int j, int k) sets the crosshair positions and slices for each of the triImages. The inputs are in FileCoordinates, and are passed to the triImages in FileCoordinates. Each triImage converts from FileCoordinates to the local PatientCoordinate space, based on the triImage orientation (FileInfoBase.AXIAL, FileInfoBase.CORONAL, FileInfoBase.SAGITTAL).- Overrides:
setCenterin classViewJFrameTriImage- Parameters:
i- model space coordinatej- model space coordinatek- model space coordinate
-
setCenter
public void setCenter(WildMagic.LibFoundation.Mathematics.Vector3f kCenter) - Specified by:
setCenterin interfaceVOIManagerInterfaceListener- Overrides:
setCenterin classViewJFrameTriImage
-
setCenter
public void setCenter(int i, int j, int k, boolean checkLinkedScroll) sets the crosshair positions and slices for each of the triImages. The inputs are in FileCoordinates, and are passed to the triImages in FileCoordinates. Each triImage converts from FileCoordinates to the local PatientCoordinate space, based on the triImage orientation (FileInfoBase.AXIAL, FileInfoBase.CORONAL, FileInfoBase.SAGITTAL).- Overrides:
setCenterin classViewJFrameTriImage- Parameters:
i- model space coordinatej- model space coordinatek- model space coordinatecheckLinkedScroll- (boolean telling whether to look for linked images to sync scroll... necessary to avoid infinite loop)
-
setEnabled
public void setEnabled(boolean flag) Controls whether or not the images/VOIs of the frame can be modified.- Overrides:
setEnabledin classViewJFrameTriImage- Parameters:
flag- if true the image/VOIs can be modified; if false image/VOIs can NOT be modified
-
setImageA
Changes imageA to a new model image reference. Swaps the references in the frame and all the component images.- Overrides:
setImageAin classViewJFrameTriImage- Parameters:
image- the new image to use
-
setImageB
Accessor that sets the reference to imageB. Includes changing the frame's reference and the references the components keep.- Overrides:
setImageBin classViewJFrameTriImage- Parameters:
_imageB- image to set the frame to
-
setImageB
Accessor that sets the reference to imageB. Includes changing the frame's reference and the references the components keep. UnlikesetImageB(ModelImage)this method matches the functionality ofsetImageA(ModelImage)- Overrides:
setImageBin classViewJFrameTriImage- Parameters:
_imageB- image to set the frame to
-
setLUTa
Accessor that sets the LUT.- Overrides:
setLUTain classViewJFrameTriImage- Parameters:
LUT- the LUT
-
setLUTb
Accessor that sets the LUT.- Overrides:
setLUTbin classViewJFrameTriImage- Parameters:
LUT- the LUT
-
setPaintBitmapSwitch
public void setPaintBitmapSwitch(boolean paintBitmapSwitch) When switching the active image, take the paintBitmap of the previous active image as the paintBitmap of the new active image Currenlty unused.- Overrides:
setPaintBitmapSwitchin classViewJFrameTriImage- Parameters:
paintBitmapSwitch- if true don't do a getMask on the new actve image
-
setPaintColor
Sets the color of the paint.- Overrides:
setPaintColorin classViewJFrameTriImage- Parameters:
color- Color the desired color of the paint
-
setPositionLabels
public void setPositionLabels(int x, int y, int z) Sets the labels which show the absolute position within the image volume and the patient position.- Overrides:
setPositionLabelsin classViewJFrameTriImage- Parameters:
x- the x volume coordinatey- the y volume coordinatez- the z volume coordinate
-
setRGBTA
Sets the RGB table for ARGB image A.- Overrides:
setRGBTAin classViewJFrameTriImage- Parameters:
RGBT- the new RGB transfer functions for imageA
-
setRGBTB
Sets the RGB table for image B.- Overrides:
setRGBTBin classViewJFrameTriImage- Parameters:
RGBT- the new RGB transfer functions for imageB
-
setLinkButtonSelected
public void setLinkButtonSelected(boolean selected) Sets whether the linking button should be set for this image, implies that this image will be linked to another tri-frame when true- Overrides:
setLinkButtonSelectedin classViewJFrameTriImage
-
setSlice
public void setSlice(int slice) Does nothing.- Specified by:
setSlicein interfaceViewImageUpdateInterface- Overrides:
setSlicein classViewJFrameTriImage- Parameters:
slice- the slice to show
-
setSlices
public void setSlices(int x, int y, int z) Sets the slice index for each plane in the frame and components. Should be zero indexed.- Overrides:
setSlicesin classViewJFrameTriImage- Parameters:
x- slice index in the patienty- slice index in the patientz- slice index in the patient
-
setSlicesFromFrame
public void setSlicesFromFrame(int x, int y, int z) Called from the "normal" image component, sets the slices for the tri planar view to display. Parameters are in terms of the image volume and so must be converted.- Overrides:
setSlicesFromFramein classViewJFrameTriImage- Parameters:
x- X Slice of image.y- Y Slice of image.z- Z Slice of image.
-
setTimeSlice
public void setTimeSlice(int slice) Sets the slice to be displayed and updates title frame.- Specified by:
setTimeSlicein interfaceViewImageUpdateInterface- Overrides:
setTimeSlicein classViewJFrameTriImage- Parameters:
slice- indicates image time-slice (4th dimension) to be displayed
-
setTimeSlice
public void setTimeSlice(int slice, boolean checkedLinkedScroll) Sets the slice to be displayed and updates title frame.- Overrides:
setTimeSlicein classViewJFrameTriImage- Parameters:
slice- indicates image time-slice (4th dimension) to be displayedcheckedLinkedScroll- whether corresponding tri-frames should also be scrolled
-
setTitle
public void setTitle()Sets the title bar for the tri-image frame. Called for initialization and updating. Displays time series location for 4D volumes.- Overrides:
setTitlein classViewJFrameTriImage
-
setTraverseButton
public void setTraverseButton()Sets the traverse button to selected.- Overrides:
setTraverseButtonin classViewJFrameTriImage
-
setVolumeCenter
Sets the x coordinate of the point to be the center of the transformed image.- Overrides:
setVolumeCenterin classViewJFrameTriImage- Parameters:
newVolumeCenter- The x coordinate of the center.
-
setVolumeCenter
public void setVolumeCenter(int x, int y, int z) Sets the x coordinate of the point to be the center of the transformed image.- Overrides:
setVolumeCenterin classViewJFrameTriImage- Parameters:
x- The x coordinate of the center.y- DOCUMENT ME!z- DOCUMENT ME!
-
stateChanged
Sets values based on knob along time slider.- Specified by:
stateChangedin interfaceChangeListener- Overrides:
stateChangedin classViewJFrameTriImage- Parameters:
e- Event that triggered this function
-
updateImageExtents
public boolean updateImageExtents()Do nothing - required by ViewJFrameBase.- Specified by:
updateImageExtentsin interfaceViewImageUpdateInterface- Overrides:
updateImageExtentsin classViewJFrameTriImage- Returns:
- always false
- See Also:
-
updateImages
public boolean updateImages()This methods calls the componentImage's update method to redraw the screen.- Specified by:
updateImagesin interfaceViewImageUpdateInterface- Overrides:
updateImagesin classViewJFrameTriImage- 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- Overrides:
updateImagesin classViewJFrameTriImage- Parameters:
forceShow- forces show to reimport 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.- Overrides:
updateImagesin classViewJFrameTriImage- Parameters:
forceShow- forces show to reimport 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- Overrides:
updateImagesin classViewJFrameTriImage- Parameters:
LUTa- LUT used to update imageALUTb- LUT used to update imageBforceShow- forces show to reimport image and calc. java imageinterpMode- image interpolation method (Nearest or Smooth)- Returns:
- boolean confirming successful update
-
updateImageSubset
DOCUMENT ME!- Overrides:
updateImageSubsetin classViewJFrameTriImage- Parameters:
triImage- DOCUMENT ME!
-
windowClosing
Closes window and disposes of frame and component.- Specified by:
windowClosingin interfaceWindowListener- Overrides:
windowClosingin classViewJFrameTriImage- Parameters:
event- Event that triggered function
-
windowOpened
Description copied from class:ViewJFrameBaseDoes nothing.- Specified by:
windowOpenedin interfaceWindowListener- Overrides:
windowOpenedin classViewJFrameTriImage- Parameters:
event- the window event
-
buildActiveImagePanel
protected void buildActiveImagePanel()Builds the active image panel for choosing which image (A, B, or BOTH) to perform operations on.- Overrides:
buildActiveImagePanelin classViewJFrameTriImage
-
finalize
DOCUMENT ME!- Overrides:
finalizein classViewJFrameTriImage- Throws:
Throwable- DOCUMENT ME!
-
adjustScrollbars
DOCUMENT ME!- Parameters:
x- DOCUMENT ME!y- DOCUMENT ME!scrollPane- DOCUMENT ME!
-
zoomInFrame
protected void zoomInFrame(int frame) this method will zoom in a particular frame.- Overrides:
zoomInFramein classViewJFrameTriImage- Parameters:
frame- frame the frame number
-
zoomOutFrame
protected void zoomOutFrame(int frame) this method will zoom out a particular frame.- Overrides:
zoomOutFramein classViewJFrameTriImage- Parameters:
frame- frame the frame number
-
getFrame
- Specified by:
getFramein interfaceVOIManagerInterfaceListener- Overrides:
getFramein classViewJFrameTriImage
-
setCursor
- Specified by:
setCursorin interfaceVOIManagerInterfaceListener- Overrides:
setCursorin classViewJFrameTriImage
-
invokeMeasure
public void invokeMeasure() -
readMultlmodalImages
private void readMultlmodalImages()File chooser to select target image directory. -
readImages
-
traverse
-
changeIcon
-