Package gaiasky.data
Class StarClusterLoader
java.lang.Object
gaiasky.data.AbstractSceneLoader
gaiasky.data.StarClusterLoader
- All Implemented Interfaces:
ISceneLoader
Loads the star cluster catalogs from CSV files or STIL data sources. The column order is not important. The
column names, however, must be:
- name:
UCDParser.idcolnames
, separate multiple names with '|' - ra[deg]:
UCDParser.racolnames
- dist[pc]:
UCDParser.distcolnames
- pmra[mas/yr]:
UCDParser.pmracolnames
- pmde[mas/yr]:
UCDParser.pmdeccolnames
- rv[km/s]:
UCDParser.radvelcolnames
- radius[deg]:
UCDParser.radiuscolnames
- nstars:
UCDParser.nstarscolnames
-
Field Summary
Fields inherited from class gaiasky.data.AbstractSceneLoader
datasetDirectory, dataSource, filePaths, index, loggedArchetypes, parentName, scene
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity>
com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity>
loadData()
Performs the loading and returns an array with the entities loaded.void
setDescription
(String description) void
void
Methods inherited from class gaiasky.data.AbstractSceneLoader
initialize, initialize, initialize, setIndex, setParentName
-
Constructor Details
-
StarClusterLoader
public StarClusterLoader()
-
-
Method Details
-
loadData
public com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> loadData()Description copied from interface:ISceneLoader
Performs the loading and returns an array with the entities loaded.- Returns:
- The loaded entities.
-
getClusters
public com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> getClusters() -
setName
-
setDescription
-
setParams
-