Package gov.nih.mipav.view
Class ViewJFrameMultimodalityViewer
- 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.ViewJFrameMultimodalityViewer
 
 
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- VOIManagerInterfaceListener,- ViewImageUpdateInterface,- java.awt.event.ActionListener,- java.awt.event.ComponentListener,- java.awt.event.ItemListener,- java.awt.event.KeyListener,- java.awt.event.MouseListener,- java.awt.event.MouseMotionListener,- java.awt.event.MouseWheelListener,- 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 ViewJFrameMultimodalityViewer extends ViewJFrameTriImage implements java.awt.event.ItemListener, javax.swing.event.ChangeListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, VOIManagerInterfaceListener - See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description (package private) classViewJFrameMultimodalityViewer.MousePopupListener- 
Nested classes/interfaces inherited from class gov.nih.mipav.view.ViewJFrameTriImageViewJFrameTriImage.OkColorListener, ViewJFrameTriImage.PaintBoxRenderer
 - 
Nested classes/interfaces inherited from class javax.swing.JFramejavax.swing.JFrame.AccessibleJFrame
 - 
Nested classes/interfaces inherited from class java.awt.Windowjava.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
 
- 
 - 
Field SummaryFields Modifier and Type Field Description private ViewJFrameImagecurrentFrameprivate intimage1Sliceprivate intimageActiveIndexprivate ViewJComponentEditImage[]imageCompprivate ViewJFrameImage[]imageFrameprivate java.lang.String[]imageNamesprivate intimageNamesIndexprivate ModelImage[]imagesprivate javax.swing.JFileChooserimagesChoosertarget image variables.private javax.swing.JScrollPane[]imageScrollprivate javax.swing.JLabellabel5(package private) java.util.Hashtable<java.lang.String,java.util.Vector<java.lang.String>>namesTableprivate java.awt.Pointoriginprivate javax.swing.JPopupMenupopupprivate javax.swing.JPanel[]quadImagePanelprivate javax.swing.JSplitPanesplitPaneCenterprivate javax.swing.JSplitPanesplitPaneLowerprivate javax.swing.JSplitPanesplitPaneUpperprivate ViewUserInterfaceUIThe main user interface.(package private) static intvprivate intzDimprivate intzOffset- 
Fields inherited from class gov.nih.mipav.view.ViewJFrameTriImageaddPointToggleButton, 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, zTalLabel
 - 
Fields inherited from class gov.nih.mipav.view.ViewJFrameBaseabsoluteGoToButton, 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.FrameCROSSHAIR_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.ComponentBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
- 
 - 
Constructor SummaryConstructors Constructor Description ViewJFrameMultimodalityViewer(ModelImage _imageA, ViewJFrameImage frame)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent event)Calls various methods depending on the action.voidaddPopup()private voidadjustScrollbars(int x, int y, javax.swing.JScrollPane scrollPane)DOCUMENT ME!protected voidbuildActiveImagePanel()Builds the active image panel for choosing which image (A, B, or BOTH) to perform operations on.(package private) voidcaptureComponent(java.awt.Component component)voiddisposeLocal()Should be called when window is closing to perform cleanup.voiddoTraverse(java.io.File dir)voidequalScaleImage()protected voidfinalize()DOCUMENT ME!voidfitsToScreen()int[]getCenter()Sets the x coordinate of the point to be the center of the transformed image.WildMagic.LibFoundation.Mathematics.Vector3fgetCenterPt()javax.swing.JFramegetFrame()private voidgetFramesInfo()ModelImagegetImageA()Accessor that returns the reference to imageA.ModelImagegetImageB()Accessor that returns the reference to imageB.ViewJFrameTriImagegetLinkedTriFrame()Gets the linked ViewJFrameTriImage.ViewJFrameImagegetParentFrame()Returns a reference to the ViewJFrameImage object that is the parent of this frame.private voidinitLayout()voidinvokeMeasure()voiditemStateChanged(java.awt.event.ItemEvent event)Does setBorderPainted for the appropriate button.voidkeyPressed(java.awt.event.KeyEvent e)keyPressed event method for KeyListener.voidkeyReleased(java.awt.event.KeyEvent e)keyReleased event method for KeyListener.voidkeyTyped(java.awt.event.KeyEvent e)DOCUMENT ME!voidmouseClicked(java.awt.event.MouseEvent event)DOCUMENT ME!voidmouseDragged(java.awt.event.MouseEvent e)voidmouseEntered(java.awt.event.MouseEvent event)DOCUMENT ME!voidmouseExited(java.awt.event.MouseEvent event)DOCUMENT ME!voidmouseMoved(java.awt.event.MouseEvent evt)voidmousePressed(java.awt.event.MouseEvent event)DOCUMENT ME!voidmouseReleased(java.awt.event.MouseEvent event)DOCUMENT ME!voidmouseWheelMoved(java.awt.event.MouseWheelEvent mouseWheelEvent)private voidprintTable()private voidreadDicomImage(java.lang.String currentDirectory)private voidreadImages(java.io.File dir)private voidreadMultlmodalImages()File chooser to select target image directory.voidreadNewXML()voidreadXML(java.lang.String currentDirectory)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)voidsetCursor(java.awt.Cursor kCursor)voidsetEnabled(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 truevoidsetLUTa(ModelLUT LUT)Accessor that sets the LUT.voidsetLUTb(ModelLUT LUT)Accessor 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(java.awt.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.voidsetRecordingMode()voidsetRGBTA(ModelRGB RGBT)Sets the RGB table for ARGB image A.voidsetRGBTB(ModelRGB RGBT)Sets 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.voidsetTraverseButton()Sets 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.voidstartRecording()voidstateChanged(javax.swing.event.ChangeEvent e)Sets values based on knob along time slider.voidstopRecording()private voidtraverse(java.io.File file)private voidtraverseDeeper(java.io.File file)private voidtraverseDicom(java.io.File file, java.lang.String dirName)booleanupdateImageExtents()Do nothing - required by ViewJFrameBase.booleanupdateImages()This 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!voidwindowClosing(java.awt.event.WindowEvent event)Closes window and disposes of frame and component.voidwindowOpened(java.awt.event.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.ViewJFrameTriImageabsoluteGoTo, 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, 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, updatePaint
 - 
Methods inherited from class gov.nih.mipav.view.ViewJFrameBaseabout, 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, windowIconified
 - 
Methods inherited from class javax.swing.JFrameaddImpl, 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.FrameaddNotify, 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.WindowaddPropertyChangeListener, 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, toFront
 - 
Methods inherited from class java.awt.Containeradd, 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.Componentaction, 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, transferFocusUpCycle
 - 
Methods inherited from class java.lang.Objectclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface gov.nih.mipav.view.renderer.WildMagic.VOI.VOIManagerInterfaceListeneraddSphereVOIs, create3DVOI, getActiveImage, getActiveLUT, getActiveRGB, getVOIManager, maskToPaint, paintToShortMask, paintToUbyteMask, PointerActive, PropDown, PropUp, setActiveImage, setModified, setPaintMask, updateData
 
- 
 
- 
- 
- 
Field Detail- 
imagesChooserprivate javax.swing.JFileChooser imagesChooser target image variables.
 - 
UIprivate ViewUserInterface UI The main user interface.
 - 
imageNamesprivate java.lang.String[] imageNames 
 - 
imageNamesIndexprivate int imageNamesIndex 
 - 
imagesprivate ModelImage[] images 
 - 
currentFrameprivate ViewJFrameImage currentFrame 
 - 
imageFrameprivate ViewJFrameImage[] imageFrame 
 - 
imageCompprivate ViewJComponentEditImage[] imageComp 
 - 
imageScrollprivate javax.swing.JScrollPane[] imageScroll 
 - 
originprivate java.awt.Point origin 
 - 
quadImagePanelprivate javax.swing.JPanel[] quadImagePanel 
 - 
splitPaneUpperprivate javax.swing.JSplitPane splitPaneUpper 
 - 
splitPaneLowerprivate javax.swing.JSplitPane splitPaneLower 
 - 
splitPaneCenterprivate javax.swing.JSplitPane splitPaneCenter 
 - 
zOffsetprivate int zOffset 
 - 
image1Sliceprivate int image1Slice 
 - 
zDimprivate int zDim 
 - 
label5private javax.swing.JLabel label5 
 - 
popupprivate javax.swing.JPopupMenu popup 
 - 
imageActiveIndexprivate int imageActiveIndex 
 - 
namesTablejava.util.Hashtable<java.lang.String,java.util.Vector<java.lang.String>> namesTable 
 - 
vstatic int v 
 
- 
 - 
Constructor Detail- 
ViewJFrameMultimodalityViewerpublic ViewJFrameMultimodalityViewer(ModelImage _imageA, ViewJFrameImage frame) 
 
- 
 - 
Method Detail- 
setRecordingModepublic void setRecordingMode() 
 - 
addPopuppublic void addPopup() 
 - 
getFramesInfoprivate void getFramesInfo() 
 - 
initLayoutprivate void initLayout() 
 - 
captureComponentvoid captureComponent(java.awt.Component component) 
 - 
mouseWheelMovedpublic void mouseWheelMoved(java.awt.event.MouseWheelEvent mouseWheelEvent) - Specified by:
- mouseWheelMovedin interface- java.awt.event.MouseWheelListener
 
 - 
readMultlmodalImagesprivate void readMultlmodalImages() File chooser to select target image directory.
 - 
doTraversepublic void doTraverse(java.io.File dir) 
 - 
readImagesprivate void readImages(java.io.File dir) 
 - 
readXMLpublic void readXML(java.lang.String currentDirectory) 
 - 
readNewXMLpublic void readNewXML() 
 - 
equalScaleImagepublic void equalScaleImage() 
 - 
fitsToScreenpublic void fitsToScreen() 
 - 
traverseprivate void traverse(java.io.File file) 
 - 
readDicomImageprivate void readDicomImage(java.lang.String currentDirectory) 
 - 
printTableprivate void printTable() 
 - 
traverseDeeperprivate void traverseDeeper(java.io.File file) 
 - 
traverseDicomprivate void traverseDicom(java.io.File file, java.lang.String dirName)
 - 
actionPerformedpublic void actionPerformed(java.awt.event.ActionEvent event) Calls various methods depending on the action.- Specified by:
- actionPerformedin interface- java.awt.event.ActionListener
- Overrides:
- actionPerformedin class- ViewJFrameTriImage
- Parameters:
- event- event that triggered function
 
 - 
invokeMeasurepublic void invokeMeasure() 
 - 
disposeLocalpublic void disposeLocal() Should be called when window is closing to perform cleanup.- Overrides:
- disposeLocalin class- ViewJFrameTriImage
 
 - 
getCenterpublic int[] getCenter() Sets the x coordinate of the point to be the center of the transformed image.- Overrides:
- getCenterin class- ViewJFrameTriImage
- Returns:
- DOCUMENT ME!
 
 - 
getCenterPtpublic WildMagic.LibFoundation.Mathematics.Vector3f getCenterPt() - Specified by:
- getCenterPtin interface- VOIManagerInterfaceListener
- Overrides:
- getCenterPtin class- ViewJFrameTriImage
 
 - 
getImageApublic ModelImage getImageA() Accessor that returns the reference to imageA.- Overrides:
- getImageAin class- ViewJFrameTriImage
- Returns:
- image
 
 - 
getImageBpublic ModelImage getImageB() Accessor that returns the reference to imageB.- Overrides:
- getImageBin class- ViewJFrameTriImage
- Returns:
- imageB
 
 - 
getLinkedTriFramepublic ViewJFrameTriImage getLinkedTriFrame() Gets the linked ViewJFrameTriImage.- Overrides:
- getLinkedTriFramein class- ViewJFrameTriImage
- Returns:
- linkedFrame
 
 - 
getParentFramepublic ViewJFrameImage getParentFrame() Returns a reference to the ViewJFrameImage object that is the parent of this frame.- Overrides:
- getParentFramein class- ViewJFrameTriImage
- Returns:
- a reference to the ViewJFrameImage object that is the parent of this frame
 
 - 
itemStateChangedpublic void itemStateChanged(java.awt.event.ItemEvent event) Does setBorderPainted for the appropriate button.- Specified by:
- itemStateChangedin interface- java.awt.event.ItemListener
- Overrides:
- itemStateChangedin class- ViewJFrameTriImage
- Parameters:
- event- Event that triggered this function
 
 - 
keyPressedpublic void keyPressed(java.awt.event.KeyEvent e) keyPressed event method for KeyListener.- Specified by:
- keyPressedin interface- java.awt.event.KeyListener
- Overrides:
- keyPressedin class- ViewJFrameTriImage
- Parameters:
- e- KeyEvent
 
 - 
keyReleasedpublic void keyReleased(java.awt.event.KeyEvent e) keyReleased event method for KeyListener.- Specified by:
- keyReleasedin interface- java.awt.event.KeyListener
- Overrides:
- keyReleasedin class- ViewJFrameTriImage
- Parameters:
- e- KeyEvent
 
 - 
keyTypedpublic void keyTyped(java.awt.event.KeyEvent e) DOCUMENT ME!- Specified by:
- keyTypedin interface- java.awt.event.KeyListener
- Overrides:
- keyTypedin class- ViewJFrameTriImage
- Parameters:
- e- DOCUMENT ME!
 
 - 
mouseClickedpublic void mouseClicked(java.awt.event.MouseEvent event) DOCUMENT ME!- Specified by:
- mouseClickedin interface- java.awt.event.MouseListener
- Overrides:
- mouseClickedin class- ViewJFrameTriImage
- Parameters:
- event- DOCUMENT ME!
 
 - 
mouseEnteredpublic void mouseEntered(java.awt.event.MouseEvent event) DOCUMENT ME!- Specified by:
- mouseEnteredin interface- java.awt.event.MouseListener
- Overrides:
- mouseEnteredin class- ViewJFrameTriImage
- Parameters:
- event- DOCUMENT ME!
 
 - 
mouseExitedpublic void mouseExited(java.awt.event.MouseEvent event) DOCUMENT ME!- Specified by:
- mouseExitedin interface- java.awt.event.MouseListener
- Overrides:
- mouseExitedin class- ViewJFrameTriImage
- Parameters:
- event- DOCUMENT ME!
 
 - 
mouseMovedpublic void mouseMoved(java.awt.event.MouseEvent evt) - Specified by:
- mouseMovedin interface- java.awt.event.MouseMotionListener
 
 - 
mouseDraggedpublic void mouseDragged(java.awt.event.MouseEvent e) - Specified by:
- mouseDraggedin interface- java.awt.event.MouseMotionListener
 
 - 
mousePressedpublic void mousePressed(java.awt.event.MouseEvent event) DOCUMENT ME!- Specified by:
- mousePressedin interface- java.awt.event.MouseListener
- Overrides:
- mousePressedin class- ViewJFrameTriImage
- Parameters:
- event- DOCUMENT ME!
 
 - 
mouseReleasedpublic void mouseReleased(java.awt.event.MouseEvent event) DOCUMENT ME!- Specified by:
- mouseReleasedin interface- java.awt.event.MouseListener
- Overrides:
- mouseReleasedin class- ViewJFrameTriImage
- Parameters:
- event- DOCUMENT ME!
 
 - 
setActiveImagepublic 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 interface- VOIManagerInterfaceListener
- Overrides:
- setActiveImagein class- ViewJFrameTriImage
- Parameters:
- active- ViewJComponentBase.IMAGE_A or ViewJComponentBase.IMAGE_B
 
 - 
setCenterpublic 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 class- ViewJFrameTriImage
- Parameters:
- i- model space coordinate
- j- model space coordinate
- k- model space coordinate
 
 - 
setCenterpublic void setCenter(WildMagic.LibFoundation.Mathematics.Vector3f kCenter) - Specified by:
- setCenterin interface- VOIManagerInterfaceListener
- Overrides:
- setCenterin class- ViewJFrameTriImage
 
 - 
setCenterpublic 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 class- ViewJFrameTriImage
- Parameters:
- i- model space coordinate
- j- model space coordinate
- k- model space coordinate
- checkLinkedScroll- (boolean telling whether to look for linked images to sync scroll... necessary to avoid infinite loop)
 
 - 
setEnabledpublic void setEnabled(boolean flag) Controls whether or not the images/VOIs of the frame can be modified.- Overrides:
- setEnabledin class- ViewJFrameTriImage
- Parameters:
- flag- if true the image/VOIs can be modified; if false image/VOIs can NOT be modified
 
 - 
setImageApublic void setImageA(ModelImage image) Changes imageA to a new model image reference. Swaps the references in the frame and all the component images.- Overrides:
- setImageAin class- ViewJFrameTriImage
- Parameters:
- image- the new image to use
 
 - 
setImageBpublic void setImageB(ModelImage _imageB) Accessor that sets the reference to imageB. Includes changing the frame's reference and the references the components keep.- Overrides:
- setImageBin class- ViewJFrameTriImage
- Parameters:
- _imageB- image to set the frame to
 
 - 
setImageBpublic void setImageB(ModelImage _imageB, boolean disposeOldB) 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 class- ViewJFrameTriImage
- Parameters:
- _imageB- image to set the frame to
 
 - 
setLUTapublic void setLUTa(ModelLUT LUT) Accessor that sets the LUT.- Overrides:
- setLUTain class- ViewJFrameTriImage
- Parameters:
- LUT- the LUT
 
 - 
setLUTbpublic void setLUTb(ModelLUT LUT) Accessor that sets the LUT.- Overrides:
- setLUTbin class- ViewJFrameTriImage
- Parameters:
- LUT- the LUT
 
 - 
setPaintBitmapSwitchpublic 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 class- ViewJFrameTriImage
- Parameters:
- paintBitmapSwitch- if true don't do a getMask on the new actve image
 
 - 
setPaintColorpublic void setPaintColor(java.awt.Color color) Sets the color of the paint.- Overrides:
- setPaintColorin class- ViewJFrameTriImage
- Parameters:
- color- Color the desired color of the paint
 
 - 
setPositionLabelspublic 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 class- ViewJFrameTriImage
- Parameters:
- x- the x volume coordinate
- y- the y volume coordinate
- z- the z volume coordinate
 
 - 
setRGBTApublic void setRGBTA(ModelRGB RGBT) Sets the RGB table for ARGB image A.- Overrides:
- setRGBTAin class- ViewJFrameTriImage
- Parameters:
- RGBT- the new RGB transfer functions for imageA
 
 - 
setRGBTBpublic void setRGBTB(ModelRGB RGBT) Sets the RGB table for image B.- Overrides:
- setRGBTBin class- ViewJFrameTriImage
- Parameters:
- RGBT- the new RGB transfer functions for imageB
 
 - 
setLinkButtonSelectedpublic 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 class- ViewJFrameTriImage
 
 - 
setSlicepublic void setSlice(int slice) Does nothing.- Specified by:
- setSlicein interface- ViewImageUpdateInterface
- Overrides:
- setSlicein class- ViewJFrameTriImage
- Parameters:
- slice- the slice to show
 
 - 
setSlicespublic 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 class- ViewJFrameTriImage
- Parameters:
- x- slice index in the patient
- y- slice index in the patient
- z- slice index in the patient
 
 - 
setSlicesFromFramepublic 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 class- ViewJFrameTriImage
- Parameters:
- x- X Slice of image.
- y- Y Slice of image.
- z- Z Slice of image.
 
 - 
setTimeSlicepublic void setTimeSlice(int slice) Sets the slice to be displayed and updates title frame.- Specified by:
- setTimeSlicein interface- ViewImageUpdateInterface
- Overrides:
- setTimeSlicein class- ViewJFrameTriImage
- Parameters:
- slice- indicates image time-slice (4th dimension) to be displayed
 
 - 
setTimeSlicepublic void setTimeSlice(int slice, boolean checkedLinkedScroll)Sets the slice to be displayed and updates title frame.- Overrides:
- setTimeSlicein class- ViewJFrameTriImage
- Parameters:
- slice- indicates image time-slice (4th dimension) to be displayed
- checkedLinkedScroll- whether corresponding tri-frames should also be scrolled
 
 - 
setTitlepublic 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 class- ViewJFrameTriImage
 
 - 
setTraverseButtonpublic void setTraverseButton() Sets the traverse button to selected.- Overrides:
- setTraverseButtonin class- ViewJFrameTriImage
 
 - 
setVolumeCenterpublic void setVolumeCenter(Point3D newVolumeCenter) Sets the x coordinate of the point to be the center of the transformed image.- Overrides:
- setVolumeCenterin class- ViewJFrameTriImage
- Parameters:
- newVolumeCenter- The x coordinate of the center.
 
 - 
setVolumeCenterpublic 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 class- ViewJFrameTriImage
- Parameters:
- x- The x coordinate of the center.
- y- DOCUMENT ME!
- z- DOCUMENT ME!
 
 - 
stateChangedpublic void stateChanged(javax.swing.event.ChangeEvent e) Sets values based on knob along time slider.- Specified by:
- stateChangedin interface- javax.swing.event.ChangeListener
- Overrides:
- stateChangedin class- ViewJFrameTriImage
- Parameters:
- e- Event that triggered this function
 
 - 
updateImageExtentspublic boolean updateImageExtents() Do nothing - required by ViewJFrameBase.- Specified by:
- updateImageExtentsin interface- ViewImageUpdateInterface
- Overrides:
- updateImageExtentsin class- ViewJFrameTriImage
- Returns:
- always false
- See Also:
- ViewImageUpdateInterface
 
 - 
updateImagespublic boolean updateImages() This methods calls the componentImage's update method to redraw the screen.- Specified by:
- updateImagesin interface- ViewImageUpdateInterface
- Overrides:
- updateImagesin class- ViewJFrameTriImage
- Returns:
- boolean confirming successful update
 
 - 
updateImagespublic boolean updateImages(boolean forceShow) This methods calls the componentImage's update method to redraw the screen. Without LUT changes.- Specified by:
- updateImagesin interface- ViewImageUpdateInterface
- Overrides:
- updateImagesin class- ViewJFrameTriImage
- Parameters:
- forceShow- forces show to reimport image and calc. java image
- Returns:
- boolean confirming successful update
 
 - 
updateImagespublic boolean updateImages(boolean forceShow, int interpMode)This methods calls the componentImage's update method to redraw the screen. Without LUT changes.- Overrides:
- updateImagesin class- ViewJFrameTriImage
- Parameters:
- forceShow- forces show to reimport image and calc. java image
- interpMode-
- Returns:
- boolean confirming successful update
 
 - 
updateImagespublic boolean updateImages(ModelLUT LUTa, ModelLUT LUTb, boolean forceShow, int interpMode) This methods calls the componentImage's update method to redraw the screen.- Specified by:
- updateImagesin interface- ViewImageUpdateInterface
- Overrides:
- updateImagesin class- ViewJFrameTriImage
- Parameters:
- LUTa- LUT used to update imageA
- LUTb- LUT used to update imageB
- forceShow- forces show to reimport image and calc. java image
- interpMode- image interpolation method (Nearest or Smooth)
- Returns:
- boolean confirming successful update
 
 - 
updateImageSubsetpublic void updateImageSubset(ViewJComponentTriImage triImage) DOCUMENT ME!- Overrides:
- updateImageSubsetin class- ViewJFrameTriImage
- Parameters:
- triImage- DOCUMENT ME!
 
 - 
windowClosingpublic void windowClosing(java.awt.event.WindowEvent event) Closes window and disposes of frame and component.- Specified by:
- windowClosingin interface- java.awt.event.WindowListener
- Overrides:
- windowClosingin class- ViewJFrameTriImage
- Parameters:
- event- Event that triggered function
 
 - 
windowOpenedpublic void windowOpened(java.awt.event.WindowEvent event) Description copied from class:ViewJFrameBaseDoes nothing.- Specified by:
- windowOpenedin interface- java.awt.event.WindowListener
- Overrides:
- windowOpenedin class- ViewJFrameTriImage
- Parameters:
- event- the window event
 
 - 
buildActiveImagePanelprotected void buildActiveImagePanel() Builds the active image panel for choosing which image (A, B, or BOTH) to perform operations on.- Overrides:
- buildActiveImagePanelin class- ViewJFrameTriImage
 
 - 
finalizeprotected void finalize() throws java.lang.ThrowableDOCUMENT ME!- Overrides:
- finalizein class- ViewJFrameTriImage
- Throws:
- java.lang.Throwable- DOCUMENT ME!
 
 - 
adjustScrollbarsprivate void adjustScrollbars(int x, int y, javax.swing.JScrollPane scrollPane)DOCUMENT ME!- Parameters:
- x- DOCUMENT ME!
- y- DOCUMENT ME!
- scrollPane- DOCUMENT ME!
 
 - 
zoomInFrameprotected void zoomInFrame(int frame) this method will zoom in a particular frame.- Overrides:
- zoomInFramein class- ViewJFrameTriImage
- Parameters:
- frame- frame the frame number
 
 - 
zoomOutFrameprotected void zoomOutFrame(int frame) this method will zoom out a particular frame.- Overrides:
- zoomOutFramein class- ViewJFrameTriImage
- Parameters:
- frame- frame the frame number
 
 - 
getFramepublic javax.swing.JFrame getFrame() - Specified by:
- getFramein interface- VOIManagerInterfaceListener
- Overrides:
- getFramein class- ViewJFrameTriImage
 
 - 
setCursorpublic void setCursor(java.awt.Cursor kCursor) - Specified by:
- setCursorin interface- VOIManagerInterfaceListener
- Overrides:
- setCursorin class- ViewJFrameTriImage
 
 - 
startRecordingpublic void startRecording() 
 - 
stopRecordingpublic void stopRecording() 
 
- 
 
-