Package gaiasky.scenegraph
Class Star
java.lang.Object
gaiasky.scenegraph.SceneGraphNode
gaiasky.scenegraph.CelestialBody
gaiasky.scenegraph.Particle
gaiasky.scenegraph.Star
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,I3DTextRenderable
,ILineRenderable
,IModelRenderable
,IQuadRenderable
,IRenderable
,IFocus
,IProperMotion
,IStarContainer
,IStarFocus
,IVisibilitySwitch
,IPosition
Deprecated.
Move Sun to star group
Represents a single star. Currently only the Sun uses this class.
-
Nested Class Summary
Nested classes/interfaces inherited from class gaiasky.scenegraph.Particle
Particle.ParamUpdater
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Deprecated.HIP number, negative if non existentDeprecated.TYCHO2 identifier stringFields inherited from class gaiasky.scenegraph.Particle
catalogSource, computedSize, fovFactor, innerRad, paramUpdater, pm, pmSph, thdownOverFovfactor, thpointTimesFovfactor, thupOverFovfactor
Fields inherited from class gaiasky.scenegraph.CelestialBody
absmag, appmag, ccPale, ccTransit, colorbv, compalpha, coordinatesTimeOverflow, rc, TH_OVER_FACTOR, wikiname
Fields inherited from class gaiasky.scenegraph.SceneGraphNode
aux3b1, aux3b2, aux3b3, aux3b4, aux3d1, aux3d2, aux3d3, aux3d4, aux3f1, aux3f2, aux3f3, aux3f4, cc, children, computed, coordinates, copy, ct, distToCamera, id, lastStateChangeTimeMs, localTransform, namekey, names, numChildren, octant, octantId, opacity, orientation, parent, parentkey, parentName, pos, posSph, ROOT_NAME, size, translation, viewAngle, viewAngleApparent, visible
-
Constructor Summary
ConstructorsConstructorDescriptionStar()
Deprecated.Star(Vector3b pos, float appmag, float absmag, float colorbv, String[] names, float ra, float dec, long starid)
Deprecated.Creates a new Star objectStar(Vector3b pos, float appmag, float absmag, float colorbv, String[] names, float ra, float dec, long starid, int hip, byte source)
Deprecated.Creates a new Star objectStar(Vector3b pos, float appmag, float absmag, float colorbv, String[] names, float ra, float dec, long starid, int hip, String tycho, byte source)
Deprecated.Creates a new Star objectDeprecated.Star(Vector3b pos, com.badlogic.gdx.math.Vector3 pm, com.badlogic.gdx.math.Vector3 pmSph, float appmag, float absmag, float colorbv, String[] names, float ra, float dec, long starid)
Deprecated.Creates a new Star objectStar(Vector3b pos, com.badlogic.gdx.math.Vector3 pm, com.badlogic.gdx.math.Vector3 pmSph, float appmag, float absmag, float colorbv, String[] names, float ra, float dec, long starid, int hip, String tycho, byte source)
Deprecated.Creates a new Star object -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHit(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 void
addToIndex(com.badlogic.gdx.utils.ObjectMap<String,SceneGraphNode> map)
Deprecated.Special actions to be taken for this object when adding to the index.protected void
addToRenderLists(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 double
computeViewAngle(float fovFactor)
Deprecated.void
doneLoading(com.badlogic.gdx.assets.AssetManager manager)
Deprecated.int
getHip()
Deprecated.Returns the HIP number of this star, or negative if it has no HIP numberdouble
getPmX()
Deprecated.double
getPmY()
Deprecated.double
getPmZ()
Deprecated.void
Deprecated.protected void
removeFromIndex(com.badlogic.gdx.utils.ObjectMap<String,SceneGraphNode> map)
Deprecated.Special actions to be taken for this object when removing from the index.void
render(IntModelBatch modelBatch, float alpha, double t, RenderingContext renderContext, SceneGraphRenderer.RenderGroup group)
Deprecated.Model renderingtoString()
Deprecated.Methods inherited from class gaiasky.scenegraph.Particle
addToRender, checkHitCondition, forceUpdateLocalValues, getCatalogSource, getClosestAbsolutePos, getClosestCol, getClosestDistToCamera, getClosestName, getClosestPos, getClosestSize, getFuzzyRenderSize, getGlPrimitive, 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, getAppmag, getCandidateId, getCandidateName, getCandidateViewAngleApparent, getFocus, getOrientationQuaternion, getRotationComponent, getTextOpacity, getThOverFactor, getViewAngle, getViewAnglePow, getWikiname, hasAtmosphere, isActive, isCoordinatesTimeOverflow, isLabel, isValidPosition, makeFocus, render, render, setAbsmag, setAltname, setAppmag, setColor2Data, setColorbv, setMag, setRotation, setSize, setWikiname, text, textColour, textDepthBuffer, textPosition, textSize
Methods inherited from class gaiasky.scenegraph.SceneGraphNode
add, add, addChild, addChild, addName, addNodes, computeFuturePosition, dispose, getAbsoluteOrientation, getAbsolutePosition, getAbsolutePosition, getAggregatedChildren, getAlpha, getChildByName, getChildByNameAndType, getChildrenByComponentType, getChildrenByType, getColor, getComponentType, getCt, getDelta, getDescription, getDistToCamera, getFirstStarAncestor, getHeight, getHeight, getHeight, getHeightScale, getId, getLineCopy, getName, getNames, getNext, getNode, getNode, getOctant, getOpacity, getOrientation, getPos, getPosition, getPosition, getPosSph, getPredictedPosition, getRoot, getSceneGraphDepth, getSize, getUnrotatedPos, getVelocity, getViewAngleApparent, getVisibilityOpacityFactor, hasCt, hasName, hasName, insert, isCopy, isInRender, isInRender, isVisibilityOn, isVisible, isVisible, isVisible, isVisibleGroup, msSinceStateChange, mustAddToIndex, mustUpdatePosition, namesConcat, removeChild, removeFromRender, render2DLabel, render2DLabel, render2DLabel, render2DLabel, render3DLabel, render3DLabel, returnToPool, setColor, setColor, setComputedFlag, setCoordinates, setCt, setCt, setDescription, setId, setLabelcolor, setLabelcolor, setName, setNamekey, setNames, setParent, setParentkey, setSize, setUp, setVisible, setVisible, setVisibleGroup, shouldRender, updateLocal, 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, getColor, getCt, getDelta, getDistToCamera, getFirstStarAncestor, getFocus, getHeight, getHeight, getHeight, getHeightScale, getName, getNames, getNext, getOctant, getOrientation, getOrientationQuaternion, getPos, getPosSph, getPredictedPosition, getRotationComponent, getSceneGraphDepth, getSize, getViewAngle, getViewAngleApparent, hasName, hasName, isActive, isCoordinatesTimeOverflow, isCopy, makeFocus
Methods inherited from interface gaiasky.render.IRenderable
getComponentType, getDistToCamera, getOpacity
Methods inherited from interface gaiasky.scenegraph.IStarFocus
getId
-
Field Details
-
hip
public int hipDeprecated.HIP number, negative if non existent -
tycho
Deprecated.TYCHO2 identifier string
-
-
Constructor Details
-
Star
public Star()Deprecated. -
Star
Deprecated. -
Star
public Star(Vector3b pos, float appmag, float absmag, float colorbv, String[] names, 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 indexnames
- The proper names of the star, if anyra
- in degreesdec
- in degreesstarid
- The star id
-
Star
public Star(Vector3b pos, float appmag, float absmag, float colorbv, String[] names, 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 indexnames
- The proper names 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(Vector3b pos, com.badlogic.gdx.math.Vector3 pm, com.badlogic.gdx.math.Vector3 pmSph, float appmag, float absmag, float colorbv, String[] names, float ra, float dec, long starid, int hip, 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 indexnames
- The proper names of the star, if anyra
- in degreesdec
- in degreesstarid
- The star idhip
- The HIP identifiersource
- Catalog source. See {#Particle}
-
Star
public Star(Vector3b pos, float appmag, float absmag, float colorbv, String[] names, float ra, float dec, long starid, int hip, 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 indexnames
- The proper names 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(Vector3b pos, com.badlogic.gdx.math.Vector3 pm, com.badlogic.gdx.math.Vector3 pmSph, float appmag, float absmag, float colorbv, String[] names, 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 indexnames
- The proper names of the star, if anyra
- in degreesdec
- in degreesstarid
- The star id
-
-
Method Details
-
initialize
public void initialize()Deprecated.- Overrides:
initialize
in classParticle
-
doneLoading
public void doneLoading(com.badlogic.gdx.assets.AssetManager manager)Deprecated.- Overrides:
doneLoading
in classParticle
-
addToRenderLists
Deprecated.Description copied from class:SceneGraphNode
Adds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.- Overrides:
addToRenderLists
in classParticle
-
render
public void render(IntModelBatch modelBatch, float alpha, double t, RenderingContext renderContext, SceneGraphRenderer.RenderGroup group)Deprecated.Description copied from class:Particle
Model rendering- Specified by:
render
in interfaceIModelRenderable
- Overrides:
render
in 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:IFocus
Adds this focus to the hits list if it is hit by the [screenX, screenY] position- Specified by:
addHit
in interfaceIFocus
- Overrides:
addHit
in 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
-
toString
Deprecated.- Overrides:
toString
in classSceneGraphNode
-
getPmX
public double getPmX()Deprecated.- Overrides:
getPmX
in classCelestialBody
-
getPmY
public double getPmY()Deprecated.- Overrides:
getPmY
in classCelestialBody
-
getPmZ
public double getPmZ()Deprecated.- Overrides:
getPmZ
in classCelestialBody
-
computeViewAngle
protected double computeViewAngle(float fovFactor)Deprecated.- Overrides:
computeViewAngle
in classCelestialBody
-
getHip
public int getHip()Deprecated.Description copied from interface:IStarFocus
Returns the HIP number of this star, or negative if it has no HIP number- Specified by:
getHip
in interfaceIStarFocus
- Overrides:
getHip
in classParticle
- Returns:
- The HIP number
-
addToIndex
Deprecated.Description copied from class:SceneGraphNode
Special actions to be taken for this object when adding to the index.- Overrides:
addToIndex
in classSceneGraphNode
- Parameters:
map
- The index.
-
removeFromIndex
Deprecated.Description copied from class:SceneGraphNode
Special actions to be taken for this object when removing from the index. Must implement if addToIndex is implemented.- Overrides:
removeFromIndex
in classSceneGraphNode
- Parameters:
map
- The index.
-