Class StarSet
java.lang.Object
gaiasky.scene.component.ParticleSet
gaiasky.scene.component.StarSet
- All Implemented Interfaces:
com.badlogic.ashley.core.Component, IDisposable
Contains the parameters for star sets. These are groups of stars that are rendered together.
-
Nested Class Summary
Nested classes/interfaces inherited from class ParticleSet
ParticleSet.ShadingStyle -
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleintNumber of particles to render as a billboard for this group.doubleEpoch for the times in the light curves in julian days.booleanDoes this contain variable stars?Fields inherited from class ParticleSet
allowStreaks, B31, B32, candidateFocusIndex, ccMax, ccMin, colorFromTexture, colorNoise, columnInfoList, cPosD, currDeltaYears, D31, D32, datafile, disposed, entity, epochJd, factor, fixedAngularSize, focus, focusDistToCamera, focusIndex, focusPosition, focusPositionSph, focusSize, focusSolidAngle, focusSolidAngleApparent, generateIndex, index, indices, invisibilityArray, isExtended, isStars, labelColors, labelDisplayAlways, labelDisplayNever, 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, shadingStyle, textureArray, textureAttribute, textureFiles, updaterTask -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublefloat[]doublegetClosestPos(Vector3D out) doubleintgetHip()doublegetSolidAngleApparent(int index) Returns the apparent solid angle of the star with the given index.voidmarkForUpdate(Render render) voidsetVariabilityEpoch(Double epochJd) Sets the light curve epoch to use for the stars in this group.voidsetVariabilityEpochJd(Double epochJd) Sets the light curve epoch to use for the stars in this group.voidupdateFocus(ICamera camera) Updates the parameters of the focus, if the focus is active in this group.Methods inherited from class ParticleSet
canSelect, data, dispose, fetchPosition, fetchPositionDouble, generateIndex, get, getAbsolutePosition, getAbsolutePosition, getAbsolutePosition, getAbsolutePosition, getAbsolutePosition, getAbsolutePosition, getAlpha, getCandidateBean, getCandidateId, getCandidateName, getClosestLocalizedName, getClosestName, getColorMax, getColorMin, getDelta, getDeltaYears, getDistToCamera, getFirstParticleName, getFocusSize, getId, getLocalizedName, getMaxDistance, getMeanDistance, getMinDistance, getName, getNames, getNextSequence, getPosSph, getRadius, getRadius, getSize, getSize, getSolidAngle, getSolidAngleApparent, getTEff, hasName, hasName, isBillboard, isForceLabel, isRenderLabel, isRenderLabel, 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, setGenerateIndex, setLabelColor, setLabelDisplay, 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, setRenderLabel, setRenderParticles, setRenderSetLabel, setShadingStyle, setTexture, setTextureAttribute, setTextures, setVisible, setVisible, updateFocusDataPos, updateNumLabelsValue
-
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:
updateFocusin 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() -
getCandidateSolidAngleApparent
public double getCandidateSolidAngleApparent()- Overrides:
getCandidateSolidAngleApparentin classParticleSet
-
getSolidAngleApparent
public double getSolidAngleApparent(int index) Returns the apparent solid angle of the star with the given index.- Overrides:
getSolidAngleApparentin 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:
markForUpdatein classParticleSet
-