Package gaiasky
Class GaiaSky
- java.lang.Object
-
- gaiasky.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 CameraManagercamIGuicrashGuiThe user interfacesIGuidebugGuiThe user interfacesbooleanexternalViewExternal view with final rendered scene and no UIlongframesGaiaSkyViewgaiaskyUIExternal UI windowstatic com.badlogic.gdx.backends.lwjgl3.Lwjgl3GraphicsgraphicsGraphicsIGuiinitialGuiThe user interfacesstatic GaiaSkyinstanceSingleton instanceIGuiloadingGuiThe user interfacesIGuiloadingGuiVRThe user interfacesIGuimainGuiThe user interfacescom.badlogic.gdx.assets.AssetManagermanagerbooleansaveStateSave state on exitISceneGraphsgIGuispacecraftGuiThe user interfacesIGuistereoGuiThe user interfacesITimeFrameProvidertimeTimeVRContextvrContextTheVRContextsetup increateVR(), may be null if no HMD is present or SteamVR is not installedcom.badlogic.gdx.graphics.glutils.FrameBuffervrLoadingLeftFbLoading fborg.lwjgl.openvr.TexturevrLoadingLeftTexLoading texturecom.badlogic.gdx.graphics.glutils.FrameBuffervrLoadingRightFbLoading fborg.lwjgl.openvr.TexturevrLoadingRightTexLoading texturestatic com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowwindowWindowbooleanwindowCreated
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate()voiddispose()com.badlogic.gdx.graphics.glutils.FrameBuffergetBackRenderBuffer()CameraManagergetCameraManager()com.badlogic.gdx.utils.Array<IFocus>getFocusableEntities()com.badlogic.gdx.graphics.glutils.FrameBuffergetFrameBuffer(int w, int h)ICameragetICamera()IPostProcessorgetPostProcessor()doublegetT()java.util.HashMap<VRContext.VRDevice,StubModel>getVRDeviceToModel()booleanisInitialised()booleanisOn(int ordinal)booleanisOn(ComponentTypes cts)booleanisOn(ComponentTypes.ComponentType comp)voidnotify(Events event, java.lang.Object... data)voidpause()static voidpostRunnable(java.lang.Runnable r)voidpreRenderScene()voidreinitialiseGUI1()Reinitialises all the GUI (step 1)voidreinitialiseGUI2()Second step in GUI initialisation.voidrender()voidrenderSgr(ICamera camera, double t, int width, int height, int tw, int th, com.badlogic.gdx.graphics.glutils.FrameBuffer frameBuffer, IPostProcessor.PostProcessBean ppb)voidresize(int width, int height)voidresizeImmediate(int width, int height, boolean resizePostProcessors, boolean resizeRenderSys, boolean resizeGuis)voidresume()voidupdate(double deltat)Update method.
-
-
-
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
-
vrContext
public VRContext vrContext
TheVRContextsetup increateVR(), 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
-
crashGui
public IGui crashGui
The user interfaces
-
time
public ITimeFrameProvider time
Time
-
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 windowcatchooser- Force-show the catalog chooser windowvr- Launch in VR modeexternalView- Open a new window with a view of the rendered scene
-
-
Method Detail
-
create
public void create()
- Specified by:
createin 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:
pausein interfacecom.badlogic.gdx.ApplicationListener
-
resume
public void resume()
- Specified by:
resumein interfacecom.badlogic.gdx.ApplicationListener
-
dispose
public void dispose()
- Specified by:
disposein interfacecom.badlogic.gdx.ApplicationListener
-
getBackRenderBuffer
public com.badlogic.gdx.graphics.glutils.FrameBuffer getBackRenderBuffer()
-
render
public void render()
- Specified by:
renderin interfacecom.badlogic.gdx.ApplicationListener
-
update
public void update(double deltat)
Update method.- Parameters:
deltat- Delta time in seconds.
-
preRenderScene
public void preRenderScene()
- Specified by:
preRenderScenein interfaceIMainRenderer
-
renderSgr
public void renderSgr(ICamera camera, double t, int width, int height, int tw, int th, com.badlogic.gdx.graphics.glutils.FrameBuffer frameBuffer, IPostProcessor.PostProcessBean ppb)
- Specified by:
renderSgrin interfaceIMainRenderer
-
resize
public void resize(int width, int height)- Specified by:
resizein 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:
getFrameBufferin interfaceIMainRenderer
-
getVRDeviceToModel
public java.util.HashMap<VRContext.VRDevice,StubModel> getVRDeviceToModel()
-
getICamera
public ICamera getICamera()
- Specified by:
getICamerain interfaceIMainRenderer
-
getT
public double getT()
- Specified by:
getTin interfaceIMainRenderer
-
getCameraManager
public CameraManager getCameraManager()
- Specified by:
getCameraManagerin interfaceIMainRenderer
-
getPostProcessor
public IPostProcessor getPostProcessor()
- Specified by:
getPostProcessorin 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()
-
postRunnable
public static void postRunnable(java.lang.Runnable r)
-
-