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
int
Number of particles to render as a billboard for this group.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, B31, B32, background, candidateFocusIndex, ccMax, ccMin, colorFromTexture, colorNoise, columnInfoList, cPosD, currDeltaYears, D31, D32, datafile, disposed, entity, epochJd, factor, fixedAngularSize, focus, focusDistToCamera, focusIndex, focusPosition, focusPositionSph, focusSize, focusSolidAngle, focusSolidAngleApparent, forceLabel, index, indices1, indices2, isExtended, isStars, labelColors, lastSortCameraPos, lastSortTime, mat, maxDistance, meanDistance, meanPosition, metadata, minDistance, model, modelFile, modelParams, modelPrimitive, modelType, numLabels, particleSizeLimits, particleSizeLimitsPoint, pointData, profileDecay, provider, providerParams, proximity, proximityDescriptorsLocation, proximityDescriptorsPath, proximityLoaded, proximityLoadingFlag, proximityMissing, proximityThreshold, renderParticleLabels, renderParticles, renderSetLabel, textureArray, textureAttribute, textureFiles, updaterTask, updating, visibilityArray
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
float[]
double
getClosestPos
(Vector3d out) double
int
getHip()
long
getId()
double
getSolidAngleApparent
(int index) Returns the apparent solid angle of the star with the given index.void
markForUpdate
(Render render) 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 group.Methods inherited from class gaiasky.scene.component.ParticleSet
canSelect, data, dispose, fetchPosition, fetchPositionDouble, generateIndex, get, getAbsolutePosition, getAbsolutePosition, getAbsolutePosition, getAbsolutePosition, getAbsolutePosition, getAbsolutePosition, getAlpha, getCandidateBean, getCandidateId, getCandidateName, getClosestName, getColorMax, getColorMin, getDelta, getDeltaYears, getDistToCamera, getFocusSize, getLocalizedName, getMaxDistance, getMeanDistance, getMinDistance, getName, getNames, getNextSequence, getPosSph, getRadius, getRadius, getRandomParticleName, getSize, getSize, getSolidAngle, getSolidAngleApparent, getTEff, hasName, hasName, isBillboard, isForceLabel, isVisible, isWireframe, makeFocus, regenerateIndex, setColorFromTexture, setColorMax, setColorMax, setColorMin, setColorMin, setColornoise, setColorNoise, setColumnInfoList, setData, setData, setDatafile, setDataFile, setDescriptorsLocation, setEpoch, setEpochJd, setExtended, setFactor, setFixedAngularSize, setFixedAngularSizeDeg, setFixedAngularSizeRad, setFocusIndex, setFocusIndex, setForceLabel, setLabelColor, setMeanPosition, setMeanPositionKm, setMeanPositionPc, setModelParams, setModelPrimitive, setModelType, setNumLabels, setParticlesizelimits, setParticleSizeLimits, setParticleSizeLimitsDeg, setPosition, setPosition, setPositionKm, setPositionPc, setPosKm, setPosPc, setProfiledecay, setProfileDecay, setProviderparams, setProviderParams, setProximityDescriptors, setProximityDescriptorsLocation, setProximityThreshold, setProximityThresholdDeg, setProximityThresholdRad, setRenderParticles, setRenderSetLabel, setTexture, setTextureAttribute, setTextures, setVisible, setVisible, updateFocusDataPos
-
Field Details
-
variabilityEpochJd
public double variabilityEpochJdEpoch for the times in the light curves in julian days. -
modelDist
public double modelDist -
variableStars
public boolean variableStarsDoes this contain variable stars? -
numBillboards
public int numBillboardsNumber of particles to render as a billboard for this group.
-
-
Constructor Details
-
StarSet
public StarSet()
-
-
Method Details
-
updateFocus
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 classParticleSet
- Parameters:
camera
- The current camera
-
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).
-
getHip
public int getHip() -
getId
public long getId()- Overrides:
getId
in classParticleSet
-
getCandidateSolidAngleApparent
public double getCandidateSolidAngleApparent()- Overrides:
getCandidateSolidAngleApparent
in classParticleSet
-
getSolidAngleApparent
public double getSolidAngleApparent(int index) Returns the apparent solid angle of the star with the given index.- Overrides:
getSolidAngleApparent
in classParticleSet
- Parameters:
index
- The index in the star list.- Returns:
- The apparent solid angle.
-
getClosestDistToCamera
public double getClosestDistToCamera() -
getClosestSize
public double getClosestSize() -
getClosestPos
-
getClosestAbsolutePos
-
getClosestCol
public float[] getClosestCol() -
markForUpdate
- Overrides:
markForUpdate
in classParticleSet
-