Class ParticleSetInitializer

java.lang.Object
com.badlogic.ashley.core.EntitySystem
com.badlogic.ashley.systems.IteratingSystem
gaiasky.scene.system.initialize.AbstractInitSystem
gaiasky.scene.system.initialize.ParticleSetInitializer
All Implemented Interfaces:
EntityInitializer

public class ParticleSetInitializer extends AbstractInitSystem
Initializes old ParticleGroup and StarGroup objects.
  • Constructor Details

    • ParticleSetInitializer

      public ParticleSetInitializer(boolean setUp, com.badlogic.ashley.core.Family family, int priority)
  • Method Details

    • initializeEntity

      public void initializeEntity(com.badlogic.ashley.core.Entity entity)
      Description copied from interface: EntityInitializer
      Contains the initialization of this entity before the scene graph structure has been constructed, or the entity is in the index.
      Parameters:
      entity - The entity.
    • setUpEntity

      public void setUpEntity(com.badlogic.ashley.core.Entity entity)
      Description copied from interface: EntityInitializer
      Contains the set up of this entity, after the entity has been added to the scene graph and it is in the index.
      Parameters:
      entity - The entity.
    • initializeStarSet

      public void initializeStarSet(com.badlogic.ashley.core.Entity entity, StarSet set)
      Initializes a star set. Loads the data from the provider and computes mean and label positions.
      Parameters:
      entity - The entity.
      set - The star set.
    • computeMinMeanMaxDistances

      public void computeMinMeanMaxDistances(ParticleSet set)
    • computeMeanPosition

      public void computeMeanPosition(com.badlogic.ashley.core.Entity entity, ParticleSet set)
    • setLabelPosition

      public void setLabelPosition(com.badlogic.ashley.core.Entity entity)