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,IPosition
- Direct Known Subclasses:
EclipticOrbit,HeliotropicOrbit
public class Orbit extends Polyline
-
Field Summary
Fields Modifier and Type Field Description doublealphaprotected CelestialBodybodyprotected Vector3dcurrbooleanelemsInGpuOrbital elements in gpu, in case there is no bodyMatrix4dlocalTransformDprotected java.lang.DoublemultiplierbooleannewmethodOrbitComponentocprotected booleanonlybodyfloat[]pointColorPoint colorfloatpointSizePoint sizeprotected Vector3dprevprotected java.lang.Stringproviderprotected java.lang.Class<? extends IOrbitDataProvider>providerClassbooleanrefreshingRefreshing stateprotected static floatSHADER_MODEL_OVERLAP_FACTORSpecial overlap factorprotected static floatSOLID_ANGLE_THRESHOLDThreshold solid angleMatrix4dtransformFunctionFields inherited from class gaiasky.scenegraph.VertsObject
additive, blend, closedLoop, count, depth, glPrimitive, inGpu, offset, pointCloudData, primitiveSize, renderGroupFields inherited from class gaiasky.scenegraph.SceneGraphNode
aux3d1, aux3d2, aux3d3, aux3d4, aux3f1, aux3f2, aux3f3, aux3f4, cc, children, computed, coordinates, copy, ct, distToCamera, id, localTransform, namekey, names, numChildren, octant, octantId, opacity, orientation, parent, parentkey, parentName, pos, posSph, ROOT_NAME, sg, size, translation, viewAngle, viewAngleApparent -
Constructor Summary
Constructors Constructor Description Orbit() -
Method Summary
Modifier and Type Method Description protected 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()java.lang.StringgetProvider()voidinitialize()voidinitOrbitMetadata()booleanmustAddToIndex()Whether to add this node to the indexvoidrefreshOrbit(boolean force)voidrender(LineRenderSystem renderer, ICamera camera, float alpha)voidsetBody(CelestialBody body)voidsetMultiplier(java.lang.Double multiplier)voidsetNewmethod(java.lang.Boolean newmethod)voidsetOnlybody(java.lang.Boolean onlybody)voidsetOrbit(OrbitComponent oc)voidsetPointCloudData(PointCloudData pcd)voidsetPointcolor(double[] color)voidsetPointsize(java.lang.Double pointsize)voidsetPointsize(java.lang.Long pointsize)voidsetProvider(java.lang.String provider)voidsetSize(java.lang.Float size)Sets the absolute size of this entitystatic voidsetSolidAngleThreshold(float angleDeg)voidsetTransformFunction(java.lang.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(java.time.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, getChildrenByType, getComponentType, getCt, getDelta, 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, hasName, hasName, insert, insert, isCopy, isInRender, isInRender, isValidPosition, isVisibilityOn, mustUpdatePosition, namesConcat, removeChild, removeFromIndex, removeFromRender, render2DLabel, render2DLabel, render2DLabel, render2DLabel, render3DLabel, render3DLabel, returnToPool, setColor, setColor, setComputedFlag, setCoordinates, setCt, setCt, setId, setLabelcolor, setLabelcolor, setName, setNamekey, setNames, setParent, setParentkey, setSize, setSize, setUp, 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
protected java.lang.String provider -
multiplier
protected java.lang.Double 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
protected void updateLocalTransform(java.time.Instant date) -
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
public void setSize(java.lang.Float size)Sets the absolute size of this entity- Parameters:
size-
-
setPointsize
public void setPointsize(java.lang.Long pointsize) -
setPointsize
public void setPointsize(java.lang.Double pointsize) -
setPointcolor
public void setPointcolor(double[] color) -
getProvider
public java.lang.String getProvider() -
setProvider
public void setProvider(java.lang.String provider) -
setOrbit
-
setTransformFunction
public void setTransformFunction(java.lang.String transformFunction) -
setMultiplier
public void setMultiplier(java.lang.Double multiplier) -
setBody
-
setOnlybody
public void setOnlybody(java.lang.Boolean onlybody) -
setNewmethod
public void setNewmethod(java.lang.Boolean newmethod) -
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.
-