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

    • epochJd

      public double epochJd
      Epoch for positions/proper motions in julian days.
    • variabilityEpochJd

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

      public double currDeltaYears
      Current computed epoch time.
    • modelDist

      public double modelDist
    • variableStars

      public boolean variableStars
      Does this contain variable stars?
    • forceLabelStars

      public Set<Integer> forceLabelStars
      Stars for which forceLabel is enabled.
    • labelColors

      public Map<Integer,float[]> labelColors
      Stars with special label colors.
    • D32

      public final Vector3d D32
    • D33

      public final Vector3d D33
  • Constructor Details

    • StarSet

      public StarSet()
  • Method Details

    • getAbsolutePosition

      public Vector3b getAbsolutePosition(String name, Vector3b aux)
      Description copied from class: ParticleSet
      Returns the position of the particle with the given name, if any, in the out vector.
      Overrides:
      getAbsolutePosition in class ParticleSet
    • getAbsolutePosition

      public Vector3d getAbsolutePosition(String name, Vector3d aux)
    • updateFocus

      public void updateFocus(ICamera camera)
      Updates the parameters of the focus, if the focus is active in this group
      Overrides:
      updateFocus in class ParticleSet
      Parameters:
      camera - The current camera
    • setEpoch

      public void setEpoch(Double epochJd)
      Sets the epoch to use for the stars in this set.
      Parameters:
      epochJd - The epoch in julian days (days since January 1, 4713 BCE).
    • setEpochJd

      public void setEpochJd(Double epochJd)
      Sets the epoch to use for the stars in this set.
      Parameters:
      epochJd - The epoch in julian days (days since January 1, 4713 BCE).
    • 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).
    • fetchPosition

      public Vector3d fetchPosition(IParticleRecord pb, Vector3d campos, Vector3d out, double deltaYears)
      Description copied from class: ParticleSet
      Fetches the real position of the particle. It will apply the necessary integrations (i.e. proper motion).
      Overrides:
      fetchPosition in class ParticleSet
      Parameters:
      pb - The particle bean
      campos - The position of the camera. If null, the camera position is not subtracted so that the coordinates are given in the global reference system instead of the camera reference system.
      out - The destination factor
      deltaYears - The delta years
      Returns:
      The vector for chaining
    • getDeltaYears

      public double getDeltaYears()
      Description copied from class: ParticleSet
      Returns the delta years to integrate the proper motion.
      Overrides:
      getDeltaYears in class ParticleSet
      Returns:
      The current delta years.
    • getHip

      public int getHip()
    • getId

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

      public long getCandidateId()
      Overrides:
      getCandidateId in class ParticleSet
    • getCandidateName

      public String getCandidateName()
      Overrides:
      getCandidateName in class ParticleSet
    • getCandidateSolidAngleApparent

      public double getCandidateSolidAngleApparent()
      Overrides:
      getCandidateSolidAngleApparent in class ParticleSet
    • 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
    • setForceLabel

      public void setForceLabel(Boolean forceLabel, String name)
    • isForceLabel

      public boolean isForceLabel(String name)
    • setLabelColor

      public void setLabelColor(float[] color, String name)