Class FadeNode
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.scenegraph.SceneGraphNode
-
- gaia.cu9.ari.gaiaorbit.scenegraph.AbstractPositionEntity
-
- gaia.cu9.ari.gaiaorbit.scenegraph.FadeNode
-
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,IStarContainer
,IPosition
- Direct Known Subclasses:
AbstractOctreeWrapper
,BackgroundModel
,Constellation
,MeshObject
,ParticleGroup
,Text2D
public class FadeNode extends AbstractPositionEntity
Node that offers fade-in and fade-out capabilities.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gaia.cu9.ari.gaiaorbit.scenegraph.SceneGraphNode
SceneGraphNode.RenderGroup, SceneGraphNode.TLV3, SceneGraphNode.TLV3D
-
-
Field Summary
Fields Modifier and Type Field Description protected CatalogInfo
catalogInfo
Information on the catalog this fade node represents (particle vgroup, octree, etc.)protected boolean
highlighted
Is it highlighted?protected int
hlci
Highlight color indexprotected static float[][]
hlColor
Highlight colorprotected static float[]
hlColorFloat
protected static int
hli
General track of highlight indexboolean
inSceneGraph
Is the node already in the scene graph?protected float[]
labelColour
Colour of labelprotected Vector3d
labelPosition
Position of label-
Fields inherited from class gaia.cu9.ari.gaiaorbit.scenegraph.AbstractPositionEntity
cc, coordinates, copy, distToCamera, octant, octantId, pos, posSph, size, viewAngle, viewAngleApparent
-
Fields inherited from class gaia.cu9.ari.gaiaorbit.scenegraph.SceneGraphNode
aux3d1, aux3d2, aux3d3, aux3d4, aux3f1, aux3f2, aux3f3, aux3f4, children, computed, ct, id, localTransform, name, namekey, numChildren, opacity, orientation, parent, parentkey, parentName, ROOT_NAME, sg, translation
-
-
Constructor Summary
Constructors Constructor Description FadeNode()
FadeNode(java.lang.String name, SceneGraphNode parent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addToRenderLists(ICamera camera)
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)
protected float
getBaseOpacity()
CatalogInfo
getCatalogInfo()
void
highlight(boolean hl)
void
highlight(boolean hl, int colorIndex)
boolean
isHighlighted()
boolean
isVisible()
static int
nextHightlightColorIndex()
void
setCataloginfo(java.util.Map<java.lang.String,java.lang.String> map)
void
setCatalogInfo(CatalogInfo info)
void
setFadein(double[] fadein)
void
setFadeout(double[] fadeout)
void
setLabelcolor(double[] labelcolor)
Sets the label colorvoid
setLabelposition(double[] labelposition)
Sets the position of the label, in parsecs and in the internal reference framevoid
setPosition(double[] pos)
void
setPositionobjectname(java.lang.String po)
void
setUp()
void
setVisible(boolean visible)
void
update(ITimeFrameProvider time, Vector3d parentTransform, ICamera camera, float opacity)
void
updateLocal(ITimeFrameProvider time, ICamera camera)
Updates the local transform matrix.void
updateLocalValues(ITimeFrameProvider time, ICamera camera)
This function updates all the local values before the localTransform is updated.-
Methods inherited from class gaia.cu9.ari.gaiaorbit.scenegraph.AbstractPositionEntity
computeFuturePosition, getAbsoluteOrientation, getAbsolutePosition, getAbsolutePosition, getAlpha, getDelta, getDistToCamera, getHeight, getHeight, getHeight, getHeightScale, getNext, getOctant, getPos, getPosition, getPosition, getPosSph, getPredictedPosition, getRadius, getSimpleCopy, getSize, getViewAngle, getViewAngleApparent, isCopy, mustUpdatePosition, render2DLabel, render2DLabel, render2DLabel, render2DLabel, render3DLabel, setColor, setColor, setCoordinates, setSize, setSize
-
Methods inherited from class gaia.cu9.ari.gaiaorbit.scenegraph.SceneGraphNode
add, add, addChild, addChild, addFocusableObjects, addNodes, addToIndex, addToRender, dispose, getAggregatedChildren, getChildByName, getChildByNameAndType, getChildrenByType, getComponentType, getCt, getFirstStarAncestor, getId, getLineCopy, getName, getNode, getNode, getOpacity, getOrientation, getRoot, getSceneGraphDepth, getStarCount, getVelocity, initialize, insert, isInRender, isInRender, isValidPosition, isVisibilityOn, mustAddToIndex, removeChild, removeFromIndex, removeFromRender, returnToPool, setComputedFlag, setCt, setCt, setId, setName, setNamekey, setParent, setParentkey, toString, update, updateNames, updateNamesRec
-
-
-
-
Field Detail
-
labelPosition
protected Vector3d labelPosition
Position of label
-
labelColour
protected float[] labelColour
Colour of label
-
inSceneGraph
public boolean inSceneGraph
Is the node already in the scene graph?
-
catalogInfo
protected CatalogInfo catalogInfo
Information on the catalog this fade node represents (particle vgroup, octree, etc.)
-
hli
protected static int hli
General track of highlight index
-
highlighted
protected boolean highlighted
Is it highlighted?
-
hlci
protected int hlci
Highlight color index
-
hlColor
protected static float[][] hlColor
Highlight color
-
hlColorFloat
protected static float[] hlColorFloat
-
-
Constructor Detail
-
FadeNode
public FadeNode()
-
FadeNode
public FadeNode(java.lang.String name, SceneGraphNode parent)
-
-
Method Detail
-
doneLoading
public void doneLoading(com.badlogic.gdx.assets.AssetManager manager)
- Overrides:
doneLoading
in classAbstractPositionEntity
-
update
public void update(ITimeFrameProvider time, Vector3d parentTransform, ICamera camera, float opacity)
- Overrides:
update
in classSceneGraphNode
-
updateLocal
public void updateLocal(ITimeFrameProvider time, ICamera camera)
Description copied from class:AbstractPositionEntity
Updates the local transform matrix.- Overrides:
updateLocal
in classAbstractPositionEntity
-
getBaseOpacity
protected float getBaseOpacity()
-
addToRenderLists
protected void addToRenderLists(ICamera camera)
Description copied from class:AbstractPositionEntity
Adds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.- Specified by:
addToRenderLists
in classAbstractPositionEntity
-
updateLocalValues
public void updateLocalValues(ITimeFrameProvider time, ICamera camera)
Description copied from class:AbstractPositionEntity
This function updates all the local values before the localTransform is updated. Position, rotations and scale must be updated in here.- Specified by:
updateLocalValues
in classAbstractPositionEntity
-
setFadein
public void setFadein(double[] fadein)
-
setFadeout
public void setFadeout(double[] fadeout)
-
setPosition
public void setPosition(double[] pos)
-
setLabelposition
public void setLabelposition(double[] labelposition)
Sets the position of the label, in parsecs and in the internal reference frame- Parameters:
labelposition
-
-
setLabelcolor
public void setLabelcolor(double[] labelcolor)
Sets the label color- Parameters:
labelcolor
-
-
setPositionobjectname
public void setPositionobjectname(java.lang.String po)
-
setVisible
public void setVisible(boolean visible)
-
isVisible
public boolean isVisible()
-
setCatalogInfo
public void setCatalogInfo(CatalogInfo info)
-
getCatalogInfo
public CatalogInfo getCatalogInfo()
-
setCataloginfo
public void setCataloginfo(java.util.Map<java.lang.String,java.lang.String> map)
-
nextHightlightColorIndex
public static int nextHightlightColorIndex()
-
highlight
public void highlight(boolean hl)
-
highlight
public void highlight(boolean hl, int colorIndex)
-
isHighlighted
public boolean isHighlighted()
-
setUp
public void setUp()
- Overrides:
setUp
in classSceneGraphNode
-
-