Package gaiasky.scenegraph
Class Particle
- java.lang.Object
-
- gaiasky.scenegraph.SceneGraphNode
-
- gaiasky.scenegraph.AbstractPositionEntity
-
- gaiasky.scenegraph.CelestialBody
-
- gaiasky.scenegraph.Particle
-
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,I3DTextRenderable,ILineRenderable,IModelRenderable,IQuadRenderable,IRenderable,IFocus,IProperMotion,IStarContainer,IStarFocus,IPosition
@Deprecated public class Particle extends CelestialBody implements IStarFocus, ILineRenderable
Deprecated.Only the Sun uses this via the Star subclass. Move to star group.A single point particle.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classParticle.ParamUpdaterDeprecated.-
Nested classes/interfaces inherited from class gaiasky.scenegraph.SceneGraphNode
SceneGraphNode.RenderGroup, SceneGraphNode.TLV3, SceneGraphNode.TLV3D
-
-
Field Summary
Fields Modifier and Type Field Description bytecatalogSourceDeprecated.Source of this star: -1: Unknown 1: Gaia 2: Hipparcos (HYG) 3: TychodoublecomputedSizeDeprecated.protected static floatfovFactorDeprecated.protected static floatinnerRadDeprecated.protected static Particle.ParamUpdaterparamUpdaterDeprecated.com.badlogic.gdx.math.Vector3pmDeprecated.Proper motion in cartesian coordinates [U/yr]com.badlogic.gdx.math.Vector3pmSphDeprecated.MuAlpha [mas/yr], Mudelta [mas/yr], radvel [km/s]static booleanrenderOnDeprecated.Must be updated every cycleprotected static floatthdownOverFovfactorDeprecated.protected static floatthpointTimesFovfactorDeprecated.protected static floatthupOverFovfactorDeprecated.-
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, namekey, names, 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[] names, float ra, float dec, long starid)Deprecated.Particle(Vector3d pos, float appmag, float absmag, float colorbv, java.lang.String[] names, 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[] names, float ra, float dec, long starid)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected booleanaddToRender(IRenderable renderable, SceneGraphNode.RenderGroup rg)Deprecated.Adds the given renderable to the given render group listprotected 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 booleancheckHitCondition()Deprecated.voiddoneLoading(com.badlogic.gdx.assets.AssetManager manager)Deprecated.intgetCatalogSource()Deprecated.Gets the catalog source of this star.Vector3dgetClosestAbsolutePos(Vector3d out)Deprecated.float[]getClosestCol()Deprecated.Returns the color of the closest stardoublegetClosestDistToCamera()Deprecated.Same asIFocus.getDistToCamera()java.lang.StringgetClosestName()Deprecated.Same asIFocus.getName()Vector3dgetClosestPos(Vector3d out)Deprecated.Returns the position of the closest star in camera coordinatesdoublegetClosestSize()Deprecated.Returns the size of the closest starfloatgetFuzzyRenderSize(ICamera camera)Deprecated.intgetGlPrimitive()Deprecated.intgetHip()Deprecated.Returns the HIP number of this star, or negative if it has no HIP numberfloatgetInnerRad()Deprecated.floatgetLineWidth()Deprecated.doublegetMuAlpha()Deprecated.Returns the mu alpha in mas/yrdoublegetMuDelta()Deprecated.Returns the mu delta in mas/yrdoublegetRadialVelocity()Deprecated.Returns the radial velocity in km/sdoublegetRadius()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 childrenintgetStarCount()Deprecated.protected floatgetThOverFactorScl()Deprecated.voidinitialize()Deprecated.booleanisStar()Deprecated.protected floatlabelFactor()Deprecated.protected floatlabelMax()Deprecated.floatlabelSizeConcrete()Deprecated.voidrender(LineRenderSystem renderer, ICamera camera, float alpha)Deprecated.Line renderer.voidrender(IntModelBatch modelBatch, float alpha, double t, RenderingContext rc)Deprecated.Model renderingbooleanrenderText()Deprecated.Tells whether the text must be rendered or not for this entityprotected voidsetDerivedAttributes()Deprecated.protected voidsetRGB(float bv)Deprecated.Sets the colorfloattextScale()Deprecated.Returns the text scale for the scale varying in the shaderdoubleTHRESHOLD_NONE()Deprecated.radius/distance limit for rendering at all.doubleTHRESHOLD_POINT()Deprecated.radius/distance limit for rendering as point.doubleTHRESHOLD_QUAD()Deprecated.radius/distance limit for rendering as shader.voidupdate(ITimeFrameProvider time, Vector3d parentTransform, ICamera camera)Deprecated.Overrides the update adding the magnitude limit thingy.voidupdate(ITimeFrameProvider time, Vector3d parentTransform, ICamera camera, float opacity)Deprecated.Re-implementation of update method ofCelestialBodyandSceneGraphNode.voidupdateLocalValues(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, 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, setLabelcolor, setLabelcolor, setSize, updateLocal
-
Methods inherited from class gaiasky.scenegraph.SceneGraphNode
add, add, addChild, addChild, addName, addNodes, addToIndex, dispose, getAggregatedChildren, getChildByName, getChildByNameAndType, getChildrenByType, getComponentType, getCt, getFirstStarAncestor, getId, getLineCopy, getName, getNames, getNode, getNode, getOpacity, getOrientation, getRoot, getSceneGraphDepth, getVelocity, hasName, hasName, insert, insert, isInRender, isInRender, isVisibilityOn, mustAddToIndex, namesConcat, removeChild, removeFromIndex, removeFromRender, returnToPool, setComputedFlag, setCt, setCt, setId, setName, setNamekey, setNames, 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 gaiasky.scenegraph.IFocus
addHit, addHit, getAbsmag, getAbsolutePosition, getAbsolutePosition, getAlpha, getAppmag, getCandidateId, getCandidateName, getCandidateViewAngleApparent, 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, withinMagLimit
-
Methods inherited from interface gaiasky.render.IRenderable
getComponentType, getDistToCamera, getOpacity
-
Methods inherited from interface gaiasky.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[] 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(Vector3d pos, float appmag, float absmag, float colorbv, java.lang.String[] names, 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[] names, float ra, float dec, long starid)
Deprecated.
-
-
Method Detail
-
THRESHOLD_NONE
public double THRESHOLD_NONE()
Deprecated.Description copied from class:CelestialBodyradius/distance limit for rendering at all. If angle is smaller than this quantity, no rendering happens.- Specified by:
THRESHOLD_NONEin classCelestialBody
-
THRESHOLD_POINT
public double THRESHOLD_POINT()
Deprecated.Description copied from class:CelestialBodyradius/distance limit for rendering as point. If angle is any bigger, we render with shader.- Specified by:
THRESHOLD_POINTin classCelestialBody
-
THRESHOLD_QUAD
public double THRESHOLD_QUAD()
Deprecated.Description copied from class:CelestialBodyradius/distance limit for rendering as shader. If angle is any bigger, we render as a model.- Specified by:
THRESHOLD_QUADin classCelestialBody
-
initialize
public void initialize()
Deprecated.- Overrides:
initializein classSceneGraphNode
-
setDerivedAttributes
protected void setDerivedAttributes()
Deprecated.
-
update
public void update(ITimeFrameProvider time, Vector3d parentTransform, ICamera camera)
Deprecated.Description copied from class:CelestialBodyOverrides the update adding the magnitude limit thingy.- Overrides:
updatein classCelestialBody
-
update
public void update(ITimeFrameProvider time, Vector3d parentTransform, ICamera camera, float opacity)
Deprecated.Re-implementation of update method ofCelestialBodyandSceneGraphNode.- Overrides:
updatein classSceneGraphNode
-
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.- Specified by:
addToRenderListsin classAbstractPositionEntity
-
addToRender
protected boolean addToRender(IRenderable renderable, SceneGraphNode.RenderGroup rg)
Deprecated.Description copied from class:SceneGraphNodeAdds the given renderable to the given render group list- Overrides:
addToRenderin classSceneGraphNode- Parameters:
renderable- The renderable to addrg- 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)
Deprecated.Model rendering- Specified by:
renderin interfaceIModelRenderable
-
setRGB
protected void setRGB(float bv)
Deprecated.Sets the color- Parameters:
bv- B-V color index
-
getInnerRad
public float getInnerRad()
Deprecated.- Specified by:
getInnerRadin classCelestialBody
-
getRadius
public double getRadius()
Deprecated.Description copied from class:AbstractPositionEntityReturns the radius in internal units- Specified by:
getRadiusin interfaceIFocus- Overrides:
getRadiusin classAbstractPositionEntity- Returns:
- The radius of the object, in internal units
-
isStar
public boolean isStar()
Deprecated.- Overrides:
isStarin classCelestialBody
-
renderText
public boolean renderText()
Deprecated.Description copied from interface:I3DTextRenderableTells whether the text must be rendered or not for this entity- Specified by:
renderTextin interfaceI3DTextRenderable- Overrides:
renderTextin classCelestialBody- Returns:
- True if text must be rendered
-
labelSizeConcrete
public float labelSizeConcrete()
Deprecated.- Overrides:
labelSizeConcretein classCelestialBody
-
textScale
public float textScale()
Deprecated.Description copied from interface:I3DTextRenderableReturns the text scale for the scale varying in the shader- Specified by:
textScalein interfaceI3DTextRenderable- Overrides:
textScalein classCelestialBody- Returns:
- The scale
-
labelFactor
protected float labelFactor()
Deprecated.- Specified by:
labelFactorin classCelestialBody
-
labelMax
protected float labelMax()
Deprecated.- Specified by:
labelMaxin classCelestialBody
-
getFuzzyRenderSize
public float getFuzzyRenderSize(ICamera camera)
Deprecated.- Overrides:
getFuzzyRenderSizein classCelestialBody
-
doneLoading
public void doneLoading(com.badlogic.gdx.assets.AssetManager manager)
Deprecated.- Overrides:
doneLoadingin classAbstractPositionEntity
-
updateLocalValues
public void updateLocalValues(ITimeFrameProvider time, ICamera camera)
Deprecated.Description copied from class:AbstractPositionEntityThis function updates all the local values before the localTransform is updated. Position, rotations and scale must be updated in here.- Specified by:
updateLocalValuesin classAbstractPositionEntity
-
getStarCount
public int getStarCount()
Deprecated.- Specified by:
getStarCountin interfaceIStarContainer- Overrides:
getStarCountin classSceneGraphNode
-
getSimpleCopy
public <T extends SceneGraphNode> T getSimpleCopy()
Deprecated.Description copied from class:AbstractPositionEntityGets a copy of this object but does not copy its parent or children- Overrides:
getSimpleCopyin classCelestialBody- Returns:
- The copied object
-
render
public void render(LineRenderSystem renderer, ICamera camera, float alpha)
Deprecated.Line renderer. Renders proper motion- Specified by:
renderin interfaceILineRenderable- Parameters:
renderer-camera-alpha-
-
getGlPrimitive
public int getGlPrimitive()
Deprecated.- Specified by:
getGlPrimitivein interfaceILineRenderable
-
getThOverFactorScl
protected float getThOverFactorScl()
Deprecated.- Overrides:
getThOverFactorSclin classCelestialBody
-
checkHitCondition
protected boolean checkHitCondition()
Deprecated.- Overrides:
checkHitConditionin classCelestialBody
-
getCatalogSource
public int getCatalogSource()
Deprecated.Description copied from interface:IStarFocusGets the catalog source of this star. Possible values are:- -1: Unknown
- 1: Gaia
- 2: Hipparcos (HYG)
- 3: Tycho
- 4: Other
- Specified by:
getCatalogSourcein interfaceIStarFocus- Returns:
- The catalog source number
-
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- Returns:
- The HIP number
-
getClosestDistToCamera
public double getClosestDistToCamera()
Deprecated.Description copied from interface:IFocusSame asIFocus.getDistToCamera()- Specified by:
getClosestDistToCamerain interfaceIFocus- Specified by:
getClosestDistToCamerain interfaceIStarFocus- Overrides:
getClosestDistToCamerain classCelestialBody- Returns:
- The distance to the camera in internal units
-
getClosestName
public java.lang.String getClosestName()
Deprecated.Description copied from interface:IFocusSame asIFocus.getName()- Specified by:
getClosestNamein interfaceIFocus- Specified by:
getClosestNamein interfaceIStarFocus- Overrides:
getClosestNamein classCelestialBody- Returns:
- The name
-
getClosestPos
public Vector3d getClosestPos(Vector3d out)
Deprecated.Description copied from interface:IStarFocusReturns the position of the closest star in camera coordinates- Specified by:
getClosestPosin 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:
getClosestAbsolutePosin interfaceIFocus- Specified by:
getClosestAbsolutePosin interfaceIStarFocus- Overrides:
getClosestAbsolutePosin 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:IStarFocusReturns the color of the closest star- Specified by:
getClosestColin interfaceIStarFocus- Returns:
- The color in rgb
-
getClosestSize
public double getClosestSize()
Deprecated.Description copied from interface:IStarFocusReturns the size of the closest star- Specified by:
getClosestSizein interfaceIStarFocus- Returns:
- The size of the closest star
-
getMuAlpha
public double getMuAlpha()
Deprecated.Description copied from interface:IProperMotionReturns the mu alpha in mas/yr- Specified by:
getMuAlphain interfaceIProperMotion- Returns:
- The mu alpha in mas/yr
-
getMuDelta
public double getMuDelta()
Deprecated.Description copied from interface:IProperMotionReturns the mu delta in mas/yr- Specified by:
getMuDeltain interfaceIProperMotion- Returns:
- The mu delta in mas/yr
-
getRadialVelocity
public double getRadialVelocity()
Deprecated.Description copied from interface:IProperMotionReturns the radial velocity in km/s- Specified by:
getRadialVelocityin interfaceIProperMotion- Returns:
- The radial velocity in km/s
-
getLineWidth
public float getLineWidth()
Deprecated.- Specified by:
getLineWidthin interfaceILineRenderable
-
-