Package gaiasky.scenegraph
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 gaiasky.scenegraph.Particle
Particle.ParamUpdater
-
Nested classes/interfaces inherited from class gaiasky.scenegraph.SceneGraphNode
SceneGraphNode.RenderGroup, SceneGraphNode.TLV3, SceneGraphNode.TLV3D
-
-
Field Summary
-
Fields inherited from class gaiasky.scenegraph.Particle
catalogSource, computedSize, fovFactor, innerRad, paramUpdater, pm, pmSph, renderOn, thdownOverFovfactor, thpointTimesFovfactor, thupOverFovfactor
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanaddToRender(IRenderable renderable, SceneGraphNode.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 floatlabelFactor()protected floatlabelMax()voidrender(ExtShaderProgram shader, float alpha, IntMesh mesh, ICamera camera)Billboard quad render, for planets and stars.protected voidsetDerivedAttributes()floattextScale()Returns the text scale for the scale varying in the shaderdoubleTHRESHOLD_NONE()radius/distance limit for rendering at all.doubleTHRESHOLD_POINT()radius/distance limit for rendering as point.doubleTHRESHOLD_QUAD()radius/distance limit for rendering as shader.voidupdate(ITimeFrameProvider time, Vector3d parentTransform, ICamera camera, float opacity)Re-implementation of update method ofCelestialBodyandSceneGraphNode.-
Methods inherited from class gaiasky.scenegraph.Particle
checkHitCondition, doneLoading, 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, hasAtmosphere, isActive, isCoordinatesTimeOverflow, isLabel, isValidPosition, makeFocus, 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
-
-
-
-
Constructor Detail
-
NBGalaxy
public NBGalaxy()
-
NBGalaxy
public NBGalaxy(Vector3d pos, float appmag, float absmag, float colorbv, java.lang.String[] names, 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: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, Vector3d parentTransform, ICamera camera, float opacity)
Re-implementation of update method ofCelestialBodyandSceneGraphNode.
-
addToRender
protected boolean addToRender(IRenderable renderable, SceneGraphNode.RenderGroup rg)
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
protected void addToRenderLists(ICamera camera)
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.- Overrides:
addToRenderListsin classParticle
-
render
public void render(ExtShaderProgram shader, float alpha, IntMesh mesh, ICamera camera)
Description copied from class:CelestialBodyBillboard quad render, for planets and stars.- Specified by:
renderin interfaceIQuadRenderable- Overrides:
renderin classCelestialBody
-
getFuzzyRenderSize
public float getFuzzyRenderSize(ICamera camera)
- Overrides:
getFuzzyRenderSizein classParticle
-
labelFactor
protected float labelFactor()
- Overrides:
labelFactorin classParticle
-
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
-
-