Class NBGalaxy

All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, I3DTextRenderable, ILineRenderable, IModelRenderable, IQuadRenderable, IRenderable, IFocus, IProperMotion, IStarContainer, IStarFocus, IVisibilitySwitch, IPosition

public class NBGalaxy extends Particle
  • Constructor Details

    • NBGalaxy

      public NBGalaxy()
    • NBGalaxy

      public NBGalaxy(Vector3b pos, float appmag, float absmag, float colorbv, String[] names, float ra, float dec, float bmag, float a26, float ba, int hrv, int i, int tt, String mcl, long starid)
  • 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.
      Overrides:
      THRESHOLD_NONE in class Particle
    • THRESHOLD_POINT

      public double THRESHOLD_POINT()
      Description copied from class: CelestialBody
      radius/distance limit for rendering as point. If angle is any bigger, we render with shader.
      Overrides:
      THRESHOLD_POINT in class Particle
    • 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.
      Overrides:
      THRESHOLD_QUAD in class Particle
    • setDerivedAttributes

      protected void setDerivedAttributes()
      Overrides:
      setDerivedAttributes in class Particle
    • update

      public void update(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera, float opacity)
      Re-implementation of update method of CelestialBody and SceneGraphNode.
      Overrides:
      update in class Particle
    • addToRender

      protected boolean addToRender(IRenderable renderable, SceneGraphRenderer.RenderGroup rg)
      Description copied from class: SceneGraphNode
      Adds the given renderable to the given render group list.
      Overrides:
      addToRender in class Particle
      Parameters:
      renderable - The renderable to add.
      rg - The render group that identifies the renderable list.
      Returns:
      True if added, false otherwise.
    • 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 Particle
    • render

      public void render(ExtShaderProgram shader, float alpha, IntMesh mesh, ICamera camera)
      Description copied from class: CelestialBody
      Billboard quad render, for planets and stars.
      Specified by:
      render in interface IQuadRenderable
      Overrides:
      render in class CelestialBody
      Parameters:
      shader - The shader program
      alpha - Opacity value
      mesh - The mesh
      camera - The camera
    • getFuzzyRenderSize

      public float getFuzzyRenderSize(ICamera camera)
      Overrides:
      getFuzzyRenderSize in class Particle
    • labelFactor

      protected float labelFactor()
      Overrides:
      labelFactor in class Particle
    • labelMax

      protected float labelMax()
      Overrides:
      labelMax in class Particle
    • 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 Particle
      Returns:
      The scale