Package gaiasky.util
Class GlobalConf.DataConf
- java.lang.Object
-
- gaiasky.util.GlobalConf.DataConf
-
- All Implemented Interfaces:
GlobalConf.IConf
- Enclosing class:
- GlobalConf
public static class GlobalConf.DataConf extends java.lang.Object implements GlobalConf.IConf
Holds all configuration values related to data.
-
-
Field Summary
Fields Modifier and Type Field Description com.badlogic.gdx.utils.Array<java.lang.String>
CATALOG_JSON_FILES
The json file with the catalogue(s) to loadjava.lang.String
DATA_LOCATION
Location of the data folder.boolean
HIGH_ACCURACY_POSITIONS
High accuracy positions for planets and moon - use all terms of VSOP87 and moon algorithmsfloat
LIMIT_MAG_LOAD
Limit magnitude used for loading stars.java.lang.String
OBJECTS_JSON_FILES
The json data file in case of local data sourceboolean
REAL_GAIA_ATTITUDE
Whether to use the real attitude of Gaia or the NSL approximationjava.lang.String
SKYBOX_LOCATION
Location of the skybox within the data folder (data/tex/skybox/[...]/)
-
Constructor Summary
Constructors Constructor Description DataConf()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addSelectedCatalog(java.nio.file.Path catalog)
Adds the given catalog descriptor file to the list of JSON selected files.java.lang.String
dataFile(java.lang.String path)
com.badlogic.gdx.files.FileHandle
dataFileHandle(java.lang.String path)
java.nio.file.Path
dataPath(java.lang.String path)
void
initialize(com.badlogic.gdx.utils.Array<java.lang.String> cATALOG_JSON_FILES, java.lang.String oBJECTS_JSON_FILE, boolean dATA_SOURCE_LOCAL, float lIMIT_MAG_LOAD)
void
initialize(com.badlogic.gdx.utils.Array<java.lang.String> cATALOG_JSON_FILES, java.lang.String dATA_JSON_FILE, boolean dATA_SOURCE_LOCAL, float lIMIT_MAG_LOAD, boolean rEAL_GAIA_ATTITUDE)
void
initialize(java.lang.String dATA_LOCATION, com.badlogic.gdx.utils.Array<java.lang.String> cATALOG_JSON_FILES, java.lang.String oBJECTS_JSON_FILE, float lIMIT_MAG_LOAD, boolean rEAL_GAIA_ATTITUDE, boolean hIGH_ACCURACY_POSITIONS, java.lang.String sKYBOX_LOCATION)
-
-
-
Field Detail
-
DATA_LOCATION
public java.lang.String DATA_LOCATION
Location of the data folder. Usually within the '.gaiasky' folder in the user's home directory in Windows and macOS, or in ~/.local/share/gaiasky in Linux
-
OBJECTS_JSON_FILES
public java.lang.String OBJECTS_JSON_FILES
The json data file in case of local data source
-
CATALOG_JSON_FILES
public com.badlogic.gdx.utils.Array<java.lang.String> CATALOG_JSON_FILES
The json file with the catalogue(s) to load
-
HIGH_ACCURACY_POSITIONS
public boolean HIGH_ACCURACY_POSITIONS
High accuracy positions for planets and moon - use all terms of VSOP87 and moon algorithms
-
LIMIT_MAG_LOAD
public float LIMIT_MAG_LOAD
Limit magnitude used for loading stars. All stars above this magnitude will not even be loaded by the sandbox.
-
REAL_GAIA_ATTITUDE
public boolean REAL_GAIA_ATTITUDE
Whether to use the real attitude of Gaia or the NSL approximation
-
SKYBOX_LOCATION
public java.lang.String SKYBOX_LOCATION
Location of the skybox within the data folder (data/tex/skybox/[...]/)
-
-
Method Detail
-
initialize
public void initialize(java.lang.String dATA_LOCATION, com.badlogic.gdx.utils.Array<java.lang.String> cATALOG_JSON_FILES, java.lang.String oBJECTS_JSON_FILE, float lIMIT_MAG_LOAD, boolean rEAL_GAIA_ATTITUDE, boolean hIGH_ACCURACY_POSITIONS, java.lang.String sKYBOX_LOCATION)
-
initialize
public void initialize(com.badlogic.gdx.utils.Array<java.lang.String> cATALOG_JSON_FILES, java.lang.String oBJECTS_JSON_FILE, boolean dATA_SOURCE_LOCAL, float lIMIT_MAG_LOAD)
-
initialize
public void initialize(com.badlogic.gdx.utils.Array<java.lang.String> cATALOG_JSON_FILES, java.lang.String dATA_JSON_FILE, boolean dATA_SOURCE_LOCAL, float lIMIT_MAG_LOAD, boolean rEAL_GAIA_ATTITUDE)
-
dataPath
public java.nio.file.Path dataPath(java.lang.String path)
-
dataFile
public java.lang.String dataFile(java.lang.String path)
-
dataFileHandle
public com.badlogic.gdx.files.FileHandle dataFileHandle(java.lang.String path)
-
addSelectedCatalog
public boolean addSelectedCatalog(java.nio.file.Path catalog)
Adds the given catalog descriptor file to the list of JSON selected files.- Parameters:
catalog
- The catalog descriptor file pointer.- Returns:
- True if the catalog was added, false if it does not exist, or it is not a file, or it is not readable, or it is already in the list.
-
-