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 public class Star extends Particle
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
Fields Modifier and Type Field Description inthipDeprecated.HIP number, negative if non existentjava.lang.StringtychoDeprecated.TYCHO2 identifier stringFields inherited from class gaiasky.scenegraph.Particle
catalogSource, computedSize, fovFactor, innerRad, paramUpdater, pm, pmSph, thdownOverFovfactor, thpointTimesFovfactor, thupOverFovfactorFields inherited from class gaiasky.scenegraph.CelestialBody
absmag, appmag, ccPale, ccTransit, colorbv, compalpha, coordinatesTimeOverflow, rc, TH_OVER_FACTOR, wikinameFields 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, sg, size, translation, viewAngle, viewAngleApparent, visible -
Constructor Summary
Constructors Constructor Description Star()Deprecated.Star(Vector3b pos, float appmag, float absmag, float colorbv, java.lang.String[] names, float ra, float dec, long starid)Deprecated.Creates a new Star objectStar(Vector3b pos, float appmag, float absmag, float colorbv, java.lang.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, java.lang.String[] names, float ra, float dec, long starid, int hip, java.lang.String tycho, byte source)Deprecated.Creates a new Star objectStar(Vector3b pos, float appmag, float absmag, float colorbv, java.lang.String[] names, long starid)Deprecated.Star(Vector3b pos, com.badlogic.gdx.math.Vector3 pm, com.badlogic.gdx.math.Vector3 pmSph, float appmag, float absmag, float colorbv, java.lang.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, java.lang.String[] names, float ra, float dec, long starid, int hip, java.lang.String tycho, byte source)Deprecated.Creates a new Star object -
Method Summary
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 renderContext)Deprecated.Model renderingjava.lang.StringtoString()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, updateLocalValuesMethods 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, textSizeMethods 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, insert, isCopy, isInRender, isInRender, isVisibilityOn, 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, setVisibleGroup, shouldRender, updateLocal, updateNames, updateNamesRecMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, makeFocusMethods inherited from interface gaiasky.render.IRenderable
getComponentType, getDistToCamera, getOpacityMethods inherited from interface gaiasky.scenegraph.IStarFocus
getId
-
Field Details
-
hip
public int hipDeprecated.HIP number, negative if non existent -
tycho
public java.lang.String tychoDeprecated.TYCHO2 identifier string
-
-
Constructor Details
-
Star
public Star()Deprecated. -
Star
public Star(Vector3b pos, float appmag, float absmag, float colorbv, java.lang.String[] names, long starid)Deprecated. -
Star
public Star(Vector3b pos, float appmag, float absmag, float colorbv, java.lang.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, java.lang.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, java.lang.String[] names, 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 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, java.lang.String[] names, 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 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, java.lang.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
-
initModel
public static void initModel()Deprecated. -
initialize
public void initialize()Deprecated.- Overrides:
initializein classParticle
-
addToRenderLists
Deprecated.Description copied from class:SceneGraphNodeAdds 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 renderContext)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
Deprecated.Description copied from class:SceneGraphNodeSpecial actions to be taken for this object when adding to the index.- Overrides:
addToIndexin classSceneGraphNode- 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 classSceneGraphNode- Parameters:
map- The index
-