Package gaiasky.scene.component
Class StarSet
java.lang.Object
gaiasky.scene.component.ParticleSet
gaiasky.scene.component.StarSet
- All Implemented Interfaces:
com.badlogic.ashley.core.Component
,IDisposable
-
Field Summary
Modifier and TypeFieldDescriptiondouble
Current computed epoch time.final Vector3d
final Vector3d
double
Epoch for positions/proper motions in julian days.Stars for which forceLabel is enabled.Stars with special label colors.double
double
Epoch for the times in the light curves in julian days.boolean
Does this contain variable stars?Fields inherited from class gaiasky.scene.component.ParticleSet
active, background, candidateFocusIndex, ccMax, ccMin, colorNoise, cPosD, D31, datafile, disposed, factor, focus, focusDistToCamera, focusIndex, focusPosition, focusPositionSph, focusSize, focusSolidAngle, focusSolidAngleApparent, idSeq, index, indices1, indices2, isStars, lastSortCameraPos, lastSortTime, maxDistance, meanDistance, meanPosition, metadata, minDistance, particleSizeLimits, particleSizeLimitsPoint, pointData, profileDecay, provider, providerParams, proximity, updaterTask, updating, visibilityArray
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfetchPosition
(IParticleRecord pb, Vector3d campos, Vector3d out, double deltaYears) Fetches the real position of the particle.getAbsolutePosition
(String name, Vector3b aux) Returns the position of the particle with the given name, if any, in the out vector.getAbsolutePosition
(String name, Vector3d aux) long
double
float[]
double
getClosestPos
(Vector3d out) double
double
Returns the delta years to integrate the proper motion.int
getHip()
long
getId()
boolean
isForceLabel
(String name) void
markForUpdate
(Render render) void
Sets the epoch to use for the stars in this set.void
setEpochJd
(Double epochJd) Sets the epoch to use for the stars in this set.void
setForceLabel
(Boolean forceLabel, String name) void
setLabelColor
(float[] color, String name) void
setVariabilityEpoch
(Double epochJd) Sets the light curve epoch to use for the stars in this group.void
setVariabilityEpochJd
(Double epochJd) Sets the light curve epoch to use for the stars in this group.void
updateFocus
(ICamera camera) Updates the parameters of the focus, if the focus is active in this groupMethods inherited from class gaiasky.scene.component.ParticleSet
canSelect, data, dispose, generateIndex, get, getAbsolutePosition, getAlpha, getCandidateBean, getClosestName, getColorMax, getColorMin, getDelta, getDistToCamera, getFocusSize, getLocalizedName, getMaxDistance, getMeanDistance, getMinDistance, getName, getNames, getPosSph, getRadius, getRadius, getRandomParticleName, getSize, getSize, getSolidAngle, getSolidAngleApparent, isVisible, makeFocus, regenerateIndex, setColorMax, setColorMax, setColorMin, setColorMin, setColornoise, setColorNoise, setData, setData, setDatafile, setFactor, setFocusIndex, setFocusIndex, setParticlesizelimits, setParticleSizeLimits, setPosition, setPosition, setPositionKm, setPositionPc, setPosKm, setPosPc, setProfiledecay, setProfileDecay, setProviderparams, setVisible, setVisible, updateFocusDataPos
-
Field Details
-
D32
-
D33
-
epochJd
public double epochJdEpoch for positions/proper motions in julian days. -
variabilityEpochJd
public double variabilityEpochJdEpoch for the times in the light curves in julian days. -
currDeltaYears
public double currDeltaYearsCurrent computed epoch time. -
modelDist
public double modelDist -
variableStars
public boolean variableStarsDoes this contain variable stars? -
forceLabelStars
Stars for which forceLabel is enabled. -
labelColors
Stars with special label colors.
-
-
Constructor Details
-
StarSet
public StarSet()
-
-
Method Details
-
getAbsolutePosition
Description copied from class:ParticleSet
Returns the position of the particle with the given name, if any, in the out vector.- Overrides:
getAbsolutePosition
in classParticleSet
-
getAbsolutePosition
-
updateFocus
Updates the parameters of the focus, if the focus is active in this group- Overrides:
updateFocus
in classParticleSet
- Parameters:
camera
- The current camera
-
setEpoch
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
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
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
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
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 classParticleSet
- Parameters:
pb
- The particle beancampos
- 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 factordeltaYears
- 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 classParticleSet
- Returns:
- The current delta years.
-
getHip
public int getHip() -
getId
public long getId()- Overrides:
getId
in classParticleSet
-
getCandidateId
public long getCandidateId()- Overrides:
getCandidateId
in classParticleSet
-
getCandidateName
- Overrides:
getCandidateName
in classParticleSet
-
getCandidateSolidAngleApparent
public double getCandidateSolidAngleApparent()- Overrides:
getCandidateSolidAngleApparent
in classParticleSet
-
getClosestDistToCamera
public double getClosestDistToCamera() -
getClosestSize
public double getClosestSize() -
getClosestPos
-
getClosestAbsolutePos
-
getClosestCol
public float[] getClosestCol() -
markForUpdate
- Overrides:
markForUpdate
in classParticleSet
-
setForceLabel
-
isForceLabel
-
setLabelColor
-