Class Label

java.lang.Object
gaiasky.scene.component.Label
All Implemented Interfaces:
com.badlogic.ashley.core.Component

public class Label extends Object implements com.badlogic.ashley.core.Component
  • Field Details

    • labelFactor

      public float labelFactor
    • labelMax

      public float labelMax
    • textScale

      public float textScale
      Scale parameter for distance field fonts.
    • solidAnglePow

      public float solidAnglePow
      Power to apply to the view angle for labels.
    • labelPosition

      public Vector3b labelPosition
      Position of label.
    • label

      public boolean label
      Is it a label or another kind of text?
    • label2d

      public boolean label2d
      Is it a label or another kind of text?
    • renderFunction

      public Function<LabelView,Boolean> renderFunction
      Function that checks whether the label must be rendered or not.
    • depthBufferConsumer

      public Consumer<LabelView> depthBufferConsumer
      The function to apply to set up the depth buffer for text rendering.
    • renderConsumer

      The label rendering code.
  • Constructor Details

    • Label

      public Label()
  • Method Details

    • setLabelPosition

      public void setLabelPosition(double[] labelPosition)
      Sets the position of the label, in parsecs and in the internal reference frame.
      Parameters:
      labelPosition - The position of the label in internal cartesian coordinates.
    • setLabelposition

      public void setLabelposition(double[] labelPosition)
    • setLabelFactor

      public void setLabelFactor(Double labelFactor)
    • setLabelMax

      public void setLabelMax(Double labelMax)
    • setTextScale

      public void setTextScale(Double textScale)