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
All Methods Static Methods Concrete Methods 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()
static boolean
isHiDPI()
static void
updateScaleFactor(float sf)
-
-
-
Field Detail
-
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
-
UI_SCALE_FACTOR
public static float UI_SCALE_FACTOR
-
configurations
public static java.util.List<GlobalConf.IConf> configurations
-
frame
public static GlobalConf.FrameConf frame
-
screen
public static GlobalConf.ScreenConf screen
-
program
public static GlobalConf.ProgramConf program
-
data
public static GlobalConf.DataConf data
-
scene
public static GlobalConf.SceneConf scene
-
runtime
public static GlobalConf.RuntimeConf runtime
-
screenshot
public static GlobalConf.ScreenshotConf screenshot
-
performance
public static GlobalConf.PerformanceConf performance
-
postprocess
public static GlobalConf.PostprocessConf postprocess
-
controls
public static GlobalConf.ControlsConf controls
-
spacecraft
public static GlobalConf.SpacecraftConf spacecraft
-
version
public static GlobalConf.VersionConf version
-
-
Method Detail
-
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)
-
updateScaleFactor
public static void updateScaleFactor(float sf)
-
isHiDPI
public static boolean isHiDPI()
-
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.Exception
Initialises the properties- Throws:
java.lang.Exception
-
getShortApplicationName
public static java.lang.String getShortApplicationName()
-
getSuperShortApplicationName
public static java.lang.String getSuperShortApplicationName()
-
-