Class Settings.DataSettings
java.lang.Object
gaiasky.util.SettingsObject
gaiasky.util.Settings.DataSettings
-
Field Summary
FieldsModifier and TypeFieldDescriptionA list of all the enabled data files.boolean
Whether to use high accuracy mode in the calculations.Location of the data directory.boolean
Whether to use the real attitude of Gaia, or the analytical one (NSL).Location of the default reflection skybox (cubemap).Fields inherited from class gaiasky.util.SettingsObject
parent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addSelectedCatalog
(Path catalog) Adds the given catalog descriptor file to the list of JSON selected files.void
apply()
clone()
com.badlogic.gdx.files.FileHandle
dataFileHandle
(String path) com.badlogic.gdx.files.FileHandle
dataFileHandle
(String path, String dsLocation) void
dispose()
protected void
void
setSkyboxLocation
(String location) This method keeps compatibility with older versions of the configuration file where the settingreflectionSkyboxLocation
was calledskyboxLocation
.protected void
Methods inherited from class gaiasky.util.SettingsObject
isEnabled, setParent
-
Field Details
-
location
Location of the data directory. -
dataFiles
-
reflectionSkyboxLocation
Location of the default reflection skybox (cubemap). -
highAccuracy
public boolean highAccuracyWhether to use high accuracy mode in the calculations. Results in more precise locations for some objects. -
realGaiaAttitude
public boolean realGaiaAttitudeWhether to use the real attitude of Gaia, or the analytical one (NSL).
-
-
Constructor Details
-
DataSettings
public DataSettings()
-
-
Method Details
-
setSkyboxLocation
This method keeps compatibility with older versions of the configuration file where the settingreflectionSkyboxLocation
was calledskyboxLocation
.- Parameters:
location
- The reflection skybox location.
-
dataPath
-
dataPath
-
dataFile
-
dataFile
-
dataFileHandle
-
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.
-
clone
- Overrides:
clone
in classSettingsObject
-
setParentRecursive
- Specified by:
setParentRecursive
in classSettingsObject
-
setupListeners
protected void setupListeners()- Specified by:
setupListeners
in classSettingsObject
-
dispose
public void dispose() -
apply
public void apply()
-