Class Billboard

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

public class Billboard extends ModelBody
  • Field Details

    • TH_ANGLE_NONE

      protected static final double TH_ANGLE_NONE
      See Also:
      Constant Field Values
    • TH_ANGLE_POINT

      protected static final double TH_ANGLE_POINT
    • TH_ANGLE_QUAD

      protected static final double TH_ANGLE_QUAD
    • hidden

      protected boolean hidden
    • fade

      protected double[] fade
    • q

      protected com.badlogic.gdx.math.Quaternion q
  • Constructor Details

    • Billboard

      public Billboard()
  • Method Details

    • THRESHOLD_NONE

      public double THRESHOLD_NONE()
      Description copied from class: CelestialBody
      radius/distance limit for rendering at all. If angle is smaller than this quantity, no rendering happens.
      Specified by:
      THRESHOLD_NONE in class CelestialBody
    • THRESHOLD_POINT

      public double THRESHOLD_POINT()
      Description copied from class: ModelBody
      Angle limit for rendering as point. If angle is any bigger, we render with shader.
      Overrides:
      THRESHOLD_POINT in class ModelBody
    • THRESHOLD_QUAD

      public double THRESHOLD_QUAD()
      Description copied from class: CelestialBody
      radius/distance limit for rendering as shader. If angle is any bigger, we render as a model.
      Specified by:
      THRESHOLD_QUAD in class CelestialBody
    • 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(com.badlogic.gdx.math.Matrix4 localTransform, boolean forceUpdate)
      Sets the local transform of this satellite
    • 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 ModelBody
    • render

      public void render(IntModelBatch modelBatch, float alpha, double t, RenderingContext rc, SceneGraphRenderer.RenderGroup group)
      Model rendering
      Specified by:
      render in interface IModelRenderable
      Overrides:
      render in class ModelBody
    • labelFactor

      protected float labelFactor()
      Specified by:
      labelFactor in class CelestialBody
    • 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
    • getTextOpacity

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

      public float labelSizeConcrete()
      Overrides:
      labelSizeConcrete in class ModelBody
    • getViewAnglePow

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

      protected float getThOverFactorScl()
      Overrides:
      getThOverFactorScl in class ModelBody
    • 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
      Overrides:
      textScale in class ModelBody
      Returns:
      The scale
    • getFuzzyRenderSize

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

      public void setHidden(String hidden)
    • setSizepc

      public void setSizepc(Double sizePc)
      Sets the size of this entity in parsecs
      Parameters:
      sizePc - The size in parsecs
    • setFade

      public void setFade(double[] fadein)