Class Star

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

@Deprecated public class Star extends Particle
Deprecated.
Move Sun to star group
Represents a single star. Currently only the Sun uses this class.
  • Field Details

    • hip

      public int hip
      Deprecated.
      HIP number, negative if non existent
    • tycho

      public String tycho
      Deprecated.
      TYCHO2 identifier string
  • Constructor Details

    • Star

      public Star()
      Deprecated.
    • Star

      public Star(Vector3b pos, float appmag, float absmag, float colorbv, String[] names, long starid)
      Deprecated.
    • Star

      public Star(Vector3b pos, float appmag, float absmag, float colorbv, String[] names, float ra, float dec, long starid)
      Deprecated.
      Creates a new Star object
      Parameters:
      pos - The position of the star in equatorial cartesian coordinates
      appmag - The apparent magnitude
      absmag - The absolute magnitude
      colorbv - The B-V color index
      names - The proper names of the star, if any
      ra - in degrees
      dec - in degrees
      starid - The star id
    • Star

      public Star(Vector3b pos, float appmag, float absmag, float colorbv, String[] names, float ra, float dec, long starid, int hip, byte source)
      Deprecated.
      Creates a new Star object
      Parameters:
      pos - The position of the star in equatorial cartesian coordinates
      appmag - The apparent magnitude
      absmag - The absolute magnitude
      colorbv - The B-V color index
      names - The proper names of the star, if any
      ra - in degrees
      dec - in degrees
      starid - The star id
      hip - The HIP identifier
      source - Catalog source. 1: Gaia, 2: HIP, 3: TYC, -1: Unknown
    • Star

      public Star(Vector3b pos, com.badlogic.gdx.math.Vector3 pm, com.badlogic.gdx.math.Vector3 pmSph, float appmag, float absmag, float colorbv, String[] names, float ra, float dec, long starid, int hip, String tycho, byte source)
      Deprecated.
      Creates a new Star object
      Parameters:
      pos - The position of the star in equatorial cartesian coordinates
      pm - The proper motion of the star in equatorial cartesian coordinates.
      pmSph - The proper motion with mualpha, mudelta, radvel.
      appmag - The apparent magnitude
      absmag - The absolute magnitude
      colorbv - The B-V color index
      names - The proper names of the star, if any
      ra - in degrees
      dec - in degrees
      starid - The star id
      hip - The HIP identifier
      source - Catalog source. See {#Particle}
    • Star

      public Star(Vector3b pos, float appmag, float absmag, float colorbv, String[] names, float ra, float dec, long starid, int hip, String tycho, byte source)
      Deprecated.
      Creates a new Star object
      Parameters:
      pos - The position of the star in equatorial cartesian coordinates
      appmag - The apparent magnitude
      absmag - The absolute magnitude
      colorbv - The B-V color index
      names - The proper names of the star, if any
      ra - in degrees
      dec - in degrees
      starid - The star id
      hip - The HIP identifier
      tycho - The TYC identifier
      source - Catalog source. See {#Particle}
    • Star

      public Star(Vector3b pos, com.badlogic.gdx.math.Vector3 pm, com.badlogic.gdx.math.Vector3 pmSph, float appmag, float absmag, float colorbv, String[] names, float ra, float dec, long starid)
      Deprecated.
      Creates a new Star object
      Parameters:
      pos - The position of the star in equatorial cartesian coordinates
      pm - The proper motion of the star in equatorial cartesian coordinates
      pmSph - The proper motion with mualpha, mudelta, radvel.
      appmag - The apparent magnitude
      absmag - The absolute magnitude
      colorbv - The B-V color index
      names - The proper names of the star, if any
      ra - in degrees
      dec - in degrees
      starid - The star id
  • Method Details

    • initModel

      public static void initModel()
      Deprecated.
    • initialize

      public void initialize()
      Deprecated.
      Overrides:
      initialize in class Particle
    • 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 Particle
    • render

      public void render(IntModelBatch modelBatch, float alpha, double t, RenderingContext renderContext, SceneGraphRenderer.RenderGroup group)
      Deprecated.
      Description copied from class: Particle
      Model rendering
      Specified by:
      render in interface IModelRenderable
      Overrides:
      render in class Particle
    • addHit

      public void addHit(int screenX, int screenY, int w, int h, int minPixDist, NaturalCamera camera, com.badlogic.gdx.utils.Array<IFocus> hits)
      Deprecated.
      Description copied from interface: IFocus
      Adds this focus to the hits list if it is hit by the [screenX, screenY] position
      Specified by:
      addHit in interface IFocus
      Overrides:
      addHit in class CelestialBody
      Parameters:
      screenX - The x position of the hit
      screenY - The y position of the hit
      w - The viewport width
      h - The viewport height
      minPixDist - The minimum pixel distance to consider as hit
      camera - The camera
      hits - The list where to add the element
    • doneLoading

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

      public String toString()
      Deprecated.
      Overrides:
      toString in class SceneGraphNode
    • getPmX

      public double getPmX()
      Deprecated.
      Overrides:
      getPmX in class CelestialBody
    • getPmY

      public double getPmY()
      Deprecated.
      Overrides:
      getPmY in class CelestialBody
    • getPmZ

      public double getPmZ()
      Deprecated.
      Overrides:
      getPmZ in class CelestialBody
    • computeViewAngle

      protected double computeViewAngle(float fovFactor)
      Deprecated.
      Overrides:
      computeViewAngle in class CelestialBody
    • getHip

      public int getHip()
      Deprecated.
      Description copied from interface: IStarFocus
      Returns the HIP number of this star, or negative if it has no HIP number
      Specified by:
      getHip in interface IStarFocus
      Overrides:
      getHip in class Particle
      Returns:
      The HIP number
    • addToIndex

      protected void addToIndex(com.badlogic.gdx.utils.ObjectMap<String,​SceneGraphNode> map)
      Deprecated.
      Description copied from class: SceneGraphNode
      Special actions to be taken for this object when adding to the index.
      Overrides:
      addToIndex in class SceneGraphNode
      Parameters:
      map - The index
    • removeFromIndex

      protected void removeFromIndex(com.badlogic.gdx.utils.ObjectMap<String,​SceneGraphNode> map)
      Deprecated.
      Description copied from class: SceneGraphNode
      Special actions to be taken for this object when removing from the index. Must implement if addToIndex is implemented
      Overrides:
      removeFromIndex in class SceneGraphNode
      Parameters:
      map - The index