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 Object implements GlobalConf.IConf
Holds all configuration values related to data.
  • Field Details

    • DATA_LOCATION

      public 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 String OBJECTS_JSON_FILES
      The json data file in case of local data source
    • CATALOG_JSON_FILES

      public com.badlogic.gdx.utils.Array<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
    • REAL_GAIA_ATTITUDE

      public boolean REAL_GAIA_ATTITUDE
      Whether to use the real attitude of Gaia or the NSL approximation
    • SKYBOX_LOCATION

      public String SKYBOX_LOCATION
      Location of the skybox within the data folder (data/tex/skybox/[...]/)
  • Constructor Details

    • DataConf

      public DataConf()
  • Method Details

    • initialize

      public 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)
    • initialize

      public void initialize(com.badlogic.gdx.utils.Array<String> cATALOG_JSON_FILES, String oBJECTS_JSON_FILE, boolean dATA_SOURCE_LOCAL)
    • initialize

      public void initialize(com.badlogic.gdx.utils.Array<String> cATALOG_JSON_FILES, String dATA_JSON_FILE, boolean dATA_SOURCE_LOCAL, boolean rEAL_GAIA_ATTITUDE)
    • dataPath

      public Path dataPath(String path)
    • dataFile

      public String dataFile(String path)
    • dataFileHandle

      public com.badlogic.gdx.files.FileHandle dataFileHandle(String path)
    • addSelectedCatalog

      public boolean addSelectedCatalog(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.