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 load
    java.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 algorithms
    java.lang.String OBJECTS_JSON_FILES
    The json data file in case of local data source
    boolean REAL_GAIA_ATTITUDE
    Whether to use the real attitude of Gaia or the NSL approximation
    java.lang.String SKYBOX_LOCATION
    Location of the skybox within the data folder (data/tex/skybox/[...]/)
  • Constructor Summary

    Constructors
    Constructor Description
    DataConf()  
  • Method Summary

    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)  
    void initialize​(com.badlogic.gdx.utils.Array<java.lang.String> cATALOG_JSON_FILES, java.lang.String dATA_JSON_FILE, boolean dATA_SOURCE_LOCAL, 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, boolean rEAL_GAIA_ATTITUDE, boolean hIGH_ACCURACY_POSITIONS, java.lang.String sKYBOX_LOCATION)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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
    • 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/[...]/)
  • Constructor Details

    • DataConf

      public DataConf()
  • Method Details

    • 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, 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)
    • 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, 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.