Class SetUtils
java.lang.Object
gaiasky.scene.entity.SetUtils
Generic operations that act on star and particle sets and are not tied to a singular instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.badlogic.ashley.core.EntitycreateParticleSet(Scene scene, String name, String file, List<IParticleRecord> data, List<uk.ac.starlink.table.ColumnInfo> columnInfoList, DatasetOptions datasetOptions, boolean addToCatalogManager) Creates a particle set entity given some parameters.static com.badlogic.ashley.core.EntitycreateStarSet(Scene scene, String name, String file, List<IParticleRecord> data, List<uk.ac.starlink.table.ColumnInfo> columnInfoList, DatasetOptions datasetOptions, boolean addToCatalogManager) Creates a star set entity given some parameters.static com.badlogic.ashley.core.EntitycreateStarSet(Scene scene, String name, List<IParticleRecord> data, BaseInitializer baseInitializer, ParticleSetInitializer starSetInitializer, boolean fullInit) Creates a star set entity with some sane parameters, given the name and the data.static void
-
Constructor Details
-
SetUtils
public SetUtils()
-
-
Method Details
-
createStarSet
public static com.badlogic.ashley.core.Entity createStarSet(Scene scene, String name, List<IParticleRecord> data, BaseInitializer baseInitializer, ParticleSetInitializer starSetInitializer, boolean fullInit) Creates a star set entity with some sane parameters, given the name and the data.- Parameters:
scene- The scene object.name- The name of the star set. Any occurrence of%%SGID%%in the name is replaced with the id of the star set.data- The data of the star set.baseInitializer- The base initializer.starSetInitializer- The initializer to use for the star set initialization.fullInit- Whether to run thesetUpEntity()to fully initialize the star set.- Returns:
- The new star set entity.
-
createStarSet
public static com.badlogic.ashley.core.Entity createStarSet(Scene scene, String name, String file, List<IParticleRecord> data, List<uk.ac.starlink.table.ColumnInfo> columnInfoList, DatasetOptions datasetOptions, boolean addToCatalogManager) Creates a star set entity given some parameters.- Parameters:
scene- The scene object.name- The name of the star set. Any occurrence of%%SGID%%in the name is replaced with the id of the star set.file- The data file.data- The data of the star set.columnInfoList- The base initializer.datasetOptions- Dataset options to use.addToCatalogManager- Whether to add the set to the catalog manager.- Returns:
- The new star set entity.
-
createParticleSet
public static com.badlogic.ashley.core.Entity createParticleSet(Scene scene, String name, String file, List<IParticleRecord> data, List<uk.ac.starlink.table.ColumnInfo> columnInfoList, DatasetOptions datasetOptions, boolean addToCatalogManager) Creates a particle set entity given some parameters.- Parameters:
scene- The scene object.name- The name of the particle set. Any occurrence of%%PGID%%in the name is replaced with the id of the particle set.file- The data file.data- The data of the particle set.columnInfoList- The base initializer.datasetOptions- Dataset options to use.addToCatalogManager- Whether to add the set to the catalog manager.- Returns:
- The new particle set entity.
-
dispose
-