Class FadeNode

java.lang.Object
gaiasky.scenegraph.SceneGraphNode
gaiasky.scenegraph.FadeNode
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, IStarContainer, IVisibilitySwitch, IPosition
Direct Known Subclasses:
AbstractOctreeWrapper, BackgroundModel, Constellation, GenericCatalog, MeshObject, ParticleGroup, RecursiveGrid, Text2D

public class FadeNode
extends SceneGraphNode
Node that offers fade-in and fade-out capabilities.
  • Field Details

    • labelPosition

      protected Vector3b labelPosition
      Position of label
    • labelcolor

      protected float[] labelcolor
      Colour of label
    • currentDistance

      protected double currentDistance
      The current distance at each cycle, in internal units
    • 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 group, octree, etc.)
    • highlighted

      protected boolean highlighted
      Is it highlighted?
    • hlplain

      protected boolean hlplain
    • hlc

      protected float[] hlc
    • hlallvisible

      protected boolean hlallvisible
    • hlcmi

      protected int hlcmi
    • hlcma

      protected IAttribute hlcma
    • hlcmmin

      protected double hlcmmin
    • hlcmmax

      protected double hlcmmax
  • Constructor Details

    • FadeNode

      public FadeNode()
    • FadeNode

      public FadeNode​(java.lang.String name, SceneGraphNode parent)
  • Method Details

    • doneLoading

      public void doneLoading​(com.badlogic.gdx.assets.AssetManager manager)
      Overrides:
      doneLoading in class SceneGraphNode
    • update

      public void update​(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera, float opacity)
      Overrides:
      update in class SceneGraphNode
    • updateLocal

      public void updateLocal​(ITimeFrameProvider time, ICamera camera)
      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 class SceneGraphNode
    • updateOpacity

      protected void updateOpacity()
    • getBaseOpacity

      protected float getBaseOpacity()
    • addToRenderLists

      protected void addToRenderLists​(ICamera camera)
      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 class SceneGraphNode
    • updateLocalValues

      public void updateLocalValues​(ITimeFrameProvider time, ICamera camera)
      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 class SceneGraphNode
    • getFadeIn

      public Vector2d getFadeIn()
    • setFadein

      public void setFadein​(double[] fadein)
    • getFadeOut

      public Vector2d getFadeOut()
    • 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
      Overrides:
      setLabelcolor in class SceneGraphNode
      Parameters:
      labelcolor -
    • setLabelcolor

      public void setLabelcolor​(float[] labelcolor)
      Overrides:
      setLabelcolor in class SceneGraphNode
    • setPositionobjectname

      public void setPositionobjectname​(java.lang.String po)
    • setCatalogInfoBare

      public void setCatalogInfoBare​(CatalogInfo info)
    • setCatalogInfo

      public void setCatalogInfo​(CatalogInfo info)
    • getCatalogInfo

      public CatalogInfo getCatalogInfo()
    • setCataloginfo

      public void setCataloginfo​(java.util.Map<java.lang.String,​java.lang.String> map)
    • highlight

      public void highlight​(boolean hl, float[] color, boolean allVisible)
      Highlight using a plain color
      Parameters:
      hl - Whether to highlight
      color - The plain color
      allVisible - All visible
    • highlight

      public void highlight​(boolean hl, int cmi, IAttribute cma, double cmmin, double cmmax, boolean allVisible)
      Highlight using a colormap
      Parameters:
      hl - Whether to highlight
      cmi - Color map index
      cma - Color map attribute
      cmmin - Min mapping value
      cmmax - Max mapping value
    • isHighlighted

      public boolean isHighlighted()
    • setUp

      public void setUp()
      Overrides:
      setUp in class SceneGraphNode
    • setSize

      public void setSize​(java.lang.Long size)
      Description copied from class: SceneGraphNode
      Sets the absolute size (diameter) of this entity
      Overrides:
      setSize in class SceneGraphNode
      Parameters:
      size - The diameter in internal units
    • setSize

      public void setSize​(java.lang.Double size)
      Description copied from class: SceneGraphNode
      Sets the absolute size (diameter) of this entity
      Overrides:
      setSize in class SceneGraphNode
      Parameters:
      size - The diameter in internal units
    • isHlplain

      public boolean isHlplain()
    • getHlcmi

      public int getHlcmi()
    • getHlcma

      public IAttribute getHlcma()
    • getHlcmmin

      public double getHlcmmin()
    • getHlcmmax

      public double getHlcmmax()
    • isHlAllVisible

      public boolean isHlAllVisible()