Class WorldWindView

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
com.eco.bio7.worldwind.WorldWindView
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

public class WorldWindView extends org.eclipse.ui.part.ViewPart
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    org.eclipse.swt.widgets.Text
     
    protected boolean
     
    org.eclipse.swt.widgets.Button
     
    static final String
     
    org.eclipse.swt.widgets.ToolBar
     
    protected int
     
    protected int
     

    Fields inherited from interface org.eclipse.ui.IWorkbenchPart

    PROP_TITLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addImage(String imagePath)
     
    void
    The fullscreen mode of the globe in monitor i (0: the primary monitor, 1: the secondary monitor, etc.).
    void
    createPartControl(org.eclipse.swt.widgets.Composite parent)
    Create contents of the view part
    void
     
    void
    fullscreenKey(int key)
    The fullscreen keys of all Bio7 views (see NewtFullscreen): 2 (F2) the primary monitor (exits in fullscreen mode), 3 (F3) the secondary, 4 (F4) the tertiary monitor and 5 (F5) a selected monitor.
    static com.eco.bio7.rbridge.REvaluator
    The evaluation in R (embedded R) or null if R is not connected.
    com.eco.bio7.worldwind.Fullscreen
     
     
     
    org.eclipse.swt.widgets.Composite
     
    static com.eco.bio7.worldwind.swt.WorldWindowNewtCanvasSWT
     
    static void
    insertBeforeCompass(gov.nasa.worldwind.WorldWindow wwd, gov.nasa.worldwind.layers.Layer layer)
     
    static boolean
     
    boolean
    Returns true if the globe is displayed in fullscreen mode.
    void
     
    void
    removeImage(String imagePath)
     
    static void
    setEvaluatorSupplier(Supplier<com.eco.bio7.rbridge.REvaluator> supplier)
    Sets the evaluator of Bio7 (embedded R).
    void
    setFlatProjection(boolean flat)
     
    void
    Passing the focus request to the viewer's control.
    void
    setFull(com.eco.bio7.worldwind.Fullscreen full)
     
    static void
     
    static void
    Toggles the fullscreen mode of the globe in monitor i (0: the primary, 1: the secondary monitor, etc., like the fullscreen of the 3D view, see SpatialUtil.setFullscreen).
    static void
     
    void
     

    Methods inherited from class org.eclipse.ui.part.ViewPart

    checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName

    Methods inherited from class org.eclipse.ui.part.WorkbenchPart

    addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy

    Methods inherited from class org.eclipse.core.commands.common.EventManager

    addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ID

      public static final String ID
      See Also:
    • combo

      public org.eclipse.swt.widgets.Text combo
    • flyToButton

      public org.eclipse.swt.widgets.Button flyToButton
    • infoButton

      public org.eclipse.swt.widgets.ToolBar infoButton
    • tempSizeY

      protected int tempSizeY
    • tempSizeX

      protected int tempSizeX
    • detached

      protected boolean detached
  • Constructor Details

    • WorldWindView

      public WorldWindView()
  • Method Details

    • getWwd

      public static com.eco.bio7.worldwind.swt.WorldWindowNewtCanvasSWT getWwd()
    • getFull

      public com.eco.bio7.worldwind.Fullscreen getFull()
    • setFull

      public void setFull(com.eco.bio7.worldwind.Fullscreen full)
    • setFullscreen

      public static void setFullscreen()
    • setFullscreen

      public static void setFullscreen(int i)
      Toggles the fullscreen mode of the globe in monitor i (0: the primary, 1: the secondary monitor, etc., like the fullscreen of the 3D view, see SpatialUtil.setFullscreen).
    • getInstance

      public static WorldWindView getInstance()
    • createPartControl

      public void createPartControl(org.eclipse.swt.widgets.Composite parent)
      Create contents of the view part
      Specified by:
      createPartControl in interface org.eclipse.ui.IWorkbenchPart
      Specified by:
      createPartControl in class org.eclipse.ui.part.WorkbenchPart
      Parameters:
      parent -
    • setStatusline

      public void setStatusline(String message)
    • isFlatProjection

      public static boolean isFlatProjection()
    • setFlatProjection

      public void setFlatProjection(boolean flat)
    • setProjectionMode

      public static void setProjectionMode(int proj)
    • createFullscreen

      public void createFullscreen(int i)
      The fullscreen mode of the globe in monitor i (0: the primary monitor, 1: the secondary monitor, etc.).
    • isFullscreen

      public boolean isFullscreen()
      Returns true if the globe is displayed in fullscreen mode.
    • fullscreenKey

      public void fullscreenKey(int key)
      The fullscreen keys of all Bio7 views (see NewtFullscreen): 2 (F2) the primary monitor (exits in fullscreen mode), 3 (F3) the secondary, 4 (F4) the tertiary monitor and 5 (F5) a selected monitor.
    • recreateGLCanvas

      public void recreateGLCanvas()
    • addImage

      public void addImage(String imagePath) throws IOException
      Throws:
      IOException
    • removeImage

      public void removeImage(String imagePath)
    • insertBeforeCompass

      public static void insertBeforeCompass(gov.nasa.worldwind.WorldWindow wwd, gov.nasa.worldwind.layers.Layer layer)
    • setFocus

      public void setFocus()
      Passing the focus request to the viewer's control.
      Specified by:
      setFocus in interface org.eclipse.ui.IWorkbenchPart
      Specified by:
      setFocus in class org.eclipse.ui.part.WorkbenchPart
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.eclipse.ui.IWorkbenchPart
      Overrides:
      dispose in class org.eclipse.ui.part.WorkbenchPart
    • setEvaluatorSupplier

      public static void setEvaluatorSupplier(Supplier<com.eco.bio7.rbridge.REvaluator> supplier)
      Sets the evaluator of Bio7 (embedded R).
    • getEvaluator

      public static com.eco.bio7.rbridge.REvaluator getEvaluator()
      The evaluation in R (embedded R) or null if R is not connected.
    • getPanel

      public Panel getPanel()
    • getTopComposite

      public org.eclipse.swt.widgets.Composite getTopComposite()