Class Particle
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.scenegraph.SceneGraphNode
-
- gaia.cu9.ari.gaiaorbit.scenegraph.AbstractPositionEntity
-
- gaia.cu9.ari.gaiaorbit.scenegraph.CelestialBody
-
- gaia.cu9.ari.gaiaorbit.scenegraph.Particle
-
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,I3DTextRenderable
,ILineRenderable
,IModelRenderable
,IQuadRenderable
,IRenderable
,IFocus
,IProperMotion
,IStarContainer
,IStarFocus
,IPosition
public class Particle extends CelestialBody implements IStarFocus, ILineRenderable
Deprecated.Only the Sun uses this via the Star subclass. Move to star vgroup.A single point particle.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
Particle.ParamUpdater
Deprecated.-
Nested classes/interfaces inherited from class gaia.cu9.ari.gaiaorbit.scenegraph.SceneGraphNode
SceneGraphNode.RenderGroup, SceneGraphNode.TLV3, SceneGraphNode.TLV3D
-
-
Field Summary
Fields Modifier and Type Field Description byte
catalogSource
Deprecated.Source of this star: -1: Unknown 1: Gaia 2: Hipparcos (HYG) 3: Tychodouble
computedSize
Deprecated.protected static float
fovFactor
Deprecated.protected static float
innerRad
Deprecated.protected static Particle.ParamUpdater
paramUpdater
Deprecated.com.badlogic.gdx.math.Vector3
pm
Deprecated.Proper motion in cartesian coordinates [U/yr]com.badlogic.gdx.math.Vector3
pmSph
Deprecated.MuAlpha [mas/yr], Mudelta [mas/yr], radvel [km/s]static boolean
renderOn
Deprecated.Must be updated every cycleprotected static float
thdownOverFovfactor
Deprecated.protected static float
thpointTimesFovfactor
Deprecated.protected static float
thupOverFovfactor
Deprecated.-
Fields inherited from class gaia.cu9.ari.gaiaorbit.scenegraph.CelestialBody
absmag, appmag, ccPale, ccTransit, colorbv, compalpha, coordinatesTimeOverflow, lastTransitIncrease, rc, TH_OVER_FACTOR, transits
-
Fields inherited from class gaia.cu9.ari.gaiaorbit.scenegraph.AbstractPositionEntity
cc, coordinates, copy, distToCamera, octant, octantId, pos, posSph, size, viewAngle, viewAngleApparent
-
Fields inherited from class gaia.cu9.ari.gaiaorbit.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 Particle()
Deprecated.Particle(Vector3d pos, float appmag, float absmag, float colorbv, java.lang.String name, float ra, float dec, long starid)
Deprecated.Particle(Vector3d pos, float appmag, float absmag, float colorbv, java.lang.String name, long starid)
Deprecated.Creates a new star.Particle(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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
addToRender(IRenderable renderable, SceneGraphNode.RenderGroup rg)
Deprecated.Adds the given renderable to the given render vgroup listprotected 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
checkHitCondition()
Deprecated.void
doneLoading(com.badlogic.gdx.assets.AssetManager manager)
Deprecated.int
getCatalogSource()
Deprecated.Gets the catalog source of this star.Vector3d
getClosestAbsolutePos(Vector3d out)
Deprecated.float[]
getClosestCol()
Deprecated.Returns the color of the closest stardouble
getClosestDistToCamera()
Deprecated.Same asIFocus.getDistToCamera()
java.lang.String
getClosestName()
Deprecated.Same asIFocus.getName()
Vector3d
getClosestPos(Vector3d out)
Deprecated.Returns the position of the closest star in camera coordinatesdouble
getClosestSize()
Deprecated.Returns the size of the closest starfloat
getFuzzyRenderSize(ICamera camera)
Deprecated.int
getGlType()
Deprecated.int
getHip()
Deprecated.Returns the HIP number of this star, or negative if it has no HIP numberfloat
getInnerRad()
Deprecated.float
getLineWidth()
Deprecated.double
getMuAlpha()
Deprecated.Returns the mu alpha in mas/yrdouble
getMuDelta()
Deprecated.Returns the mu delta in mas/yrdouble
getRadialVelocity()
Deprecated.Returns the radial velocity in km/sdouble
getRadius()
Deprecated.Returns the radius in internal units<T extends SceneGraphNode>
TgetSimpleCopy()
Deprecated.Gets a copy of this object but does not copy its parent or childrenint
getStarCount()
Deprecated.protected float
getThOverFactorScl()
Deprecated.void
initialize()
Deprecated.boolean
isStar()
Deprecated.protected float
labelFactor()
Deprecated.protected float
labelMax()
Deprecated.float
labelSizeConcrete()
Deprecated.void
render(LineRenderSystem renderer, ICamera camera, float alpha)
Deprecated.Line renderer.void
render(IntModelBatch modelBatch, float alpha, double t, RenderingContext rc)
Deprecated.Model renderingboolean
renderText()
Deprecated.Tells whether the text must be rendered or not for this entityprotected void
setDerivedAttributes()
Deprecated.protected void
setRGB(float bv)
Deprecated.Sets the colorfloat
textScale()
Deprecated.Returns the text scale for the scale varying in the shaderdouble
THRESHOLD_NONE()
Deprecated.radius/distance limit for rendering at all.double
THRESHOLD_POINT()
Deprecated.radius/distance limit for rendering as point.double
THRESHOLD_QUAD()
Deprecated.radius/distance limit for rendering as shader.void
update(ITimeFrameProvider time, Vector3d parentTransform, ICamera camera)
Deprecated.Overrides the update adding the magnitude limit thingy.void
update(ITimeFrameProvider time, Vector3d 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 gaia.cu9.ari.gaiaorbit.scenegraph.CelestialBody
addFocusableObjects, addHit, addHit, addToIndex, checkClickDistance, computeViewAngle, getAbsmag, getAltname, getAppmag, getCandidateId, getCandidateName, getCandidateViewAngleApparent, getFocus, getOrientationQuaternion, getPmX, getPmY, getPmZ, getRotationComponent, getTextOpacity, getThOverFactor, getViewAngle, getViewAnglePow, hasAtmosphere, isActive, isCoordinatesTimeOverflow, isLabel, isValidPosition, makeFocus, removeFromIndex, render, render, setAbsmag, setAltname, setAppmag, setColor2Data, setMag, setRotation, setSize, text, textColour, textDepthBuffer, textPosition, textSize, timeCondition, updateTransitNumber, withinMagLimit
-
Methods inherited from class gaia.cu9.ari.gaiaorbit.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 gaia.cu9.ari.gaiaorbit.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, toString, updateNames, updateNamesRec
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gaia.cu9.ari.gaiaorbit.scenegraph.IFocus
addHit, 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 gaia.cu9.ari.gaiaorbit.render.IRenderable
getComponentType, getDistToCamera, getOpacity
-
Methods inherited from interface gaia.cu9.ari.gaiaorbit.scenegraph.IStarFocus
getId
-
-
-
-
Field Detail
-
thpointTimesFovfactor
protected static float thpointTimesFovfactor
Deprecated.
-
thupOverFovfactor
protected static float thupOverFovfactor
Deprecated.
-
thdownOverFovfactor
protected static float thdownOverFovfactor
Deprecated.
-
innerRad
protected static float innerRad
Deprecated.
-
fovFactor
protected static float fovFactor
Deprecated.
-
paramUpdater
protected static Particle.ParamUpdater paramUpdater
Deprecated.
-
renderOn
public static boolean renderOn
Deprecated.Must be updated every cycle
-
pm
public com.badlogic.gdx.math.Vector3 pm
Deprecated.Proper motion in cartesian coordinates [U/yr]
-
pmSph
public com.badlogic.gdx.math.Vector3 pmSph
Deprecated.MuAlpha [mas/yr], Mudelta [mas/yr], radvel [km/s]
-
catalogSource
public byte catalogSource
Deprecated.Source of this star:- -1: Unknown
- 1: Gaia
- 2: Hipparcos (HYG)
- 3: Tycho
-
computedSize
public double computedSize
Deprecated.
-
-
Constructor Detail
-
Particle
public Particle()
Deprecated.
-
Particle
public Particle(Vector3d pos, float appmag, float absmag, float colorbv, java.lang.String name, 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.name
- The label or name.starid
- The star unique id.
-
Particle
public Particle(Vector3d pos, float appmag, float absmag, float colorbv, java.lang.String name, float ra, float dec, long starid)
Deprecated.
-
Particle
public Particle(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.
-
-
Method Detail
-
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
public void update(ITimeFrameProvider time, Vector3d parentTransform, ICamera camera)
Deprecated.Description copied from class:CelestialBody
Overrides the update adding the magnitude limit thingy.- Overrides:
update
in classCelestialBody
-
update
public void update(ITimeFrameProvider time, Vector3d parentTransform, ICamera camera, float opacity)
Deprecated.Re-implementation of update method ofCelestialBody
andSceneGraphNode
.- Overrides:
update
in classSceneGraphNode
-
addToRenderLists
protected void addToRenderLists(ICamera camera)
Deprecated.Description copied from class:AbstractPositionEntity
Adds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.- Specified by:
addToRenderLists
in classAbstractPositionEntity
-
addToRender
protected boolean addToRender(IRenderable renderable, SceneGraphNode.RenderGroup rg)
Deprecated.Description copied from class:SceneGraphNode
Adds the given renderable to the given render vgroup list- Overrides:
addToRender
in classSceneGraphNode
- Parameters:
renderable
- The renderable to addrg
- The render vgroup that identifies the renderable list- Returns:
- True if added, false otherwise
-
render
public void render(IntModelBatch modelBatch, float alpha, double t, RenderingContext rc)
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:AbstractPositionEntity
Returns the radius in internal units- Specified by:
getRadius
in interfaceIFocus
- Overrides:
getRadius
in classAbstractPositionEntity
- 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
public float getFuzzyRenderSize(ICamera camera)
Deprecated.- Overrides:
getFuzzyRenderSize
in classCelestialBody
-
doneLoading
public void doneLoading(com.badlogic.gdx.assets.AssetManager manager)
Deprecated.- Overrides:
doneLoading
in classAbstractPositionEntity
-
updateLocalValues
public void updateLocalValues(ITimeFrameProvider time, ICamera camera)
Deprecated.Description copied from class:AbstractPositionEntity
This function updates all the local values before the localTransform is updated. Position, rotations and scale must be updated in here.- Specified by:
updateLocalValues
in classAbstractPositionEntity
-
getStarCount
public int getStarCount()
Deprecated.- Specified by:
getStarCount
in interfaceIStarContainer
- Overrides:
getStarCount
in classSceneGraphNode
-
getSimpleCopy
public <T extends SceneGraphNode> T getSimpleCopy()
Deprecated.Description copied from class:AbstractPositionEntity
Gets a copy of this object but does not copy its parent or children- Overrides:
getSimpleCopy
in classCelestialBody
- Returns:
- The copied object
-
render
public void render(LineRenderSystem renderer, ICamera camera, float alpha)
Deprecated.Line renderer. Renders proper motion- Specified by:
render
in interfaceILineRenderable
- Parameters:
renderer
-camera
-alpha
-
-
getGlType
public int getGlType()
Deprecated.- Specified by:
getGlType
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
public java.lang.String 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
public Vector3d getClosestPos(Vector3d out)
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
public Vector3d getClosestAbsolutePos(Vector3d out)
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
-
-