Class Satellite

All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, I3DTextRenderable, IModelRenderable, IQuadRenderable, IRenderable, IFocus, IStarContainer, IVisibilitySwitch, IPosition
Direct Known Subclasses:
GenericSpacecraft, HeliotropicSatellite

public abstract class Satellite extends ModelBody
  • Field Details

    • parentOrientation

      protected boolean parentOrientation
    • hidden

      protected boolean hidden
    • orientationf

      protected com.badlogic.gdx.math.Matrix4 orientationf
    • parentrc

      protected RotationComponent parentrc
  • Constructor Details

    • Satellite

      public Satellite()
  • Method Details

    • initialize

      public void initialize()
      Overrides:
      initialize in class ModelBody
    • doneLoading

      public void doneLoading(com.badlogic.gdx.assets.AssetManager manager)
      Overrides:
      doneLoading in class ModelBody
    • updateLocalValues

      public void updateLocalValues(ITimeFrameProvider time, ICamera camera)
      Description copied from class: SceneGraphNode
      This function updates all the local values before the localTransform is updated. Position, rotations and scale must be updated in here.
      Overrides:
      updateLocalValues in class SceneGraphNode
    • forceUpdatePosition

      protected void forceUpdatePosition(ITimeFrameProvider time, boolean force)
      Default implementation, only sets the result of the coordinates call to pos
      Parameters:
      time - Time to get the coordinates
      force - Whether to force the update
    • updateLocalTransform

      protected void updateLocalTransform()
      Description copied from class: ModelBody
      Update the local transform with the transform and the rotations/scales necessary. Override if your model contains more than just the position and size.
      Overrides:
      updateLocalTransform in class ModelBody
    • setToLocalTransform

      public void setToLocalTransform(float sizeFactor, com.badlogic.gdx.math.Matrix4 localTransform, boolean forceUpdate)
      Sets the local transform of this satellite
      Overrides:
      setToLocalTransform in class ModelBody
    • renderText

      public boolean renderText()
      Description copied from interface: I3DTextRenderable
      Tells whether the text must be rendered or not for this entity
      Specified by:
      renderText in interface I3DTextRenderable
      Overrides:
      renderText in class CelestialBody
      Returns:
      True if text must be rendered
    • getViewAnglePow

      protected float getViewAnglePow()
      Overrides:
      getViewAnglePow in class ModelBody
    • getThOverFactorScl

      protected float getThOverFactorScl()
    • getFuzzyRenderSize

      public float getFuzzyRenderSize(ICamera camera)
      Overrides:
      getFuzzyRenderSize in class ModelBody
    • setParentorientation

      public void setParentorientation(String parentorientation)
    • setHidden

      public void setHidden(String hidden)
    • getRotationComponent

      public RotationComponent getRotationComponent()
      Description copied from interface: IFocus
      Returns the rotation component of this focus.
      Specified by:
      getRotationComponent in interface IFocus
      Overrides:
      getRotationComponent in class CelestialBody
      Returns:
      The rotation component. Can be null.
    • setSize

      public void setSize(Long size)
      Description copied from class: SceneGraphNode
      Sets the absolute size (diameter) of this entity
      Overrides:
      setSize in class SceneGraphNode
      Parameters:
      size - The diameter in internal units
    • setSize

      public void setSize(Double size)
      Description copied from class: CelestialBody
      Sets the size of this entity in kilometers
      Overrides:
      setSize in class CelestialBody
      Parameters:
      size - The size in km