Class StarSet

java.lang.Object
gaiasky.scene.component.ParticleSet
gaiasky.scene.component.StarSet
All Implemented Interfaces:
com.badlogic.ashley.core.Component, IDisposable

public class StarSet extends ParticleSet
  • Field Details

    • variabilityEpochJd

      public double variabilityEpochJd
      Epoch for the times in the light curves in julian days.
    • modelDist

      public double modelDist
    • variableStars

      public boolean variableStars
      Does this contain variable stars?
  • Constructor Details

    • StarSet

      public StarSet()
  • Method Details

    • updateFocus

      public void updateFocus(ICamera camera)
      Updates the parameters of the focus, if the focus is active in this group. This version is special for star sets, and uses the double-precision version of fetchPosition() for speed.
      Overrides:
      updateFocus in class ParticleSet
      Parameters:
      camera - The current camera
    • setVariabilityEpoch

      public void setVariabilityEpoch(Double epochJd)
      Sets the light curve epoch to use for the stars in this group.
      Parameters:
      epochJd - The light curve epoch in julian days (days since January 1, 4713 BCE).
    • setVariabilityEpochJd

      public void setVariabilityEpochJd(Double epochJd)
      Sets the light curve epoch to use for the stars in this group.
      Parameters:
      epochJd - The light curve epoch in julian days (days since January 1, 4713 BCE).
    • getHip

      public int getHip()
    • getId

      public long getId()
      Overrides:
      getId in class ParticleSet
    • getCandidateSolidAngleApparent

      public double getCandidateSolidAngleApparent()
      Overrides:
      getCandidateSolidAngleApparent in class ParticleSet
    • getSolidAngleApparent

      public double getSolidAngleApparent(int index)
      Returns the apparent solid angle of the star with the given index.
      Parameters:
      index - The index in the star list.
      Returns:
      The apparent solid angle.
    • getClosestDistToCamera

      public double getClosestDistToCamera()
    • getClosestSize

      public double getClosestSize()
    • getClosestPos

      public Vector3d getClosestPos(Vector3d out)
    • getClosestAbsolutePos

      public Vector3b getClosestAbsolutePos(Vector3b out)
    • getClosestCol

      public float[] getClosestCol()
    • markForUpdate

      public void markForUpdate(Render render)
      Overrides:
      markForUpdate in class ParticleSet