Class NBGalaxy
- java.lang.Object
-
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,I3DTextRenderable
,ILineRenderable
,IModelRenderable
,IQuadRenderable
,IRenderable
,IFocus
,IProperMotion
,IStarContainer
,IStarFocus
,IPosition
public class NBGalaxy extends Particle
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gaia.cu9.ari.gaiaorbit.scenegraph.Particle
Particle.ParamUpdater
-
Nested classes/interfaces inherited from class gaia.cu9.ari.gaiaorbit.scenegraph.SceneGraphNode
SceneGraphNode.RenderGroup, SceneGraphNode.TLV3, SceneGraphNode.TLV3D
-
-
Field Summary
-
Fields inherited from class gaia.cu9.ari.gaiaorbit.scenegraph.Particle
catalogSource, computedSize, fovFactor, innerRad, paramUpdater, pm, pmSph, renderOn, thdownOverFovfactor, thpointTimesFovfactor, thupOverFovfactor
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
addToRender(IRenderable renderable, SceneGraphNode.RenderGroup rg)
Adds the given renderable to the given render vgroup listprotected void
addToRenderLists(ICamera camera)
Adds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.float
getFuzzyRenderSize(ICamera camera)
protected float
labelFactor()
protected float
labelMax()
void
render(ExtShaderProgram shader, float alpha, IntMesh mesh, ICamera camera)
Billboard quad render, for planets and stars.protected void
setDerivedAttributes()
float
textScale()
Returns the text scale for the scale varying in the shaderdouble
THRESHOLD_NONE()
radius/distance limit for rendering at all.double
THRESHOLD_POINT()
radius/distance limit for rendering as point.double
THRESHOLD_QUAD()
radius/distance limit for rendering as shader.void
update(ITimeFrameProvider time, Vector3d parentTransform, ICamera camera, float opacity)
Re-implementation of update method ofCelestialBody
andSceneGraphNode
.-
Methods inherited from class gaia.cu9.ari.gaiaorbit.scenegraph.Particle
checkHitCondition, doneLoading, getCatalogSource, getClosestAbsolutePos, getClosestCol, getClosestDistToCamera, getClosestName, getClosestPos, getClosestSize, getGlType, getHip, getInnerRad, getLineWidth, getMuAlpha, getMuDelta, getRadialVelocity, getRadius, getSimpleCopy, getStarCount, getThOverFactorScl, initialize, isStar, labelSizeConcrete, render, render, renderText, setRGB, update, updateLocalValues
-
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, 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
-
-
-
-
Constructor Detail
-
NBGalaxy
public NBGalaxy(Vector3d pos, float appmag, float absmag, float colorbv, java.lang.String name, float ra, float dec, float bmag, float a26, float ba, int hrv, int i, int tt, java.lang.String mcl, long starid)
-
-
Method Detail
-
THRESHOLD_NONE
public double THRESHOLD_NONE()
Description copied from class:CelestialBody
radius/distance limit for rendering at all. If angle is smaller than this quantity, no rendering happens.- Overrides:
THRESHOLD_NONE
in classParticle
-
THRESHOLD_POINT
public double THRESHOLD_POINT()
Description copied from class:CelestialBody
radius/distance limit for rendering as point. If angle is any bigger, we render with shader.- Overrides:
THRESHOLD_POINT
in classParticle
-
THRESHOLD_QUAD
public double THRESHOLD_QUAD()
Description copied from class:CelestialBody
radius/distance limit for rendering as shader. If angle is any bigger, we render as a model.- Overrides:
THRESHOLD_QUAD
in classParticle
-
setDerivedAttributes
protected void setDerivedAttributes()
- Overrides:
setDerivedAttributes
in classParticle
-
update
public void update(ITimeFrameProvider time, Vector3d parentTransform, ICamera camera, float opacity)
Re-implementation of update method ofCelestialBody
andSceneGraphNode
.
-
addToRender
protected boolean addToRender(IRenderable renderable, SceneGraphNode.RenderGroup rg)
Description copied from class:SceneGraphNode
Adds the given renderable to the given render vgroup list- Overrides:
addToRender
in classParticle
- Parameters:
renderable
- The renderable to addrg
- The render vgroup that identifies the renderable list- Returns:
- True if added, false otherwise
-
addToRenderLists
protected void addToRenderLists(ICamera camera)
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.- Overrides:
addToRenderLists
in classParticle
-
render
public void render(ExtShaderProgram shader, float alpha, IntMesh mesh, ICamera camera)
Description copied from class:CelestialBody
Billboard quad render, for planets and stars.- Specified by:
render
in interfaceIQuadRenderable
- Overrides:
render
in classCelestialBody
-
getFuzzyRenderSize
public float getFuzzyRenderSize(ICamera camera)
- Overrides:
getFuzzyRenderSize
in classParticle
-
labelFactor
protected float labelFactor()
- Overrides:
labelFactor
in classParticle
-
textScale
public float textScale()
Description copied from interface:I3DTextRenderable
Returns the text scale for the scale varying in the shader- Specified by:
textScale
in interfaceI3DTextRenderable
- Overrides:
textScale
in classParticle
- Returns:
- The scale
-
-