Class Area

java.lang.Object
gaiasky.scenegraph.SceneGraphNode
gaiasky.scenegraph.Area
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, ILineRenderable, IRenderable, IStarContainer, IPosition

public class Area
extends SceneGraphNode
implements ILineRenderable
Represents the outline of a country
  • Constructor Details

    • Area

      public Area()
  • Method Details

    • initialize

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

      public void render​(LineRenderSystem renderer, ICamera camera, float alpha)
      Specified by:
      render in interface ILineRenderable
    • 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 SceneGraphNode
    • updateLocal

      public void updateLocal​(ITimeFrameProvider time, ICamera camera)
      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
    • 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
    • setPerimeter

      public void setPerimeter​(double[][][] perimeter)
    • setPopulation

      public void setPopulation​(java.lang.Long population)
    • setGdp

      public void setGdp​(java.lang.Double gdp)
    • setCensusYear

      public void setCensusYear​(java.lang.Long census)
    • getLineWidth

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

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

      public boolean mustAddToIndex()
      Description copied from class: SceneGraphNode
      Whether to add this node to the index
      Overrides:
      mustAddToIndex in class SceneGraphNode
      Returns:
      True if the node needs to be added to the index.