Class RecursiveGrid

java.lang.Object
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, IObserver, I3DTextRenderable, ILineRenderable, IModelRenderable, IRenderable, IStarContainer, IVisibilitySwitch, IPosition

public class RecursiveGrid
extends FadeNode
implements IModelRenderable, I3DTextRenderable, ILineRenderable, IObserver
A recursive grid which adapts to equatorial, ecliptic and galactic systems.
  • Field Details

    • transformName

      protected java.lang.String transformName
    • mc

      public ModelComponent mc
  • Constructor Details

    • RecursiveGrid

      public RecursiveGrid()
  • Method Details

    • initialize

      public void initialize()
      Overrides:
      initialize in class SceneGraphNode
    • getCoordinateSystemd

      public Matrix4d getCoordinateSystemd()
    • doneLoading

      public void doneLoading​(com.badlogic.gdx.assets.AssetManager manager)
      Overrides:
      doneLoading in class FadeNode
    • 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
    • render

      public void render​(IntModelBatch modelBatch, float alpha, double t, RenderingContext rc)
      Model rendering.
      Specified by:
      render in interface IModelRenderable
    • render

      public void render​(ExtSpriteBatch batch, ExtShaderProgram shader, FontRenderSystem sys, RenderingContext rc, ICamera camera)
      Label rendering.
      Specified by:
      render in interface I3DTextRenderable
      Parameters:
      batch - The sprite batch
      shader - The shader
      sys - The font render system
      rc - The render context
      camera - The camera
    • render

      public void render​(LineRenderSystem renderer, ICamera camera, float alpha)
      Line rendering.
      Specified by:
      render in interface ILineRenderable
      Parameters:
      renderer - The line renderer.
      camera - The camera.
      alpha - The alpha opacity.
    • setTransformName

      public void setTransformName​(java.lang.String transformName)
    • hasAtmosphere

      public boolean hasAtmosphere()
      Specified by:
      hasAtmosphere in interface IModelRenderable
    • setModel

      public void setModel​(ModelComponent mc)
    • setLabel

      public void setLabel​(java.lang.Boolean label)
    • 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
      Returns:
      True if text must be rendered
    • textColour

      public float[] textColour()
      Description copied from interface: I3DTextRenderable
      Returns an array with the text colour in the fashion [r, g, b, a]
      Specified by:
      textColour in interface I3DTextRenderable
      Returns:
      Array with the colour
    • textSize

      public float textSize()
      Description copied from interface: I3DTextRenderable
      Returns the text size
      Specified by:
      textSize in interface I3DTextRenderable
      Returns:
      The text size
    • textScale

      public float textScale()
      Description copied from interface: I3DTextRenderable
      Returns the text scale for the scale varying in the shader
      Specified by:
      textScale in interface I3DTextRenderable
      Returns:
      The scale
    • textPosition

      public void textPosition​(ICamera cam, Vector3d out)
      Description copied from interface: I3DTextRenderable
      Sets the position of this text in the out vector
      Specified by:
      textPosition in interface I3DTextRenderable
      out - The out parameter with the result
    • text

      public java.lang.String text()
      Description copied from interface: I3DTextRenderable
      Returns the text
      Specified by:
      text in interface I3DTextRenderable
      Returns:
      The text
    • textDepthBuffer

      public void textDepthBuffer()
      Description copied from interface: I3DTextRenderable
      Executes the blending for the text
      Specified by:
      textDepthBuffer in interface I3DTextRenderable
    • isLabel

      public boolean isLabel()
      Description copied from interface: I3DTextRenderable
      Is it a label or another kind of text?
      Specified by:
      isLabel in interface I3DTextRenderable
      Returns:
      Whether this is a label
    • getTextOpacity

      public float getTextOpacity()
      Description copied from interface: I3DTextRenderable
      Gets the text opacity
      Specified by:
      getTextOpacity in interface I3DTextRenderable
      Returns:
      Text opacity
    • setRendergroup

      public void setRendergroup​(java.lang.String rg)
    • setSize

      public void setSize​(java.lang.Double size)
      Description copied from class: SceneGraphNode
      Sets the absolute size (diameter) of this entity
      Overrides:
      setSize in class FadeNode
      Parameters:
      size - The diameter in internal units
    • setSize

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

      public void notify​(Events event, java.lang.Object... data)
      Specified by:
      notify in interface IObserver
    • getLineWidth

      public float getLineWidth()
      Specified by:
      getLineWidth in interface ILineRenderable
    • getGlPrimitive

      public int getGlPrimitive()
      Specified by:
      getGlPrimitive in interface ILineRenderable