Class Label
java.lang.Object
gaiasky.scene.component.Label
- All Implemented Interfaces:
com.badlogic.ashley.core.Component
Component with attributes concerning labels.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum with states for the label display property. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe function to apply to set up the depth buffer for text rendering.Display state for the label of this object.booleanIs it a label or another kind of text?floatBias to compute the label visibility.floatFactor to apply to the size of the label.floatInternal rendering factorPosition of label.Consumers.Consumer7<LabelEntityRenderSystem, LabelView, ExtSpriteBatch, ExtShaderProgram, TextRenderer, RenderingContext, ICamera> The label rendering code.Function that checks whether the label must be rendered or not.floatPower to apply to the view angle for labels.floatScale parameter for distance field fonts. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanvoidsetForceLabel(Boolean force) voidvoidsetLabelBias(Double labelBias) voidvoidsetLabelDisplay(String value) voidsetLabelFactor(Double labelFactor) voidsetLabelMax(Double labelMax) voidsetLabelposition(double[] labelPosition) voidsetLabelPosition(double[] labelPositionPc) voidsetLabelPositionKm(double[] labelPositionKm) voidsetLabelPositionPc(double[] labelPositionPc) Sets the position of the label, in parsecs and in the internal reference frame.voidsetRenderLabel(Boolean render) voidsetTextScale(Double textScale)
-
Field Details
-
display
Display state for the label of this object. -
labelFactor
public float labelFactorFactor to apply to the size of the label. -
labelMax
public float labelMaxInternal rendering factor -
textScale
public float textScaleScale parameter for distance field fonts. -
solidAnglePow
public float solidAnglePowPower to apply to the view angle for labels. -
labelBias
public float labelBiasBias to compute the label visibility. -
labelPosition
Position of label. -
label
public boolean labelIs it a label or another kind of text? -
renderFunction
-
depthBufferConsumer
-
renderConsumer
public Consumers.Consumer7<LabelEntityRenderSystem, LabelView, ExtSpriteBatch, ExtShaderProgram, TextRenderer, RenderingContext, ICamera> renderConsumerThe label rendering code.
-
-
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
-
setLabelDisplay
-
setForceLabel
-
setRenderLabel
-
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
-
setLabelMax
-
setLabelBias
-
setTextScale
-
setLabel2d
-