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, thupOverFovfactorFields inherited from class gaiasky.scenegraph.CelestialBody
absmag, appmag, ccPale, ccTransit, colorbv, compalpha, coordinatesTimeOverflow, rc, TH_OVER_FACTOR, wikinameFields 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, sg, size, translation, viewAngle, viewAngleApparent, visible -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddToRender(IRenderable renderable, SceneGraphRenderer.RenderGroup rg)Adds the given renderable to the given render group listprotected voidaddToRenderLists(ICamera camera)Adds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.floatgetFuzzyRenderSize(ICamera camera)protected floatprotected floatlabelMax()voidrender(ExtShaderProgram shader, float alpha, IntMesh mesh, ICamera camera)Billboard quad render, for planets and stars.protected voidfloatReturns the text scale for the scale varying in the shaderdoubleradius/distance limit for rendering at all.doubleradius/distance limit for rendering as point.doubleradius/distance limit for rendering as shader.voidupdate(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera, float opacity)Re-implementation of update method ofCelestialBodyandSceneGraphNode.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, updateLocalValuesMethods 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, textSizeMethods 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, 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, updateNamesRecMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, makeFocusMethods inherited from interface gaiasky.render.IRenderable
getComponentType, getDistToCamera, getOpacityMethods 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:CelestialBodyradius/distance limit for rendering at all. If angle is smaller than this quantity, no rendering happens.- Overrides:
THRESHOLD_NONEin classParticle
-
THRESHOLD_POINT
public double THRESHOLD_POINT()Description copied from class:CelestialBodyradius/distance limit for rendering as point. If angle is any bigger, we render with shader.- Overrides:
THRESHOLD_POINTin classParticle
-
THRESHOLD_QUAD
public double THRESHOLD_QUAD()Description copied from class:CelestialBodyradius/distance limit for rendering as shader. If angle is any bigger, we render as a model.- Overrides:
THRESHOLD_QUADin classParticle
-
setDerivedAttributes
protected void setDerivedAttributes()- Overrides:
setDerivedAttributesin classParticle
-
update
public void update(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera, float opacity)Re-implementation of update method ofCelestialBodyandSceneGraphNode. -
addToRender
Description copied from class:SceneGraphNodeAdds the given renderable to the given render group list- Overrides:
addToRenderin classParticle- Parameters:
renderable- The renderable to addrg- The render group that identifies the renderable list- Returns:
- True if added, false otherwise
-
addToRenderLists
Description copied from class:SceneGraphNodeAdds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.- Overrides:
addToRenderListsin classParticle
-
render
Description copied from class:CelestialBodyBillboard quad render, for planets and stars.- Specified by:
renderin interfaceIQuadRenderable- Overrides:
renderin classCelestialBody- Parameters:
shader- The shader programalpha- Opacity valuemesh- The meshcamera- The camera
-
getFuzzyRenderSize
- Overrides:
getFuzzyRenderSizein classParticle
-
labelFactor
protected float labelFactor()- Overrides:
labelFactorin classParticle
-
labelMax
protected float labelMax() -
textScale
public float textScale()Description copied from interface:I3DTextRenderableReturns the text scale for the scale varying in the shader- Specified by:
textScalein interfaceI3DTextRenderable- Overrides:
textScalein classParticle- Returns:
- The scale
-