Package gaiasky.scenegraph
Class NBGalaxy
java.lang.Object
gaiasky.scenegraph.SceneGraphNode
gaiasky.scenegraph.CelestialBody
gaiasky.scenegraph.Particle
gaiasky.scenegraph.NBGalaxy
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,I3DTextRenderable
,ILineRenderable
,IModelRenderable
,IQuadRenderable
,IRenderable
,IFocus
,IProperMotion
,IStarContainer
,IStarFocus
,IVisibilitySwitch
,IPosition
-
Nested Class Summary
Nested classes/interfaces inherited from class gaiasky.scenegraph.Particle
Particle.ParamUpdater
-
Field Summary
Fields inherited from class gaiasky.scenegraph.Particle
catalogSource, computedSize, fovFactor, innerRad, paramUpdater, pm, pmSph, thdownOverFovfactor, thpointTimesFovfactor, thupOverFovfactor
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
addToRender(IRenderable renderable, SceneGraphRenderer.RenderGroup rg)
Adds the given renderable to the given render group list.protected 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
protected float
labelMax()
void
render(ExtShaderProgram shader, float alpha, IntMesh mesh, ICamera camera)
Billboard quad render, for planets and stars.protected void
float
Returns the text scale for the scale varying in the shaderdouble
radius/distance limit for rendering at all.double
radius/distance limit for rendering as point.double
radius/distance limit for rendering as shader.void
update(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera, float opacity)
Re-implementation of update method ofCelestialBody
andSceneGraphNode
.Methods inherited from class gaiasky.scenegraph.Particle
checkHitCondition, doneLoading, forceUpdateLocalValues, getCatalogSource, getClosestAbsolutePos, getClosestCol, getClosestDistToCamera, getClosestName, getClosestPos, getClosestSize, getGlPrimitive, getHip, getInnerRad, getLineWidth, getMuAlpha, getMuDelta, getRadialVelocity, getRadius, getSimpleCopy, getStarCount, getThOverFactorScl, initialize, isStar, labelSizeConcrete, render, render, renderText, setRGB, update, updateLocalValues
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, 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
-
Constructor Details
-
NBGalaxy
public NBGalaxy() -
NBGalaxy
-
-
Method Details
-
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, Vector3b parentTransform, ICamera camera, float opacity)Re-implementation of update method ofCelestialBody
andSceneGraphNode
. -
addToRender
Description copied from class:SceneGraphNode
Adds the given renderable to the given render group list.- Overrides:
addToRender
in classParticle
- Parameters:
renderable
- The renderable to add.rg
- The render group that identifies the renderable list.- Returns:
- True if added, false otherwise.
-
addToRenderLists
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 classParticle
-
render
Description copied from class:CelestialBody
Billboard quad render, for planets and stars.- Specified by:
render
in interfaceIQuadRenderable
- Overrides:
render
in classCelestialBody
- Parameters:
shader
- The shader programalpha
- Opacity valuemesh
- The meshcamera
- The camera
-
getFuzzyRenderSize
- Overrides:
getFuzzyRenderSize
in classParticle
-
labelFactor
protected float labelFactor()- Overrides:
labelFactor
in classParticle
-
labelMax
protected float labelMax() -
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
-