Class OrbitalElementsGroup

All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, IObserver, IFadeObject, IRenderable, IStarContainer, IVisibilitySwitch, IPosition

public class OrbitalElementsGroup extends GenericCatalog implements IRenderable, IObserver
This class acts as a group of orbital element objects. It compiles the orbit objects which are only-body and those which are not, and updates them accordingly to reduce CPU calls.
  • Constructor Details

    • OrbitalElementsGroup

      public OrbitalElementsGroup()
  • Method Details

    • doneLoading

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

      protected void addToRenderLists(ICamera camera)
      Description copied from class: SceneGraphNode
      Adds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.
      Overrides:
      addToRenderLists in class FadeNode
    • update

      public void update(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera, float opacity)
      Overrides:
      update in class FadeNode
    • markForUpdate

      public void markForUpdate()
    • highlight

      public void highlight(boolean hl, float[] color, boolean allVisible)
      Description copied from class: FadeNode
      Highlight using a plain color
      Overrides:
      highlight in class FadeNode
      Parameters:
      hl - Whether to highlight
      color - The plain color
      allVisible - All visible
    • dispose

      public void dispose()
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class SceneGraphNode
    • notify

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      Parameters:
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.