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
Component with attributes concerning labels.
  • Field Details

    • display

      public Label.LabelDisplay display
      Display state for the label of this object.
    • labelFactor

      public float labelFactor
      Factor to apply to the size of the label.
    • labelMax

      public float labelMax
      Internal rendering factor
    • textScale

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

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

      public float labelBias
      Bias to compute the label visibility.
    • labelPosition

      public Vector3Q labelPosition
      Position of label.
    • label

      public boolean label
      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

  • Constructor Details

    • Label

      public Label()
  • Method Details

    • isDisplayAuto

      public boolean isDisplayAuto()
    • isDisplayAlways

      public boolean isDisplayAlways()
    • isDisplayNever

      public boolean isDisplayNever()
    • renderLabel

      public boolean renderLabel()
    • forceLabel

      public boolean forceLabel()
    • setLabelDisplay

      public void setLabelDisplay(String value)
    • setLabelDisplay

      public void setLabelDisplay(Label.LabelDisplay value)
    • setForceLabel

      public void setForceLabel(Boolean force)
    • setRenderLabel

      public void setRenderLabel(Boolean render)
    • setLabelPositionPc

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

      public void setLabelPositionKm(double[] labelPositionKm)
    • setLabelposition

      public void setLabelposition(double[] labelPosition)
    • setLabelPosition

      public void setLabelPosition(double[] labelPositionPc)
    • setLabelFactor

      public void setLabelFactor(Double labelFactor)
    • setLabelMax

      public void setLabelMax(Double labelMax)
    • setLabelBias

      public void setLabelBias(Double labelBias)
    • setTextScale

      public void setTextScale(Double textScale)
    • setLabel2d

      public void setLabel2d(Boolean b)