Class ViewJFramePlotterView

All Implemented Interfaces:
ViewImageUpdateInterface, ActionListener, ComponentListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener, RootPaneContainer, WindowConstants

public class ViewJFramePlotterView extends ViewJFrameBase

Title: ViewJFramePlotterView

Description: The plotter render view frame. The plotter render views images based on each slice intensity values. Component surface created from a 2D image. The intensity values are mapped like a relief map, with higher intensities making peaks and lower intensities forming valleys. A quad mesh is used to create the three-dimensional map. The same LUT from the image is used to colors the vertices of the quad mesh.

Author:
Matthew J. McAuliffe, Ph.D.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • config

      protected GraphicsConfiguration config
      Configuration param, which will pass down to each render's constructor.
    • serif12

      protected Font serif12
      Fonts, same as MipavUtil.font12 and MipavUtil.font12B.
    • serif12B

      protected Font serif12B
      Fonts, same as MipavUtil.font12 and MipavUtil.font12B.
    • cameraPanel

      private JPanel cameraPanel
      DOCUMENT ME!
    • imagePanel

      private JPanel imagePanel
      The image panel to hold one Canvas3D.
    • itemLine

      private JCheckBoxMenuItem itemLine
      Image line mode check box.
    • mousePanel

      private JPanel mousePanel
      DOCUMENT ME!
    • openingMenuBar

      private JMenuBar openingMenuBar
      Menu bar.
    • panelToolbar

      private JPanel panelToolbar
      Toolbar panel.
    • plotterRender

      private SurfacePlotter plotterRender
      Surface plotter view.
    • raisedbevel

      private Border raisedbevel
      Panel Border view.
    • loweredbevel

      private Border loweredbevel
      Panel Border view.
    • compound

      private Border compound
      Panel Border view.
    • screenWidth

      private int screenWidth
      Screen width, screen height.
    • screenHeight

      private int screenHeight
      Screen width, screen height.
    • sliderControlPanel

      private JPanel sliderControlPanel
      DOCUMENT ME!
    • surfaceBoxPanel

      private JPanel surfaceBoxPanel
      DOCUMENT ME!
    • surTabVector

      private Vector surTabVector
      DOCUMENT ME!
    • tabbedPane

      private JTabbedPane tabbedPane
      The main tabbed pane in the volume view frame.
    • tabVector

      private Vector tabVector
      For each render, use the vector to store the currently active tabs.
    • viewPanel

      private JPanel viewPanel
      Control panel for the surface renderer.
  • Constructor Details

    • ViewJFramePlotterView

      public ViewJFramePlotterView(ModelImage _imageA, ModelLUT _LUTa, int slice)
      The frame the rendering the plotter view of images. The plotter renderer view images based on the image intensity values.
      Parameters:
      _imageA - ModelImage source model images
      _LUTa - ModelLUT image LUT table
      slice - int slice number
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Calls various methods depending on the action.
      • Surface - opens the surface dialog
      • View - opens the view control dialog
      • Mouse - opens the mouse recorder dialog
      • About - displays a message about this renderer
      • Exit - sets variables to null and disposes of this frame
      • X, Y, Z checkboxes - toggles the appropriate image planes on or off
      Specified by:
      actionPerformed in interface ActionListener
      Specified by:
      actionPerformed in class ViewJFrameBase
      Parameters:
      event - Event that triggered function.
    • disposeLocal

      public void disposeLocal(boolean flag)
      Dispose memory.
      Parameters:
      flag - DOCUMENT ME!
    • getControls

      public ViewControlsImage getControls()
      DOCUMENT ME!
      Specified by:
      getControls in class ViewJFrameBase
      Returns:
      DOCUMENT ME!
    • getImageA

      public ModelImage getImageA()
      DOCUMENT ME!
      Specified by:
      getImageA in class ViewJFrameBase
      Returns:
      DOCUMENT ME!
    • getImageB

      public ModelImage getImageB()
      DOCUMENT ME!
      Specified by:
      getImageB in class ViewJFrameBase
      Returns:
      DOCUMENT ME!
    • insertTab

      public void insertTab(String _name, JPanel _panel)
      Insert the new tab into the current visible tab list.
      Parameters:
      _name - String Tab name.
      _panel - JPanel Control panel.
    • removeControls

      public void removeControls()
      DOCUMENT ME!
      Specified by:
      removeControls in class ViewJFrameBase
    • setActiveImage

      public void setActiveImage(int active)
      DOCUMENT ME!
      Specified by:
      setActiveImage in class ViewJFrameBase
      Parameters:
      active - DOCUMENT ME!
    • setAlphaBlend

      public void setAlphaBlend(int value)
      DOCUMENT ME!
      Specified by:
      setAlphaBlend in class ViewJFrameBase
      Parameters:
      value - DOCUMENT ME!
    • setControls

      public void setControls()
      DOCUMENT ME!
      Specified by:
      setControls in class ViewJFrameBase
    • setEnabled

      public void setEnabled(boolean flag)
      DOCUMENT ME!
      Specified by:
      setEnabled in class ViewJFrameBase
      Parameters:
      flag - DOCUMENT ME!
    • setImageB

      public void setImageB(ModelImage imageB)
      DOCUMENT ME!
      Specified by:
      setImageB in class ViewJFrameBase
      Parameters:
      imageB - DOCUMENT ME!
    • setLUTa

      public void setLUTa(ModelLUT LUT)
      Accessor that sets the LUT.
      Overrides:
      setLUTa in class ViewJFrameBase
      Parameters:
      LUT - the LUT
    • setPaintBitmapSwitch

      public void setPaintBitmapSwitch(boolean flag)
      DOCUMENT ME!
      Specified by:
      setPaintBitmapSwitch in class ViewJFrameBase
      Parameters:
      flag - DOCUMENT ME!
    • setRGBTA

      public void setRGBTA(ModelRGB RGBT)
      Sets the RGB table for ARGB image A.
      Specified by:
      setRGBTA in class ViewJFrameBase
      Parameters:
      RGBT - DOCUMENT ME!
    • setRGBTB

      public void setRGBTB(ModelRGB RGBT)
      DOCUMENT ME!
      Specified by:
      setRGBTB in class ViewJFrameBase
      Parameters:
      RGBT - DOCUMENT ME!
    • setSlice

      public void setSlice(int slice)
      Funcions do nothing, but extends ViewJFrameBase.
      Parameters:
      slice - DOCUMENT ME!
    • setTimeSlice

      public void setTimeSlice(int slice)
      DOCUMENT ME!
      Parameters:
      slice - DOCUMENT ME!
    • setTitle

      public void setTitle()
      DOCUMENT ME!
      Specified by:
      setTitle in class ViewJFrameBase
    • updateImageExtents

      public boolean updateImageExtents()
      DOCUMENT ME!
      Specified by:
      updateImageExtents in interface ViewImageUpdateInterface
      Specified by:
      updateImageExtents in class ViewJFrameBase
      Returns:
      DOCUMENT ME!
      See Also:
    • updateImages

      public boolean updateImages()
      Update images in surface render, raycast render and shearwarp render.
      Returns:
      boolean boolean confirming successful update
    • updateImages

      public boolean updateImages(boolean forceShow)
      This methods calls corresponding render to update images without LUT changes.
      Parameters:
      forceShow - forces show to reimport 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 corresponding render to update images with LUT changes.
      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
    • windowClosing

      public void windowClosing(WindowEvent event)
      Closes window and disposes of frame and component.
      Specified by:
      windowClosing in interface WindowListener
      Overrides:
      windowClosing in class ViewJFrameBase
      Parameters:
      event - Event that triggered function
    • buildMenu

      protected JMenuBar buildMenu()
      Builds menu.
      Returns:
      DOCUMENT ME!
    • configureFrame

      protected void configureFrame()
      Constructs main frame structures for 3 images.
    • finalize

      protected void finalize() throws Throwable
      Cleans up memory from gc.
      Overrides:
      finalize in class ViewJFrameBase
      Throws:
      Throwable - DOCUMENT ME!
    • init

      protected void init()
      Initialize the the frame layout.
    • buildCameraPanel

      private void buildCameraPanel()
      Build the camera snap shot panel.
    • buildMousePanel

      private void buildMousePanel()
      Build the mouse recorder panel.
    • buildSurfaceBoxPanel

      private void buildSurfaceBoxPanel()
      Build the options panel.
    • buildToolBar

      private void buildToolBar()
      Builds the toolbar for the volume render frame.
    • buildViewPanel

      private void buildViewPanel()
      Build the view control panel.