Package gaiasky.scenegraph
Class MilkyWay
java.lang.Object
gaiasky.scenegraph.SceneGraphNode
gaiasky.scenegraph.MilkyWay
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,IObserver
,I3DTextRenderable
,IBillboardDatasetProvider
,IFadeObject
,IRenderable
,IStatusObject
,IStarContainer
,IVisibilitySwitch
,IPosition
@Deprecated
public class MilkyWay
extends SceneGraphNode
implements I3DTextRenderable, IStatusObject, IFadeObject, IBillboardDatasetProvider, IObserver
Deprecated.
The milky way model. This is obsolete, use
BillboardDataset
instead.-
Field Summary
FieldsFields inherited from class gaiasky.scenegraph.SceneGraphNode
B31, B32, B33, B34, cc, children, computed, coordinates, copy, ct, D31, D32, D33, D34, distToCamera, F31, F32, F33, F34, forceLabel, id, labelcolor, lastStateChangeTimeMs, localizedNameIndex, localTransform, names, numChildren, octant, octantId, opacity, orientation, parent, parentName, pos, posSph, ROOT_NAME, size, translation, viewAngle, viewAngleApparent, visible
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addToRenderLists
(ICamera camera) Deprecated.Adds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.void
doneLoading
(com.badlogic.gdx.assets.AssetManager manager) Deprecated.Deprecated.Deprecated.Gets the fade in distances.Deprecated.Gets the fade out distances.Deprecated.Deprecated.float
Deprecated.Gets the text opacityvoid
Deprecated.boolean
isLabel()
Deprecated.Is it a label or another kind of text?void
Deprecated.Event notification call.void
render
(ExtSpriteBatch batch, ExtShaderProgram shader, FontRenderSystem sys, RenderingContext rc, ICamera camera) Deprecated.Label rendering.boolean
Deprecated.Tells whether the text must be rendered or not for this entityvoid
Deprecated.void
setFadein
(double[] fadein) Deprecated.void
setFadeIn
(double nearPc, double farPc) Deprecated.Sets the near and far fade in distances.void
setFadeout
(double[] fadeout) Deprecated.void
setFadeOut
(double nearPc, double farPc) Deprecated.Sets the near and far fade out distances.void
Deprecated.void
setLabelposition
(double[] labelposition) Deprecated.void
setProvider
(String provider) Deprecated.void
Deprecated.Sets the absolute size of this entityvoid
Deprecated.Sets the size of this entity in kilometresvoid
setStatus
(LoadStatus status) Deprecated.void
setTransformName
(String transformName) Deprecated.text()
Deprecated.Returns the textfloat[]
Deprecated.Returns an array with the text colour in the fashion [r, g, b, a]void
Deprecated.Executes the blending for the textvoid
textPosition
(ICamera cam, Vector3d out) Deprecated.Sets the position of this text in the out vectorfloat
Deprecated.Returns the text scale for the scale varying in the shaderfloat
textSize()
Deprecated.Returns the text sizevoid
update
(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera) Deprecated.void
update
(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera, float opacity) Deprecated.void
updateLocal
(ITimeFrameProvider time, ICamera camera) Deprecated.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 void
Deprecated.Update the local transform with the transform and the rotations/scales necessary.void
updateLocalValues
(ITimeFrameProvider time, ICamera camera) Deprecated.This function updates all the local values before the localTransform is updated.Methods inherited from class gaiasky.scenegraph.SceneGraphNode
add, add, addChild, addChild, addFocusableObjects, addName, addNodes, addToIndex, addToRender, computeFuturePosition, dispose, getAbsoluteOrientation, getAbsolutePosition, getAbsolutePosition, getAggregatedChildren, getAlpha, getChildByName, getChildByNameAndType, getChildrenByComponentType, getChildrenByType, getColor, getComponentType, getCoordinates, getCt, getDelta, getDescription, getDistToCamera, getFirstStarAncestor, getHeight, getHeight, getHeight, getHeightScale, getId, getLabelcolor, getLineCopy, getLocalizedName, 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, isCopy, isForceLabel, isForceLabel, isInRender, isInRender, isValidPosition, isVisibilityOn, isVisible, isVisible, isVisible, isVisibleGroup, isVisibleGroup, msSinceStateChange, mustAddToIndex, mustUpdatePosition, namesConcat, removeChild, removeFromIndex, removeFromRender, render2DLabel, render2DLabel, render2DLabel, render2DLabel, render3DLabel, render3DLabel, returnToPool, setColor, setColor, setComputedFlag, setCoordinates, setCt, setCt, setDescription, setForcelabel, setForceLabel, setForceLabel, setId, setLabelcolor, setLabelcolor, setLabelcolor, setName, setName, setNames, setParent, setPos, setSize, setUp, setVisible, setVisible, setVisibleGroup, shouldRender, toString, updateLocalizedName, updateLocalizedNameRecursive
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface gaiasky.render.IRenderable
getComponentType, getDistToCamera, getOpacity
-
Field Details
-
datasets
Deprecated. -
provider
Deprecated. -
gc
Deprecated.
-
-
Constructor Details
-
MilkyWay
public MilkyWay()Deprecated.
-
-
Method Details
-
initialize
public void initialize()Deprecated.- Overrides:
initialize
in classSceneGraphNode
-
doneLoading
public void doneLoading(com.badlogic.gdx.assets.AssetManager manager) Deprecated.- Overrides:
doneLoading
in classSceneGraphNode
-
update
public void update(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera, float opacity) Deprecated.- Overrides:
update
in classSceneGraphNode
-
update
Deprecated.- Overrides:
update
in classSceneGraphNode
-
updateLocal
Deprecated.Description copied from class:SceneGraphNode
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.- Overrides:
updateLocal
in classSceneGraphNode
-
addToRenderLists
Deprecated.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 classSceneGraphNode
-
updateLocalTransform
protected void updateLocalTransform()Deprecated.Update the local transform with the transform and the rotations/scales necessary. Override if your model contains more than just the position and size. -
render
public void render(ExtSpriteBatch batch, ExtShaderProgram shader, FontRenderSystem sys, RenderingContext rc, ICamera camera) Deprecated.Label rendering.- Specified by:
render
in interfaceI3DTextRenderable
- Parameters:
batch
- The sprite batchshader
- The shadersys
- The font render systemrc
- The render contextcamera
- The camera
-
setTransformName
Deprecated. -
renderText
public boolean renderText()Deprecated.Description copied from interface:I3DTextRenderable
Tells whether the text must be rendered or not for this entity- Specified by:
renderText
in interfaceI3DTextRenderable
- Returns:
- True if text must be rendered
-
setSize
Deprecated.Sets the absolute size of this entity- Overrides:
setSize
in classSceneGraphNode
- Parameters:
size
-
-
setLabelposition
public void setLabelposition(double[] labelposition) Deprecated. -
textColour
public float[] textColour()Deprecated.Description copied from interface:I3DTextRenderable
Returns an array with the text colour in the fashion [r, g, b, a]- Specified by:
textColour
in interfaceI3DTextRenderable
- Returns:
- Array with the colour
-
textSize
public float textSize()Deprecated.Description copied from interface:I3DTextRenderable
Returns the text size- Specified by:
textSize
in interfaceI3DTextRenderable
- Returns:
- The text size
-
textScale
public float textScale()Deprecated.Description copied from interface:I3DTextRenderable
Returns the text scale for the scale varying in the shader- Specified by:
textScale
in interfaceI3DTextRenderable
- Returns:
- The scale
-
textPosition
Deprecated.Description copied from interface:I3DTextRenderable
Sets the position of this text in the out vector- Specified by:
textPosition
in interfaceI3DTextRenderable
out
- The out parameter with the result
-
text
Deprecated.Description copied from interface:I3DTextRenderable
Returns the text- Specified by:
text
in interfaceI3DTextRenderable
- Returns:
- The text
-
textDepthBuffer
public void textDepthBuffer()Deprecated.Description copied from interface:I3DTextRenderable
Executes the blending for the text- Specified by:
textDepthBuffer
in interfaceI3DTextRenderable
-
isLabel
public boolean isLabel()Deprecated.Description copied from interface:I3DTextRenderable
Is it a label or another kind of text?- Specified by:
isLabel
in interfaceI3DTextRenderable
- Returns:
- Whether this is a label
-
getProvider
Deprecated. -
setProvider
Deprecated. -
setGalaxydata
Deprecated. -
setData
Deprecated. -
setSize
Deprecated.Sets the size of this entity in kilometres- Parameters:
size
- The diameter of the entity
-
updateLocalValues
Deprecated.Description copied from class:SceneGraphNode
This function updates all the local values before the localTransform is updated. Position, rotations and scale must be updated in here.- Overrides:
updateLocalValues
in classSceneGraphNode
-
getFadeIn
Deprecated.Description copied from interface:IFadeObject
Gets the fade in distances.- Specified by:
getFadeIn
in interfaceIFadeObject
- Returns:
- The fade in distances in internal units.
-
setFadein
public void setFadein(double[] fadein) Deprecated. -
setFadeIn
public void setFadeIn(double nearPc, double farPc) Deprecated.Description copied from interface:IFadeObject
Sets the near and far fade in distances.- Specified by:
setFadeIn
in interfaceIFadeObject
- Parameters:
nearPc
- Near fade in distance in parsecs.farPc
- Far fade in distance in parsecs.
-
getFadeOut
Deprecated.Description copied from interface:IFadeObject
Gets the fade out distances.- Specified by:
getFadeOut
in interfaceIFadeObject
- Returns:
- The fade out distances in internal units.
-
setFadeOut
public void setFadeOut(double nearPc, double farPc) Deprecated.Description copied from interface:IFadeObject
Sets the near and far fade out distances.- Specified by:
setFadeOut
in interfaceIFadeObject
- Parameters:
nearPc
- Near fade out distance in parsecs.farPc
- Far fade out distance in parsecs.
-
setFadeout
public void setFadeout(double[] fadeout) Deprecated. -
getTextOpacity
public float getTextOpacity()Deprecated.Description copied from interface:I3DTextRenderable
Gets the text opacity- Specified by:
getTextOpacity
in interfaceI3DTextRenderable
- Returns:
- Text opacity
-
notify
Deprecated.Description copied from interface:IObserver
Event notification call. -
getStatus
Deprecated.- Specified by:
getStatus
in interfaceIStatusObject
-
setStatus
Deprecated.- Specified by:
setStatus
in interfaceIStatusObject
-
getDatasets
Deprecated.- Specified by:
getDatasets
in interfaceIBillboardDatasetProvider
-
BillboardDataset
instead.