Package gaiasky.scenegraph
Class Star
- java.lang.Object
-
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,I3DTextRenderable,ILineRenderable,IModelRenderable,IQuadRenderable,IRenderable,IFocus,IProperMotion,IStarContainer,IStarFocus,IPosition
public class Star extends Particle
Deprecated.Move Sun to star vgroupRepresents a single star. Currently only the Sun uses this class.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gaiasky.scenegraph.Particle
Particle.ParamUpdater
-
Nested classes/interfaces inherited from class gaiasky.scenegraph.SceneGraphNode
SceneGraphNode.RenderGroup, SceneGraphNode.TLV3, SceneGraphNode.TLV3D
-
-
Field Summary
Fields Modifier and Type Field Description inthipDeprecated.HIP number, negative if non existentjava.lang.StringtychoDeprecated.TYCHO2 identifier string-
Fields inherited from class gaiasky.scenegraph.Particle
catalogSource, computedSize, fovFactor, innerRad, paramUpdater, pm, pmSph, renderOn, thdownOverFovfactor, thpointTimesFovfactor, thupOverFovfactor
-
Fields inherited from class gaiasky.scenegraph.CelestialBody
absmag, appmag, ccPale, ccTransit, colorbv, compalpha, coordinatesTimeOverflow, lastTransitIncrease, rc, TH_OVER_FACTOR, transits
-
Fields inherited from class gaiasky.scenegraph.AbstractPositionEntity
cc, coordinates, copy, distToCamera, octant, octantId, pos, posSph, size, viewAngle, viewAngleApparent
-
Fields inherited from class gaiasky.scenegraph.SceneGraphNode
aux3d1, aux3d2, aux3d3, aux3d4, aux3f1, aux3f2, aux3f3, aux3f4, children, computed, ct, id, localTransform, name, namekey, numChildren, opacity, orientation, parent, parentkey, parentName, ROOT_NAME, sg, translation
-
-
Constructor Summary
Constructors Constructor Description Star()Deprecated.Star(Vector3d pos, float appmag, float absmag, float colorbv, java.lang.String name, float ra, float dec, long starid)Deprecated.Creates a new Star objectStar(Vector3d pos, float appmag, float absmag, float colorbv, java.lang.String name, float ra, float dec, long starid, int hip, byte source)Deprecated.Creates a new Star objectStar(Vector3d pos, float appmag, float absmag, float colorbv, java.lang.String name, float ra, float dec, long starid, int hip, java.lang.String tycho, byte source)Deprecated.Creates a new Star objectStar(Vector3d pos, float appmag, float absmag, float colorbv, java.lang.String name, long starid)Deprecated.Star(Vector3d pos, com.badlogic.gdx.math.Vector3 pm, com.badlogic.gdx.math.Vector3 pmSph, float appmag, float absmag, float colorbv, java.lang.String name, float ra, float dec, long starid)Deprecated.Creates a new Star objectStar(Vector3d pos, com.badlogic.gdx.math.Vector3 pm, com.badlogic.gdx.math.Vector3 pmSph, float appmag, float absmag, float colorbv, java.lang.String name, float ra, float dec, long starid, int hip, java.lang.String tycho, byte source)Deprecated.Creates a new Star object
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddHit(int screenX, int screenY, int w, int h, int minPixDist, NaturalCamera camera, com.badlogic.gdx.utils.Array<IFocus> hits)Deprecated.Adds this focus to the hits list if it is hit by the [screenX, screenY] positionprotected voidaddToIndex(com.badlogic.gdx.utils.ObjectMap<java.lang.String,SceneGraphNode> map)Deprecated.Special actions to be taken for this object when adding to the index.protected voidaddToRenderLists(ICamera camera)Deprecated.Adds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.protected doublecomputeViewAngle(float fovFactor)Deprecated.voiddoneLoading(com.badlogic.gdx.assets.AssetManager manager)Deprecated.intgetHip()Deprecated.Returns the HIP number of this star, or negative if it has no HIP numberdoublegetPmX()Deprecated.doublegetPmY()Deprecated.doublegetPmZ()Deprecated.voidinitialize()Deprecated.static voidinitModel()Deprecated.protected voidremoveFromIndex(com.badlogic.gdx.utils.ObjectMap<java.lang.String,SceneGraphNode> map)Deprecated.Special actions to be taken for this object when removing from the index.voidrender(IntModelBatch modelBatch, float alpha, double t, RenderingContext rc)Deprecated.Model renderingjava.lang.StringtoString()Deprecated.-
Methods inherited from class gaiasky.scenegraph.Particle
addToRender, checkHitCondition, getCatalogSource, getClosestAbsolutePos, getClosestCol, getClosestDistToCamera, getClosestName, getClosestPos, getClosestSize, getFuzzyRenderSize, getGlType, getInnerRad, getLineWidth, getMuAlpha, getMuDelta, getRadialVelocity, getRadius, getSimpleCopy, getStarCount, getThOverFactorScl, isStar, labelFactor, labelMax, labelSizeConcrete, render, renderText, setDerivedAttributes, setRGB, textScale, THRESHOLD_NONE, THRESHOLD_POINT, THRESHOLD_QUAD, update, update, updateLocalValues
-
Methods inherited from class gaiasky.scenegraph.CelestialBody
addFocusableObjects, addHit, checkClickDistance, getAbsmag, getAltname, getAppmag, getCandidateId, getCandidateName, getCandidateViewAngleApparent, getFocus, getOrientationQuaternion, getRotationComponent, getTextOpacity, getThOverFactor, getViewAngle, getViewAnglePow, hasAtmosphere, isActive, isCoordinatesTimeOverflow, isLabel, isValidPosition, makeFocus, render, render, setAbsmag, setAltname, setAppmag, setColor2Data, setMag, setRotation, setSize, text, textColour, textDepthBuffer, textPosition, textSize, timeCondition, updateTransitNumber, withinMagLimit
-
Methods inherited from class gaiasky.scenegraph.AbstractPositionEntity
computeFuturePosition, getAbsoluteOrientation, getAbsolutePosition, getAbsolutePosition, getAlpha, getDelta, getDistToCamera, getHeight, getHeight, getHeight, getHeightScale, getNext, getOctant, getPos, getPosition, getPosition, getPosSph, getPredictedPosition, getSize, getViewAngleApparent, isCopy, mustUpdatePosition, render2DLabel, render2DLabel, render2DLabel, render2DLabel, render3DLabel, setColor, setColor, setCoordinates, setSize, updateLocal
-
Methods inherited from class gaiasky.scenegraph.SceneGraphNode
add, add, addChild, addChild, addNodes, dispose, getAggregatedChildren, getChildByName, getChildByNameAndType, getChildrenByType, getComponentType, getCt, getFirstStarAncestor, getId, getLineCopy, getName, getNode, getNode, getOpacity, getOrientation, getRoot, getSceneGraphDepth, getVelocity, insert, isInRender, isInRender, isVisibilityOn, mustAddToIndex, removeChild, removeFromRender, returnToPool, setComputedFlag, setCt, setCt, setId, setName, setNamekey, setParent, setParentkey, setUp, updateNames, updateNamesRec
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gaiasky.scenegraph.IFocus
addHit, getAbsmag, getAbsolutePosition, getAbsolutePosition, getAlpha, getAppmag, getCandidateId, getCandidateName, getCandidateViewAngleApparent, getCt, getDelta, getDistToCamera, getFirstStarAncestor, getFocus, getHeight, getHeight, getHeight, getHeightScale, getName, getNext, getOctant, getOrientation, getOrientationQuaternion, getPos, getPosSph, getPredictedPosition, getRotationComponent, getSceneGraphDepth, getSize, getViewAngle, getViewAngleApparent, isActive, isCoordinatesTimeOverflow, isCopy, makeFocus, withinMagLimit
-
Methods inherited from interface gaiasky.render.IRenderable
getComponentType, getDistToCamera, getOpacity
-
Methods inherited from interface gaiasky.scenegraph.IStarFocus
getId
-
-
-
-
Constructor Detail
-
Star
public Star()
Deprecated.
-
Star
public Star(Vector3d pos, float appmag, float absmag, float colorbv, java.lang.String name, long starid)
Deprecated.
-
Star
public Star(Vector3d pos, float appmag, float absmag, float colorbv, java.lang.String name, float ra, float dec, long starid)
Deprecated.Creates a new Star object- Parameters:
pos- The position of the star in equatorial cartesian coordinatesappmag- The apparent magnitudeabsmag- The absolute magnitudecolorbv- The B-V color indexname- The proper name of the star, if anyra- in degreesdec- in degreesstarid- The star id
-
Star
public Star(Vector3d pos, float appmag, float absmag, float colorbv, java.lang.String name, float ra, float dec, long starid, int hip, byte source)
Deprecated.Creates a new Star object- Parameters:
pos- The position of the star in equatorial cartesian coordinatesappmag- The apparent magnitudeabsmag- The absolute magnitudecolorbv- The B-V color indexname- The proper name of the star, if anyra- in degreesdec- in degreesstarid- The star idhip- The HIP identifiersource- Catalog source. 1: Gaia, 2: HIP, 3: TYC, -1: Unknown
-
Star
public Star(Vector3d pos, com.badlogic.gdx.math.Vector3 pm, com.badlogic.gdx.math.Vector3 pmSph, float appmag, float absmag, float colorbv, java.lang.String name, float ra, float dec, long starid, int hip, java.lang.String tycho, byte source)
Deprecated.Creates a new Star object- Parameters:
pos- The position of the star in equatorial cartesian coordinatespm- The proper motion of the star in equatorial cartesian coordinates.pmSph- The proper motion with mualpha, mudelta, radvel.appmag- The apparent magnitudeabsmag- The absolute magnitudecolorbv- The B-V color indexname- The proper name of the star, if anyra- in degreesdec- in degreesstarid- The star idhip- The HIP identifiersource- Catalog source. See {#Particle}
-
Star
public Star(Vector3d pos, float appmag, float absmag, float colorbv, java.lang.String name, float ra, float dec, long starid, int hip, java.lang.String tycho, byte source)
Deprecated.Creates a new Star object- Parameters:
pos- The position of the star in equatorial cartesian coordinatesappmag- The apparent magnitudeabsmag- The absolute magnitudecolorbv- The B-V color indexname- The proper name of the star, if anyra- in degreesdec- in degreesstarid- The star idhip- The HIP identifiertycho- The TYC identifiersource- Catalog source. See {#Particle}
-
Star
public Star(Vector3d pos, com.badlogic.gdx.math.Vector3 pm, com.badlogic.gdx.math.Vector3 pmSph, float appmag, float absmag, float colorbv, java.lang.String name, float ra, float dec, long starid)
Deprecated.Creates a new Star object- Parameters:
pos- The position of the star in equatorial cartesian coordinatespm- The proper motion of the star in equatorial cartesian coordinatespmSph- The proper motion with mualpha, mudelta, radvel.appmag- The apparent magnitudeabsmag- The absolute magnitudecolorbv- The B-V color indexname- The proper name of the star, if anyra- in degreesdec- in degreesstarid- The star id
-
-
Method Detail
-
initModel
public static void initModel()
Deprecated.
-
initialize
public void initialize()
Deprecated.- Overrides:
initializein classParticle
-
addToRenderLists
protected void addToRenderLists(ICamera camera)
Deprecated.Description copied from class:AbstractPositionEntityAdds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.- Overrides:
addToRenderListsin classParticle
-
render
public void render(IntModelBatch modelBatch, float alpha, double t, RenderingContext rc)
Deprecated.Description copied from class:ParticleModel rendering- Specified by:
renderin interfaceIModelRenderable- Overrides:
renderin classParticle
-
addHit
public void addHit(int screenX, int screenY, int w, int h, int minPixDist, NaturalCamera camera, com.badlogic.gdx.utils.Array<IFocus> hits)Deprecated.Description copied from interface:IFocusAdds this focus to the hits list if it is hit by the [screenX, screenY] position- Specified by:
addHitin interfaceIFocus- Overrides:
addHitin classCelestialBody- Parameters:
screenX- The x position of the hitscreenY- The y position of the hitw- The viewport widthh- The viewport heightminPixDist- The minimum pixel distance to consider as hitcamera- The camerahits- The list where to add the element
-
doneLoading
public void doneLoading(com.badlogic.gdx.assets.AssetManager manager)
Deprecated.- Overrides:
doneLoadingin classParticle
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classSceneGraphNode
-
getPmX
public double getPmX()
Deprecated.- Overrides:
getPmXin classCelestialBody
-
getPmY
public double getPmY()
Deprecated.- Overrides:
getPmYin classCelestialBody
-
getPmZ
public double getPmZ()
Deprecated.- Overrides:
getPmZin classCelestialBody
-
computeViewAngle
protected double computeViewAngle(float fovFactor)
Deprecated.- Overrides:
computeViewAnglein classCelestialBody
-
getHip
public int getHip()
Deprecated.Description copied from interface:IStarFocusReturns the HIP number of this star, or negative if it has no HIP number- Specified by:
getHipin interfaceIStarFocus- Overrides:
getHipin classParticle- Returns:
- The HIP number
-
addToIndex
protected void addToIndex(com.badlogic.gdx.utils.ObjectMap<java.lang.String,SceneGraphNode> map)
Deprecated.Description copied from class:SceneGraphNodeSpecial actions to be taken for this object when adding to the index.- Overrides:
addToIndexin classCelestialBody- Parameters:
map- The index
-
removeFromIndex
protected void removeFromIndex(com.badlogic.gdx.utils.ObjectMap<java.lang.String,SceneGraphNode> map)
Deprecated.Description copied from class:SceneGraphNodeSpecial actions to be taken for this object when removing from the index. Must implement if addToIndex is implemented- Overrides:
removeFromIndexin classCelestialBody- Parameters:
map- The index
-
-