Class Trajectory

java.lang.Object
gaiasky.scene.component.Trajectory
All Implemented Interfaces:
com.badlogic.ashley.core.Component

public class Trajectory extends Object implements com.badlogic.ashley.core.Component
  • Field Details

    • logger

      public static final Logger.Log logger
    • body

      public com.badlogic.ashley.core.Entity body
    • curr

      public Vector3d curr
    • alpha

      public double alpha
    • localTransformD

      public Matrix4d localTransformD
    • provider

      public String provider
    • multiplier

      public Double multiplier
    • providerClass

      public Class<? extends IOrbitDataProvider> providerClass
    • oc

      public OrbitComponent oc
    • onlyBody

      public boolean onlyBody
    • newMethod

      public boolean newMethod
    • coord

      public double coord
    • model

    • isInOrbitalElementsGroup

      public boolean isInOrbitalElementsGroup
    • refreshing

      public boolean refreshing
      Refreshing state
    • numSamples

      public int numSamples
      Number of samples for the orbit data provider.
    • orbitStartMs

      public long orbitStartMs
    • orbitEndMs

      public long orbitEndMs
    • mustRefresh

      public boolean mustRefresh
      Whether the orbit must be refreshed when out of bounds
    • orbitTrail

      public boolean orbitTrail
      Whether 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 trailMap
      The 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[] pointColor
      Point color
    • pointSize

      public float pointSize
      Point size
    • distUp

      public float distUp
    • distDown

      public float distDown
  • Constructor Details

    • Trajectory

      public Trajectory()
  • Method Details

    • setModel

      public void setModel(String model)
      Sets the orientation model as a string.
      Parameters:
      model - The orientation model.
    • setPointsize

      public void setPointsize(Long pointsize)
    • setPointsize

      public void setPointsize(Double pointsize)
    • setPointcolor

      public void setPointcolor(double[] color)
    • setProvider

      public void setProvider(String provider)
    • setOrbit

      public void setOrbit(OrbitComponent oc)
    • setMultiplier

      public void setMultiplier(Double multiplier)
    • setOnlybody

      public void setOnlybody(Boolean onlyBody)
    • setNewmethod

      public void setNewmethod(Boolean newMethod)
    • setTrail

      public void setTrail(Boolean trail)
    • setTrailMap

      public void setTrailMap(Double trailMap)
    • setOrbittrail

      public void setOrbittrail(Boolean trail)
    • setNumSamples

      public void setNumSamples(Long numSamples)
    • setBody

      public void setBody(com.badlogic.ashley.core.Entity entity, double radius)