Package gaiasky.scene.entity
Class ParticleUtils
java.lang.Object
gaiasky.scene.entity.ParticleUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfilter(int index, ParticleSet particleSet, DatasetDescription datasetDescription) Evaluates the filter of this dataset (if any) for the given particle indexfloatgetColor(int index, ParticleSet set, Highlight highlight) float[]floatgetDatasetSizeFactor(com.badlogic.ashley.core.Entity entity, Highlight hl, DatasetDescription dd) floatgetPointScaling(Highlight hl, GraphNode graph) doublegetVariableSizeScaling(StarSet set, int idx) voidInitializes the star model.voidupdateFocusDataPos(ParticleSet particleSet)
-
Constructor Details
-
ParticleUtils
public ParticleUtils()
-
-
Method Details
-
getDatasetSizeFactor
public float getDatasetSizeFactor(com.badlogic.ashley.core.Entity entity, Highlight hl, DatasetDescription dd) -
getPointScaling
-
getVariableSizeScaling
-
getColor
-
getColor
-
filter
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
-
initModel
Initializes the star model.- Parameters:
manager- The asset manager.model- The model component.
-