Package gaiasky.util
Class GlobalConf.DataConf
java.lang.Object
gaiasky.util.GlobalConf.DataConf
- All Implemented Interfaces:
GlobalConf.IConf
- Enclosing class:
- GlobalConf
Holds all configuration values related to data.
-
Field Summary
Modifier and TypeFieldDescriptioncom.badlogic.gdx.utils.Array<String>
The json file with the catalogue(s) to loadLocation of the data folder.boolean
High accuracy positions for planets and moon - use all terms of VSOP87 and moon algorithmsThe json data file in case of local data sourceboolean
Whether to use the real attitude of Gaia or the NSL approximationLocation of the skybox within the data folder (data/tex/skybox/[...]/) -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addSelectedCatalog(Path catalog)
Adds the given catalog descriptor file to the list of JSON selected files.com.badlogic.gdx.files.FileHandle
dataFileHandle(String path)
void
initialize(com.badlogic.gdx.utils.Array<String> cATALOG_JSON_FILES, String oBJECTS_JSON_FILE, boolean dATA_SOURCE_LOCAL)
void
initialize(com.badlogic.gdx.utils.Array<String> cATALOG_JSON_FILES, String dATA_JSON_FILE, boolean dATA_SOURCE_LOCAL, boolean rEAL_GAIA_ATTITUDE)
void
initialize(String dATA_LOCATION, com.badlogic.gdx.utils.Array<String> cATALOG_JSON_FILES, String oBJECTS_JSON_FILE, boolean rEAL_GAIA_ATTITUDE, boolean hIGH_ACCURACY_POSITIONS, String sKYBOX_LOCATION)
-
Field Details
-
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
The json data file in case of local data source -
CATALOG_JSON_FILES
The json file with the catalogue(s) to load -
HIGH_ACCURACY_POSITIONS
public boolean HIGH_ACCURACY_POSITIONSHigh accuracy positions for planets and moon - use all terms of VSOP87 and moon algorithms -
REAL_GAIA_ATTITUDE
public boolean REAL_GAIA_ATTITUDEWhether to use the real attitude of Gaia or the NSL approximation -
SKYBOX_LOCATION
Location of the skybox within the data folder (data/tex/skybox/[...]/)
-
-
Constructor Details
-
DataConf
public DataConf()
-
-
Method Details
-
initialize
-
initialize
-
initialize
-
dataPath
-
dataFile
-
dataFileHandle
-
addSelectedCatalog
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.
-