Package gaiasky.scenegraph
Class Particle
java.lang.Object
gaiasky.scenegraph.SceneGraphNode
gaiasky.scenegraph.CelestialBody
gaiasky.scenegraph.Particle
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,I3DTextRenderable
,ILineRenderable
,IModelRenderable
,IQuadRenderable
,IRenderable
,IFocus
,IProperMotion
,IStarContainer
,IStarFocus
,IVisibilitySwitch
,IPosition
Deprecated.
Only the Sun uses this via the Star subclass. Move to star group.
A single point particle.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionbyte
Deprecated.Source of this star: -1: Unknown 1: Gaia 2: Hipparcos (HYG) 3: Tychodouble
Deprecated.protected static float
Deprecated.protected static float
Deprecated.protected static Particle.ParamUpdater
Deprecated.com.badlogic.gdx.math.Vector3
Deprecated.Proper motion in cartesian coordinates [U/yr]com.badlogic.gdx.math.Vector3
Deprecated.MuAlpha [mas/yr], Mudelta [mas/yr], radvel [km/s]protected static float
Deprecated.protected static float
Deprecated.protected static float
Deprecated.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
ConstructorsConstructorDescriptionParticle()
Deprecated.Particle(Vector3b pos, float appmag, float absmag, float colorbv, String[] names, float ra, float dec, long starid)
Deprecated.Deprecated.Creates a new star.Particle(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. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
addToRender(IRenderable renderable, SceneGraphRenderer.RenderGroup rg)
Deprecated.Adds the given renderable to the given render group list.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 boolean
Deprecated.void
doneLoading(com.badlogic.gdx.assets.AssetManager manager)
Deprecated.protected void
forceUpdateLocalValues(ITimeFrameProvider time, boolean force)
Deprecated.int
Deprecated.Gets the catalog source of this star.Deprecated.float[]
Deprecated.Returns the color of the closest stardouble
Deprecated.Same asIFocus.getDistToCamera()
Deprecated.Same asIFocus.getName()
getClosestPos(Vector3d out)
Deprecated.Returns the position of the closest star in camera coordinatesdouble
Deprecated.Returns the size of the closest starfloat
getFuzzyRenderSize(ICamera camera)
Deprecated.int
Deprecated.int
getHip()
Deprecated.Returns the HIP number of this star, or negative if it has no HIP numberfloat
Deprecated.float
Deprecated.double
Deprecated.Returns the mu alpha in mas/yrdouble
Deprecated.Returns the mu delta in mas/yrdouble
Deprecated.Returns the radial velocity in km/sdouble
Deprecated.Returns the radius in internal units<T extends SceneGraphNode>
TDeprecated.Gets a copy of this object but does not copy its parent or children.int
Deprecated.protected float
Deprecated.void
Deprecated.boolean
isStar()
Deprecated.protected float
Deprecated.protected float
labelMax()
Deprecated.float
Deprecated.void
render(LineRenderSystem renderer, ICamera camera, float alpha)
Deprecated.Line renderer.void
render(IntModelBatch modelBatch, float alpha, double t, RenderingContext rc, SceneGraphRenderer.RenderGroup group)
Deprecated.Model renderingboolean
Deprecated.Tells whether the text must be rendered or not for this entityprotected void
Deprecated.protected void
setRGB(float bv)
Deprecated.Sets the colorfloat
Deprecated.Returns the text scale for the scale varying in the shaderdouble
Deprecated.radius/distance limit for rendering at all.double
Deprecated.radius/distance limit for rendering as point.double
Deprecated.radius/distance limit for rendering as shader.void
update(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera)
Deprecated.void
update(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera, float opacity)
Deprecated.Re-implementation of update method ofCelestialBody
andSceneGraphNode
.void
updateLocalValues(ITimeFrameProvider time, ICamera camera)
Deprecated.This function updates all the local values before the localTransform is updated.Methods inherited from class gaiasky.scenegraph.CelestialBody
addFocusableObjects, addHit, addHit, checkClickDistance, computeViewAngle, getAbsmag, getAppmag, getCandidateId, getCandidateName, getCandidateViewAngleApparent, getFocus, getOrientationQuaternion, getPmX, getPmY, getPmZ, 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, addToIndex, 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, removeFromIndex, 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, toString, 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, 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
-
thpointTimesFovfactor
protected static float thpointTimesFovfactorDeprecated. -
thupOverFovfactor
protected static float thupOverFovfactorDeprecated. -
thdownOverFovfactor
protected static float thdownOverFovfactorDeprecated. -
innerRad
protected static float innerRadDeprecated. -
fovFactor
protected static float fovFactorDeprecated. -
paramUpdater
Deprecated. -
pm
public com.badlogic.gdx.math.Vector3 pmDeprecated.Proper motion in cartesian coordinates [U/yr] -
pmSph
public com.badlogic.gdx.math.Vector3 pmSphDeprecated.MuAlpha [mas/yr], Mudelta [mas/yr], radvel [km/s] -
catalogSource
public byte catalogSourceDeprecated.Source of this star:- -1: Unknown
- 1: Gaia
- 2: Hipparcos (HYG)
- 3: Tycho
-
computedSize
public double computedSizeDeprecated.
-
-
Constructor Details
-
Particle
public Particle()Deprecated. -
Particle
public Particle(Vector3b pos, float appmag, float absmag, float colorbv, String[] names, long starid)Deprecated.Creates a new star.- Parameters:
pos
- Cartesian position, in equatorial coordinates and in internal units.appmag
- Apparent magnitude.absmag
- Absolute magnitude.colorbv
- The B-V color index.names
- The labels or names.starid
- The star unique id.
-
Particle
public Particle(Vector3b pos, float appmag, float absmag, float colorbv, String[] names, float ra, float dec, long starid)Deprecated. -
Particle
public Particle(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.
-
-
Method Details
-
THRESHOLD_NONE
public double THRESHOLD_NONE()Deprecated.Description copied from class:CelestialBody
radius/distance limit for rendering at all. If angle is smaller than this quantity, no rendering happens.- Specified by:
THRESHOLD_NONE
in classCelestialBody
-
THRESHOLD_POINT
public double THRESHOLD_POINT()Deprecated.Description copied from class:CelestialBody
radius/distance limit for rendering as point. If angle is any bigger, we render with shader.- Specified by:
THRESHOLD_POINT
in classCelestialBody
-
THRESHOLD_QUAD
public double THRESHOLD_QUAD()Deprecated.Description copied from class:CelestialBody
radius/distance limit for rendering as shader. If angle is any bigger, we render as a model.- Specified by:
THRESHOLD_QUAD
in classCelestialBody
-
initialize
public void initialize()Deprecated.- Overrides:
initialize
in classSceneGraphNode
-
setDerivedAttributes
protected void setDerivedAttributes()Deprecated. -
update
Deprecated.- Overrides:
update
in classSceneGraphNode
-
update
public void update(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera, float opacity)Deprecated.Re-implementation of update method ofCelestialBody
andSceneGraphNode
.- Overrides:
update
in classSceneGraphNode
-
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 classSceneGraphNode
-
addToRender
Deprecated.Description copied from class:SceneGraphNode
Adds the given renderable to the given render group list.- Overrides:
addToRender
in classSceneGraphNode
- Parameters:
renderable
- The renderable to add.rg
- The render group that identifies the renderable list.- Returns:
- True if added, false otherwise.
-
render
public void render(IntModelBatch modelBatch, float alpha, double t, RenderingContext rc, SceneGraphRenderer.RenderGroup group)Deprecated.Model rendering- Specified by:
render
in interfaceIModelRenderable
-
setRGB
protected void setRGB(float bv)Deprecated.Sets the color- Parameters:
bv
- B-V color index
-
getInnerRad
public float getInnerRad()Deprecated.- Specified by:
getInnerRad
in classCelestialBody
-
getRadius
public double getRadius()Deprecated.Description copied from class:SceneGraphNode
Returns the radius in internal units- Specified by:
getRadius
in interfaceIFocus
- Overrides:
getRadius
in classSceneGraphNode
- Returns:
- The radius of the object, in internal units
-
isStar
public boolean isStar()Deprecated.- Overrides:
isStar
in classCelestialBody
-
renderText
public boolean renderText()Deprecated.Description copied from interface:I3DTextRenderable
Tells whether the text must be rendered or not for this entity- Specified by:
renderText
in interfaceI3DTextRenderable
- Overrides:
renderText
in classCelestialBody
- Returns:
- True if text must be rendered
-
labelSizeConcrete
public float labelSizeConcrete()Deprecated.- Overrides:
labelSizeConcrete
in classCelestialBody
-
textScale
public float textScale()Deprecated.Description copied from interface:I3DTextRenderable
Returns the text scale for the scale varying in the shader- Specified by:
textScale
in interfaceI3DTextRenderable
- Overrides:
textScale
in classCelestialBody
- Returns:
- The scale
-
labelFactor
protected float labelFactor()Deprecated.- Specified by:
labelFactor
in classCelestialBody
-
labelMax
protected float labelMax()Deprecated.- Specified by:
labelMax
in classCelestialBody
-
getFuzzyRenderSize
Deprecated.- Overrides:
getFuzzyRenderSize
in classCelestialBody
-
doneLoading
public void doneLoading(com.badlogic.gdx.assets.AssetManager manager)Deprecated.- Overrides:
doneLoading
in classSceneGraphNode
-
updateLocalValues
Deprecated.Description copied from class:SceneGraphNode
This function updates all the local values before the localTransform is updated. Position, rotations and scale must be updated in here.- Overrides:
updateLocalValues
in classSceneGraphNode
-
forceUpdateLocalValues
Deprecated. -
getStarCount
public int getStarCount()Deprecated.- Specified by:
getStarCount
in interfaceIStarContainer
- Overrides:
getStarCount
in classSceneGraphNode
-
getSimpleCopy
Deprecated.Description copied from class:SceneGraphNode
Gets a copy of this object but does not copy its parent or children.- Overrides:
getSimpleCopy
in classCelestialBody
- Returns:
- The copied object.
-
render
Deprecated.Line renderer. Renders proper motions- Specified by:
render
in interfaceILineRenderable
-
getGlPrimitive
public int getGlPrimitive()Deprecated.- Specified by:
getGlPrimitive
in interfaceILineRenderable
-
getThOverFactorScl
protected float getThOverFactorScl()Deprecated.- Overrides:
getThOverFactorScl
in classCelestialBody
-
checkHitCondition
protected boolean checkHitCondition()Deprecated.- Overrides:
checkHitCondition
in classCelestialBody
-
getCatalogSource
public int getCatalogSource()Deprecated.Description copied from interface:IStarFocus
Gets the catalog source of this star. Possible values are:- -1: Unknown
- 1: Gaia
- 2: Hipparcos (HYG)
- 3: Tycho
- 4: Other
- Specified by:
getCatalogSource
in interfaceIStarFocus
- Returns:
- The catalog source number
-
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
- Returns:
- The HIP number
-
getClosestDistToCamera
public double getClosestDistToCamera()Deprecated.Description copied from interface:IFocus
Same asIFocus.getDistToCamera()
- Specified by:
getClosestDistToCamera
in interfaceIFocus
- Specified by:
getClosestDistToCamera
in interfaceIStarFocus
- Overrides:
getClosestDistToCamera
in classCelestialBody
- Returns:
- The distance to the camera in internal units
-
getClosestName
Deprecated.Description copied from interface:IFocus
Same asIFocus.getName()
- Specified by:
getClosestName
in interfaceIFocus
- Specified by:
getClosestName
in interfaceIStarFocus
- Overrides:
getClosestName
in classCelestialBody
- Returns:
- The name
-
getClosestPos
Deprecated.Description copied from interface:IStarFocus
Returns the position of the closest star in camera coordinates- Specified by:
getClosestPos
in interfaceIStarFocus
- Parameters:
out
- The out vector- Returns:
- The out vector with the position
-
getClosestAbsolutePos
Deprecated.Description copied from interface:IFocus
- Specified by:
getClosestAbsolutePos
in interfaceIFocus
- Specified by:
getClosestAbsolutePos
in interfaceIStarFocus
- Overrides:
getClosestAbsolutePos
in classCelestialBody
- Parameters:
out
- Vector3d where to put the return value- Returns:
- The absolute position, same as aux
-
getClosestCol
public float[] getClosestCol()Deprecated.Description copied from interface:IStarFocus
Returns the color of the closest star- Specified by:
getClosestCol
in interfaceIStarFocus
- Returns:
- The color in rgb
-
getClosestSize
public double getClosestSize()Deprecated.Description copied from interface:IStarFocus
Returns the size of the closest star- Specified by:
getClosestSize
in interfaceIStarFocus
- Returns:
- The size of the closest star
-
getMuAlpha
public double getMuAlpha()Deprecated.Description copied from interface:IProperMotion
Returns the mu alpha in mas/yr- Specified by:
getMuAlpha
in interfaceIProperMotion
- Returns:
- The mu alpha in mas/yr
-
getMuDelta
public double getMuDelta()Deprecated.Description copied from interface:IProperMotion
Returns the mu delta in mas/yr- Specified by:
getMuDelta
in interfaceIProperMotion
- Returns:
- The mu delta in mas/yr
-
getRadialVelocity
public double getRadialVelocity()Deprecated.Description copied from interface:IProperMotion
Returns the radial velocity in km/s- Specified by:
getRadialVelocity
in interfaceIProperMotion
- Returns:
- The radial velocity in km/s
-
getLineWidth
public float getLineWidth()Deprecated.- Specified by:
getLineWidth
in interfaceILineRenderable
-