Class ParticleUtils

java.lang.Object
gaiasky.scene.entity.ParticleUtils

public class ParticleUtils extends Object
  • Constructor Details

    • ParticleUtils

      public ParticleUtils()
  • Method Details

    • getDatasetSizeFactor

      public float getDatasetSizeFactor(com.badlogic.ashley.core.Entity entity, Highlight hl, DatasetDescription dd)
    • getPointScaling

      public float getPointScaling(Highlight hl, GraphNode graph)
    • getVariableSizeScaling

      public double getVariableSizeScaling(StarSet set, int idx)
    • getColor

      public float getColor(int index, ParticleSet set, Highlight highlight)
    • getColor

      public float[] getColor(Body body, Highlight highlight)
    • filter

      public boolean filter(int index, ParticleSet particleSet, DatasetDescription datasetDescription)
      Evaluates the filter of this dataset (if any) for the given particle index
      Parameters:
      index - The index to filter
      Returns:
      The result of the filter evaluation, true if the particle passed the filtering, false otherwise
    • updateFocusDataPos

      public void updateFocusDataPos(ParticleSet particleSet)
    • initModel

      public void initModel(com.badlogic.gdx.assets.AssetManager manager, Model model)
      Initializes the star model.
      Parameters:
      manager - The asset manager.
      model - The model component.