Package gaiasky.scenegraph
Class Orbit
java.lang.Object
gaiasky.scenegraph.SceneGraphNode
gaiasky.scenegraph.VertsObject
gaiasky.scenegraph.Polyline
gaiasky.scenegraph.Orbit
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,IGPUVertsRenderable,ILineRenderable,IRenderable,IStarContainer,IVisibilitySwitch,IPosition
- Direct Known Subclasses:
EclipticOrbit,HeliotropicOrbit
A polyline that represents a closed orbit. Contains a reference to the body and some other goodies
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleprotected CelestialBodyprotected Vector3dbooleanOrbital elements in gpu, in case there is no bodyprotected Doublebooleanprotected booleanfloat[]Point colorfloatPoint sizeprotected Vector3dprotected Stringprotected Class<? extends IOrbitDataProvider>booleanRefreshing stateprotected static floatSpecial overlap factorprotected static floatThreshold solid angleFields inherited from class gaiasky.scenegraph.VertsObject
additive, blend, closedLoop, count, depth, glPrimitive, inGpu, offset, pointCloudData, primitiveSize, renderGroupFields 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 voidaddToRenderLists(ICamera camera)Adds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.voiddoneLoading(com.badlogic.gdx.assets.AssetManager manager)doublegetAlpha()voidvoidbooleanWhether to add this node to the indexvoidrefreshOrbit(boolean force)voidrender(LineRenderSystem renderer, ICamera camera, float alpha)voidsetBody(CelestialBody body)voidsetMultiplier(Double multiplier)voidsetNewmethod(Boolean newMethod)voidsetOnlybody(Boolean onlyBody)voidsetOrbit(OrbitComponent oc)voidvoidsetPointcolor(double[] color)voidsetPointsize(Double pointsize)voidsetPointsize(Long pointsize)voidsetProvider(String provider)voidSets the absolute size of this entitystatic voidsetSolidAngleThreshold(float angleDeg)voidsetTransformFunction(String transformFunction)voidupdateLocal(ITimeFrameProvider time, ICamera camera)Updates the transform matrix with the transformations that will apply to the children and the local transform matrix with the transformations that will apply only to this object.protected voidupdateLocalTransform(Instant date)voidupdateLocalValues(ITimeFrameProvider time, ICamera camera)This function updates all the local values before the localTransform is updated.Methods inherited from class gaiasky.scenegraph.Polyline
getLineWidth, setArrowCapMethods inherited from class gaiasky.scenegraph.VertsObject
addPoint, addPoints, blend, clear, depth, getColor, getCount, getGlPrimitive, getLocalTransform, getOffset, getParent, getPointCloud, getPrimitiveSize, inGpu, isClosedLoop, isEmpty, isLine, isPoint, markForUpdate, setAdditive, setBlend, setClosedLoop, setCount, setDepth, setGlPrimitive, setInGpu, setOffset, setPoints, setPrimitiveLineLoop, setPrimitiveLines, setPrimitiveLineStip, setPrimitivePoints, setPrimitiveSizeMethods inherited from class gaiasky.scenegraph.SceneGraphNode
add, add, addChild, addChild, addFocusableObjects, addName, addNodes, addToIndex, addToRender, computeFuturePosition, dispose, getAbsoluteOrientation, getAbsolutePosition, getAbsolutePosition, getAggregatedChildren, getChildByName, getChildByNameAndType, getChildrenByComponentType, getChildrenByType, 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, getRadius, getRoot, getSceneGraphDepth, getSimpleCopy, getSize, getStarCount, getUnrotatedPos, getVelocity, getViewAngle, getViewAngleApparent, getVisibilityOpacityFactor, hasCt, hasName, hasName, insert, insert, isCopy, isInRender, isInRender, isValidPosition, isVisibilityOn, isVisible, isVisible, isVisibleGroup, msSinceStateChange, 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, setSize, setUp, setVisible, setVisibleGroup, shouldRender, toString, update, update, updateNames, updateNamesRecMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gaiasky.render.ILineRenderable
getGlPrimitiveMethods inherited from interface gaiasky.render.IRenderable
getComponentType, getDistToCamera, getOpacity
-
Field Details
-
SOLID_ANGLE_THRESHOLD
protected static float SOLID_ANGLE_THRESHOLDThreshold solid angle -
SHADER_MODEL_OVERLAP_FACTOR
protected static final float SHADER_MODEL_OVERLAP_FACTORSpecial overlap factor- See Also:
- Constant Field Values
-
body
-
prev
-
curr
-
alpha
public double alpha -
localTransformD
-
transformFunction
-
provider
-
multiplier
-
providerClass
-
oc
-
onlyBody
protected boolean onlyBody -
newMethod
public boolean newMethod -
refreshing
public boolean refreshingRefreshing state -
elemsInGpu
public boolean elemsInGpuOrbital elements in gpu, in case there is no body -
pointColor
public float[] pointColorPoint color -
pointSize
public float pointSizePoint size
-
-
Constructor Details
-
Orbit
public Orbit()
-
-
Method Details
-
setSolidAngleThreshold
public static void setSolidAngleThreshold(float angleDeg) -
initialize
public void initialize()- Overrides:
initializein classSceneGraphNode
-
doneLoading
public void doneLoading(com.badlogic.gdx.assets.AssetManager manager)- Overrides:
doneLoadingin classSceneGraphNode
-
setPointCloudData
- Overrides:
setPointCloudDatain classVertsObject
-
initOrbitMetadata
public void initOrbitMetadata() -
updateLocal
Description copied from class:SceneGraphNodeUpdates the transform matrix with the transformations that will apply to the children and the local transform matrix with the transformations that will apply only to this object.- Overrides:
updateLocalin classSceneGraphNode
-
updateLocalTransform
-
updateLocalValues
Description copied from class:SceneGraphNodeThis function updates all the local values before the localTransform is updated. Position, rotations and scale must be updated in here.- Overrides:
updateLocalValuesin classVertsObject
-
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 classPolyline
-
render
- Specified by:
renderin interfaceILineRenderable- Overrides:
renderin classPolyline
-
refreshOrbit
public void refreshOrbit(boolean force) -
setSize
Sets the absolute size of this entity- Parameters:
size-
-
setPointsize
-
setPointsize
-
setPointcolor
public void setPointcolor(double[] color) -
getProvider
-
setProvider
-
setOrbit
-
setTransformFunction
-
setMultiplier
-
setBody
-
setOnlybody
-
setNewmethod
-
getAlpha
public double getAlpha()- Specified by:
getAlphain interfaceIGPUVertsRenderable- Overrides:
getAlphain classVertsObject
-
mustAddToIndex
public boolean mustAddToIndex()Description copied from class:SceneGraphNodeWhether to add this node to the index- Overrides:
mustAddToIndexin classSceneGraphNode- Returns:
- True if the node needs to be added to the index.
-