Package gaiasky.scene.component
Class Trajectory
java.lang.Object
gaiasky.scene.component.Trajectory
- All Implemented Interfaces:
com.badlogic.ashley.core.Component
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptiondoublecom.badlogic.ashley.core.Entitydoublefloatfloatbooleanstatic final Logger.LogbooleanWhether the orbit must be refreshed when out of boundsbooleanintNumber of samples for the orbit data provider.booleanlonglongbooleanWhether to show the orbit as a trail or not.float[]Point colorfloatPoint sizeClass<? extends IOrbitDataProvider>booleanRefreshing statefloatThe bottom mapping position for the trail. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetBody(com.badlogic.ashley.core.Entity entity, double radius) voidSets the orientation model as a string.voidsetMultiplier(Double multiplier) voidsetNewmethod(Boolean newMethod) voidsetNumSamples(Long numSamples) voidsetOnlybody(Boolean onlyBody) voidvoidsetOrbittrail(Boolean trail) voidsetPointcolor(double[] color) voidsetPointsize(Double pointsize) voidsetPointsize(Long pointsize) voidsetProvider(String provider) voidvoidsetTrailMap(Double trailMap)
-
Field Details
-
logger
-
body
public com.badlogic.ashley.core.Entity body -
curr
-
alpha
public double alpha -
localTransformD
-
provider
-
multiplier
-
providerClass
-
oc
-
onlyBody
public boolean onlyBody -
newMethod
public boolean newMethod -
coord
public double coord -
model
-
isInOrbitalElementsGroup
public boolean isInOrbitalElementsGroup -
refreshing
public boolean refreshingRefreshing state -
numSamples
public int numSamplesNumber of samples for the orbit data provider. -
orbitStartMs
public long orbitStartMs -
orbitEndMs
public long orbitEndMs -
mustRefresh
public boolean mustRefreshWhether the orbit must be refreshed when out of bounds -
orbitTrail
public boolean orbitTrailWhether to show the orbit as a trail or not. A trail fades the orbit line as it gets further away from the object. -
trailMap
public float trailMapThe bottom mapping position for the trail. The orbit trail assigns an opacity value to each point of the orbit, where 1 is the location of the object and 0 is the other end. This mapping parameter defines the location in the orbit (in [0,1]) where we map the opacity value of 0. Set to 0 to have a full trail. Set to 0.5 to have a trail that spans half the orbit. Set to 1 to have no orbit at all. -
params
-
pointColor
public float[] pointColorPoint color -
pointSize
public float pointSizePoint size -
distUp
public float distUp -
distDown
public float distDown
-
-
Constructor Details
-
Trajectory
public Trajectory()
-
-
Method Details
-
setModel
Sets the orientation model as a string.- Parameters:
model- The orientation model.
-
setPointsize
-
setPointsize
-
setPointcolor
public void setPointcolor(double[] color) -
setProvider
-
setOrbit
-
setMultiplier
-
setOnlybody
-
setNewmethod
-
setTrail
-
setTrailMap
-
setOrbittrail
-
setNumSamples
-
setBody
public void setBody(com.badlogic.ashley.core.Entity entity, double radius)
-