Class MilkyWay

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

Deprecated.
Use BillboardDataset instead.
The milky way model. This is obsolete, use BillboardDataset instead.
  • Field Details

  • Constructor Details

    • MilkyWay

      public MilkyWay()
      Deprecated.
  • Method Details

    • initialize

      public void initialize()
      Deprecated.
      Overrides:
      initialize in class SceneGraphNode
    • doneLoading

      public void doneLoading(com.badlogic.gdx.assets.AssetManager manager)
      Deprecated.
      Overrides:
      doneLoading in class SceneGraphNode
    • update

      public void update(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera, float opacity)
      Deprecated.
      Overrides:
      update in class SceneGraphNode
    • update

      public void update(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera)
      Deprecated.
      Overrides:
      update in class SceneGraphNode
    • updateLocal

      public void updateLocal(ITimeFrameProvider time, ICamera camera)
      Deprecated.
      Description copied from class: SceneGraphNode
      Updates the transform matrix with the transformations that will apply to the children and the local transform matrix with the transformations that will apply only to this object.
      Overrides:
      updateLocal in class SceneGraphNode
    • addToRenderLists

      protected void addToRenderLists(ICamera camera)
      Deprecated.
      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 SceneGraphNode
    • updateLocalTransform

      protected void updateLocalTransform()
      Deprecated.
      Update the local transform with the transform and the rotations/scales necessary. Override if your model contains more than just the position and size.
    • render

      public void render(ExtSpriteBatch batch, ExtShaderProgram shader, FontRenderSystem sys, RenderingContext rc, ICamera camera)
      Deprecated.
      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
    • setTransformName

      public void setTransformName(String transformName)
      Deprecated.
    • renderText

      public boolean renderText()
      Deprecated.
      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
    • setSize

      public void setSize(Double size)
      Deprecated.
      Sets the absolute size of this entity
      Overrides:
      setSize in class SceneGraphNode
      Parameters:
      size -
    • setLabelposition

      public void setLabelposition(double[] labelposition)
      Deprecated.
    • textColour

      public float[] textColour()
      Deprecated.
      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()
      Deprecated.
      Description copied from interface: I3DTextRenderable
      Returns the text size
      Specified by:
      textSize in interface I3DTextRenderable
      Returns:
      The text size
    • textScale

      public float textScale()
      Deprecated.
      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)
      Deprecated.
      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 String text()
      Deprecated.
      Description copied from interface: I3DTextRenderable
      Returns the text
      Specified by:
      text in interface I3DTextRenderable
      Returns:
      The text
    • textDepthBuffer

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

      public boolean isLabel()
      Deprecated.
      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
    • getProvider

      public String getProvider()
      Deprecated.
    • setProvider

      public void setProvider(String provider)
      Deprecated.
    • setGalaxydata

      public void setGalaxydata(GalaxydataComponent gc)
      Deprecated.
    • setData

      public void setData(Object[] data)
      Deprecated.
    • setSize

      public void setSize(Float size)
      Deprecated.
      Sets the size of this entity in kilometres
      Parameters:
      size - The diameter of the entity
    • updateLocalValues

      public void updateLocalValues(ITimeFrameProvider time, ICamera camera)
      Deprecated.
      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
    • getFadeIn

      public Vector2d getFadeIn()
      Deprecated.
      Description copied from interface: IFadeObject
      Gets the fade in distances.
      Specified by:
      getFadeIn in interface IFadeObject
      Returns:
      The fade in distances in internal units.
    • setFadein

      public void setFadein(double[] fadein)
      Deprecated.
    • setFadeIn

      public void setFadeIn(double nearPc, double farPc)
      Deprecated.
      Description copied from interface: IFadeObject
      Sets the near and far fade in distances.
      Specified by:
      setFadeIn in interface IFadeObject
      Parameters:
      nearPc - Near fade in distance in parsecs.
      farPc - Far fade in distance in parsecs.
    • getFadeOut

      public Vector2d getFadeOut()
      Deprecated.
      Description copied from interface: IFadeObject
      Gets the fade out distances.
      Specified by:
      getFadeOut in interface IFadeObject
      Returns:
      The fade out distances in internal units.
    • setFadeOut

      public void setFadeOut(double nearPc, double farPc)
      Deprecated.
      Description copied from interface: IFadeObject
      Sets the near and far fade out distances.
      Specified by:
      setFadeOut in interface IFadeObject
      Parameters:
      nearPc - Near fade out distance in parsecs.
      farPc - Far fade out distance in parsecs.
    • setFadeout

      public void setFadeout(double[] fadeout)
      Deprecated.
    • getTextOpacity

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

      public void notify(Event event, Object source, Object... data)
      Deprecated.
      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.
    • getStatus

      public LoadStatus getStatus()
      Deprecated.
      Specified by:
      getStatus in interface IStatusObject
    • setStatus

      public void setStatus(LoadStatus status)
      Deprecated.
      Specified by:
      setStatus in interface IStatusObject
    • getDatasets

      public BillboardDataset[] getDatasets()
      Deprecated.
      Specified by:
      getDatasets in interface IBillboardDatasetProvider