Package gaiasky

Class GaiaSky

  • All Implemented Interfaces:
    com.badlogic.gdx.ApplicationListener, IObserver, IMainRenderer

    public class GaiaSky
    extends java.lang.Object
    implements com.badlogic.gdx.ApplicationListener, IObserver, IMainRenderer
    The main class. Holds all the entities manages the update/draw cycle as well as the image rendering.
    • Field Detail

      • instance

        public static GaiaSky instance
        Singleton instance
      • window

        public static com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window window
        Window
      • graphics

        public static com.badlogic.gdx.backends.lwjgl3.Lwjgl3Graphics graphics
        Graphics
      • vrLoadingLeftFb

        public com.badlogic.gdx.graphics.glutils.FrameBuffer vrLoadingLeftFb
        Loading fb
      • vrLoadingRightFb

        public com.badlogic.gdx.graphics.glutils.FrameBuffer vrLoadingRightFb
        Loading fb
      • vrLoadingLeftTex

        public org.lwjgl.openvr.Texture vrLoadingLeftTex
        Loading texture
      • vrLoadingRightTex

        public org.lwjgl.openvr.Texture vrLoadingRightTex
        Loading texture
      • manager

        public com.badlogic.gdx.assets.AssetManager manager
      • frames

        public long frames
      • initialGui

        public IGui initialGui
        The user interfaces
      • loadingGui

        public IGui loadingGui
        The user interfaces
      • loadingGuiVR

        public IGui loadingGuiVR
        The user interfaces
      • mainGui

        public IGui mainGui
        The user interfaces
      • spacecraftGui

        public IGui spacecraftGui
        The user interfaces
      • stereoGui

        public IGui stereoGui
        The user interfaces
      • debugGui

        public IGui debugGui
        The user interfaces
      • crashGui

        public IGui crashGui
        The user interfaces
      • controllerGui

        public IGui controllerGui
        The user interfaces
      • windowCreated

        public boolean windowCreated
      • saveState

        public boolean saveState
        Save state on exit
      • externalView

        public boolean externalView
        External view with final rendered scene and no UI
      • gaiaskyUI

        public GaiaSkyView gaiaskyUI
        External UI window
    • Constructor Detail

      • GaiaSky

        public GaiaSky()
        Creates an instance of Gaia Sky.
      • GaiaSky

        public GaiaSky​(boolean dsdownload,
                       boolean catchooser,
                       boolean vr,
                       boolean externalView,
                       boolean noScriptingServer)
        Creates an instance of Gaia Sky.
        Parameters:
        dsdownload - Force-show the datasets download window
        catchooser - Force-show the catalog chooser window
        vr - Launch in VR mode
        externalView - Open a new window with a view of the rendered scene
    • Method Detail

      • create

        public void create()
        Specified by:
        create in interface com.badlogic.gdx.ApplicationListener
      • reinitialiseGUI1

        public void reinitialiseGUI1()
        Reinitialises all the GUI (step 1)
      • reinitialiseGUI2

        public void reinitialiseGUI2()
        Second step in GUI initialisation.
      • pause

        public void pause()
        Specified by:
        pause in interface com.badlogic.gdx.ApplicationListener
      • resume

        public void resume()
        Specified by:
        resume in interface com.badlogic.gdx.ApplicationListener
      • dispose

        public void dispose()
        Specified by:
        dispose in interface com.badlogic.gdx.ApplicationListener
      • getBackRenderBuffer

        public com.badlogic.gdx.graphics.glutils.FrameBuffer getBackRenderBuffer()
      • render

        public void render()
        Specified by:
        render in interface com.badlogic.gdx.ApplicationListener
      • update

        public void update​(double dt)
        Update method.
        Parameters:
        dt - Delta time in seconds.
      • resize

        public void resize​(int width,
                           int height)
        Specified by:
        resize in interface com.badlogic.gdx.ApplicationListener
      • resizeImmediate

        public void resizeImmediate​(int width,
                                    int height,
                                    boolean resizePostProcessors,
                                    boolean resizeRenderSys,
                                    boolean resizeGuis)
      • getFocusableEntities

        public com.badlogic.gdx.utils.Array<IFocus> getFocusableEntities()
      • getFrameBuffer

        public com.badlogic.gdx.graphics.glutils.FrameBuffer getFrameBuffer​(int w,
                                                                            int h)
        Specified by:
        getFrameBuffer in interface IMainRenderer
      • isOn

        public boolean isOn​(int ordinal)
      • notify

        public void notify​(Events event,
                           java.lang.Object... data)
        Specified by:
        notify in interface IObserver
      • isInitialised

        public boolean isInitialised()
      • parkRunnable

        public void parkRunnable​(java.lang.String key,
                                 java.lang.Runnable runnable)
        Parks a runnable that will run every frame right the update() method (before render) until it is unparked
        Parameters:
        key - The key to identify the runnable
        runnable - The runnable
      • unparkRunnable

        public void unparkRunnable​(java.lang.String key)
        Unparks a previously parked runnable
        Parameters:
        key - The key of the runnable to unpark
      • postRunnable

        public static void postRunnable​(java.lang.Runnable r)