Package gaia.cu9.ari.gaiaorbit
Class GaiaSky
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.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 Summary
Fields Modifier and Type Field Description CameraManager
cam
IGui
debugGui
The user interfaceslong
frames
IGui
initialGui
The user interfacesstatic GaiaSky
instance
Singleton instanceIGui
loadingGui
The user interfacesIGui
loadingGuiVR
The user interfacesIGui
mainGui
The user interfacescom.badlogic.gdx.assets.AssetManager
manager
boolean
saveState
Save state on exitISceneGraph
sg
IGui
spacecraftGui
The user interfacesIGui
stereoGui
The user interfacesITimeFrameProvider
time
TimeVRContext
vrContext
TheVRContext
setup in createVR(), may be null if no HMD is present or SteamVR is not installedcom.badlogic.gdx.graphics.glutils.FrameBuffer
vrLoadingLeftFb
Loading fborg.lwjgl.openvr.Texture
vrLoadingLeftTex
Loading texturecom.badlogic.gdx.graphics.glutils.FrameBuffer
vrLoadingRightFb
Loading fborg.lwjgl.openvr.Texture
vrLoadingRightTex
Loading texture
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create()
void
dispose()
CameraManager
getCameraManager()
com.badlogic.gdx.utils.Array<IFocus>
getFocusableEntities()
com.badlogic.gdx.graphics.glutils.FrameBuffer
getFrameBuffer(int w, int h)
ICamera
getICamera()
IPostProcessor
getPostProcessor()
double
getT()
java.util.HashMap<VRContext.VRDevice,StubModel>
getVRDeviceToModel()
boolean
isInitialised()
boolean
isOn(int ordinal)
boolean
isOn(ComponentTypes cts)
boolean
isOn(ComponentTypes.ComponentType comp)
void
notify(Events event, java.lang.Object... data)
void
pause()
void
preRenderScene()
void
reinitialiseGUI1()
Reinitialises all the GUI (step 1)void
reinitialiseGUI2()
Second step in GUI initialisation.void
render()
void
renderSgr(ICamera camera, double t, int width, int height, com.badlogic.gdx.graphics.glutils.FrameBuffer frameBuffer, IPostProcessor.PostProcessBean ppb)
void
resize(int width, int height)
void
resizeImmediate(int width, int height, boolean resizePostProcessors, boolean resizeRenderSys, boolean resizeGuis)
void
resume()
void
update(double deltat)
Update method.
-
-
-
Field Detail
-
instance
public static GaiaSky instance
Singleton instance
-
vrContext
public VRContext vrContext
TheVRContext
setup in createVR(), may be null if no HMD is present or SteamVR is not installed
-
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
-
cam
public CameraManager cam
-
sg
public ISceneGraph sg
-
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
-
time
public ITimeFrameProvider time
Time
-
saveState
public boolean saveState
Save state on exit
-
-
Constructor Detail
-
GaiaSky
public GaiaSky()
Creates an instance of Gaia Sky.
-
GaiaSky
public GaiaSky(boolean dsdownload, boolean catchooser, boolean vr)
Creates an instance of Gaia Sky.- Parameters:
dsdownload
- Force-show the datasets download windowcatchooser
- Force-show the catalog chooser window
-
-
Method Detail
-
create
public void create()
- Specified by:
create
in interfacecom.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 interfacecom.badlogic.gdx.ApplicationListener
-
resume
public void resume()
- Specified by:
resume
in interfacecom.badlogic.gdx.ApplicationListener
-
dispose
public void dispose()
- Specified by:
dispose
in interfacecom.badlogic.gdx.ApplicationListener
-
render
public void render()
- Specified by:
render
in interfacecom.badlogic.gdx.ApplicationListener
-
update
public void update(double deltat)
Update method.- Parameters:
deltat
- Delta time in seconds.
-
preRenderScene
public void preRenderScene()
- Specified by:
preRenderScene
in interfaceIMainRenderer
-
renderSgr
public void renderSgr(ICamera camera, double t, int width, int height, com.badlogic.gdx.graphics.glutils.FrameBuffer frameBuffer, IPostProcessor.PostProcessBean ppb)
- Specified by:
renderSgr
in interfaceIMainRenderer
-
resize
public void resize(int width, int height)
- Specified by:
resize
in interfacecom.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 interfaceIMainRenderer
-
getVRDeviceToModel
public java.util.HashMap<VRContext.VRDevice,StubModel> getVRDeviceToModel()
-
getICamera
public ICamera getICamera()
- Specified by:
getICamera
in interfaceIMainRenderer
-
getT
public double getT()
- Specified by:
getT
in interfaceIMainRenderer
-
getCameraManager
public CameraManager getCameraManager()
- Specified by:
getCameraManager
in interfaceIMainRenderer
-
getPostProcessor
public IPostProcessor getPostProcessor()
- Specified by:
getPostProcessor
in interfaceIMainRenderer
-
isOn
public boolean isOn(int ordinal)
-
isOn
public boolean isOn(ComponentTypes.ComponentType comp)
-
isOn
public boolean isOn(ComponentTypes cts)
-
notify
public void notify(Events event, java.lang.Object... data)
-
isInitialised
public boolean isInitialised()
-
-