Package gaiasky.scene.component
Class Label
java.lang.Object
gaiasky.scene.component.Label
- All Implemented Interfaces:
com.badlogic.ashley.core.Component
-
Field Summary
Modifier and TypeFieldDescriptionThe function to apply to set up the depth buffer for text rendering.boolean
Force to render the label of this entity, bypassing the solid angle checkboolean
Is it a label or another kind of text?float
Bias to compute the label visibility.float
Factor to apply to the size of the label.float
Internal rendering factorPosition of label.Consumers.Consumer7
<LabelEntityRenderSystem, LabelView, ExtSpriteBatch, ExtShaderProgram, FontRenderSystem, RenderingContext, ICamera> The label rendering code.Function that checks whether the label must be rendered or not.float
Power to apply to the view angle for labels.float
Scale parameter for distance field fonts. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setForceLabel
(Boolean force) void
void
setLabelBias
(Double labelBias) void
setLabelFactor
(Double labelFactor) void
setLabelMax
(Double labelMax) void
setLabelposition
(double[] labelPosition) void
setLabelPosition
(double[] labelPositionPc) void
setLabelPositionKm
(double[] labelPositionKm) void
setLabelPositionPc
(double[] labelPositionPc) Sets the position of the label, in parsecs and in the internal reference frame.void
setTextScale
(Double textScale)
-
Field Details
-
forceLabel
public boolean forceLabelForce to render the label of this entity, bypassing the solid angle check -
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
Function that checks whether the label must be rendered or not. -
depthBufferConsumer
The function to apply to set up the depth buffer for text rendering. -
renderConsumer
public Consumers.Consumer7<LabelEntityRenderSystem,LabelView, renderConsumerExtSpriteBatch, ExtShaderProgram, FontRenderSystem, RenderingContext, ICamera> The label rendering code.
-
-
Constructor Details
-
Label
public Label()
-
-
Method Details
-
setForceLabel
-
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
-