Package gaiasky.util
Class GlobalConf
java.lang.Object
gaiasky.util.GlobalConf
public class GlobalConf
extends java.lang.Object
Holds the global configuration options
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GlobalConf.ControlsConf
static class
GlobalConf.DataConf
Holds all configuration values related to data.static class
GlobalConf.FrameConf
Holds the configuration for the output frame subsystem and the camera recording.static interface
GlobalConf.IConf
static class
GlobalConf.ImageFormat
static class
GlobalConf.PerformanceConf
static class
GlobalConf.PostprocessConf
static class
GlobalConf.ProgramConf
static class
GlobalConf.RuntimeConf
Runtime configuration values, which are never persisted.static class
GlobalConf.SceneConf
Contains preferences and attributes which define the scenestatic class
GlobalConf.ScreenConf
static class
GlobalConf.ScreenshotConf
static class
GlobalConf.ScreenshotMode
static class
GlobalConf.SpacecraftConf
static class
GlobalConf.VersionConf
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GlobalConf()
-
Method Summary
Modifier and Type Method Description static java.lang.String
assetsFileStr(java.lang.String relativeAssetsLoc)
static java.nio.file.Path
assetsPath(java.lang.String relativeAssetsLoc)
static java.lang.String
getApplicationTitle(boolean vr)
static java.lang.String
getShortApplicationName()
static float
getStarPointSize()
Computes the runtime star point size taking into account cubemap renderingstatic java.lang.String
getSuperShortApplicationName()
static void
initialize(GlobalConf.VersionConf vc, GlobalConf.ProgramConf pc, GlobalConf.SceneConf sc, GlobalConf.DataConf dc, GlobalConf.RuntimeConf rc, GlobalConf.PostprocessConf ppc, GlobalConf.PerformanceConf pfc, GlobalConf.FrameConf fc, GlobalConf.ScreenConf scrc, GlobalConf.ScreenshotConf shc, GlobalConf.ControlsConf cc, GlobalConf.SpacecraftConf scc)
Initialises the propertiesstatic boolean
initialized()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ASSETS_LOC
public static final java.lang.String ASSETS_LOC -
APPLICATION_NAME
public static java.lang.String APPLICATION_NAME -
APPLICATION_NAME_TITLE
public static java.lang.String APPLICATION_NAME_TITLE -
APPLICATION_SHORT_NAME
public static final java.lang.String APPLICATION_SHORT_NAME- See Also:
- Constant Field Values
-
WEBPAGE
public static final java.lang.String WEBPAGE- See Also:
- Constant Field Values
-
WEBPAGE_DOWNLOADS
public static final java.lang.String WEBPAGE_DOWNLOADS- See Also:
- Constant Field Values
-
DOCUMENTATION
public static final java.lang.String DOCUMENTATION- See Also:
- Constant Field Values
-
REPOSITORY
public static final java.lang.String REPOSITORY- See Also:
- Constant Field Values
-
ICON_URL
public static final java.lang.String ICON_URL -
REPO_ISSUES
public static final java.lang.String REPO_ISSUES- See Also:
- Constant Field Values
-
AUTHOR_NAME
public static final java.lang.String AUTHOR_NAME- See Also:
- Constant Field Values
-
AUTHOR_NAME_PLAIN
public static final java.lang.String AUTHOR_NAME_PLAIN- See Also:
- Constant Field Values
-
AUTHOR_EMAIL
public static final java.lang.String AUTHOR_EMAIL- See Also:
- Constant Field Values
-
AUTHOR_AFFILIATION
public static final java.lang.String AUTHOR_AFFILIATION- See Also:
- Constant Field Values
-
AUTHOR_AFFILIATION_PLAIN
public static final java.lang.String AUTHOR_AFFILIATION_PLAIN- See Also:
- Constant Field Values
-
configurations
-
frame
-
screen
-
program
-
data
-
scene
-
runtime
-
screenshot
-
performance
-
postprocess
-
controls
-
spacecraft
-
version
-
-
Constructor Details
-
GlobalConf
public GlobalConf()
-
-
Method Details
-
assetsPath
public static java.nio.file.Path assetsPath(java.lang.String relativeAssetsLoc) -
assetsFileStr
public static java.lang.String assetsFileStr(java.lang.String relativeAssetsLoc) -
getApplicationTitle
public static java.lang.String getApplicationTitle(boolean vr) -
getStarPointSize
public static float getStarPointSize()Computes the runtime star point size taking into account cubemap rendering- Returns:
- The point size in pixels
-
initialized
public static boolean initialized() -
initialize
public static void initialize(GlobalConf.VersionConf vc, GlobalConf.ProgramConf pc, GlobalConf.SceneConf sc, GlobalConf.DataConf dc, GlobalConf.RuntimeConf rc, GlobalConf.PostprocessConf ppc, GlobalConf.PerformanceConf pfc, GlobalConf.FrameConf fc, GlobalConf.ScreenConf scrc, GlobalConf.ScreenshotConf shc, GlobalConf.ControlsConf cc, GlobalConf.SpacecraftConf scc) throws java.lang.ExceptionInitialises the properties- Throws:
java.lang.Exception
-
getShortApplicationName
public static java.lang.String getShortApplicationName() -
getSuperShortApplicationName
public static java.lang.String getSuperShortApplicationName()
-