Package gaiasky.scene.entity
Class ParticleUtils
java.lang.Object
gaiasky.scene.entity.ParticleUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
filter
(int index, ParticleSet particleSet, DatasetDescription datasetDescription) Evaluates the filter of this dataset (if any) for the given particle indexfloat
getColor
(int index, ParticleSet set, Highlight highlight) float[]
float
getDatasetSizeFactor
(com.badlogic.ashley.core.Entity entity, Highlight hl, DatasetDescription dd) float
getPointScaling
(Highlight hl, GraphNode graph) double
getVariableSizeScaling
(StarSet set, int idx) void
Initializes the star model.float
saturateColor
(int index, ParticleSet set, Highlight highlight) Saturates the color of the particle with the given index in the given set.void
updateFocusDataPos
(ParticleSet particleSet)
-
Field Details
-
c
protected final com.badlogic.gdx.graphics.Color cAuxiliary color. -
hsv
protected final float[] hsvAuxiliary HSV array.
-
-
Constructor Details
-
ParticleUtils
public ParticleUtils()
-
-
Method Details
-
getDatasetSizeFactor
public float getDatasetSizeFactor(com.badlogic.ashley.core.Entity entity, Highlight hl, DatasetDescription dd) -
getPointScaling
-
getVariableSizeScaling
-
saturateColor
Saturates the color of the particle with the given index in the given set.- Parameters:
index
- Particle index.set
- Particle set.highlight
- Highlight component.- Returns:
- The color, saturated if necessary.
-
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.
-