Package gaiasky.scene.component
Class Body
java.lang.Object
gaiasky.scene.component.Body
- All Implemented Interfaces:
com.badlogic.ashley.core.Component
,ICopy
-
Field Summary
Modifier and TypeFieldDescriptionfloat[]
Base RGB colordouble
The distance to the camera from the focus center.float[]
Position of this entity in the local reference system.boolean
Flag to control whether the position of this object has been set in a script.Position in the equatorial system; ra, dec.float
Body size in internal units.double
The view angle, in radians.double
The view angle corrected with the field of view angle, in radians. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.ashley.core.Component
getCopy
(com.badlogic.ashley.core.Engine engine) void
setColor
(double[] color) Sets the object color, as an RGBA double array.void
setColor
(float[] color) Sets the object color, as an RGBA float array.void
setDiameter
(Double diameter) void
setDiameterKm
(Double diameterKm) void
setLabelcolor
(double[] color) Deprecated.void
setLabelcolor
(float[] color) Deprecated.void
setLabelColor
(double[] color) Sets the label color, as an RGBA double array.void
setLabelColor
(float[] color) Sets the label color, as an RGBA float array.void
setPos
(double[] pos) void
setPosition
(double[] pos) void
setPosition
(int[] pos) void
setPositionKm
(double[] pos) void
setPositionPc
(double[] pos) void
setPosKm
(double[] pos) void
setPosPc
(double[] pos) void
void
setRadiusKm
(Double radiusKm) void
setRadiusPc
(Double radiusPc) void
void
void
void
void
void
-
Field Details
-
pos
Position of this entity in the local reference system. The units areConstants.U_TO_KM
by default. -
posSph
Position in the equatorial system; ra, dec. -
size
public float sizeBody size in internal units. -
distToCamera
public double distToCameraThe distance to the camera from the focus center. -
solidAngle
public double solidAngleThe view angle, in radians. -
solidAngleApparent
public double solidAngleApparentThe view angle corrected with the field of view angle, in radians. -
color
public float[] colorBase RGB color -
labelColor
public float[] labelColor -
positionSetInScript
public boolean positionSetInScriptFlag to control whether the position of this object has been set in a script.
-
-
Constructor Details
-
Body
public Body()
-
-
Method Details
-
setPos
public void setPos(double[] pos) -
setPosition
public void setPosition(double[] pos) -
setPosKm
public void setPosKm(double[] pos) -
setPositionKm
public void setPositionKm(double[] pos) -
setPosPc
public void setPosPc(double[] pos) -
setPositionPc
public void setPositionPc(double[] pos) -
setPosition
public void setPosition(int[] pos) -
setSize
-
setSizeKm
-
setSizepc
-
setSizePc
-
setSizeM
-
setSizeAU
-
setRadius
-
setRadiusKm
-
setRadiusPc
-
setDiameter
-
setDiameterKm
-
setColor
public void setColor(double[] color) Sets the object color, as an RGBA double array.- Parameters:
color
- The color.
-
setColor
public void setColor(float[] color) Sets the object color, as an RGBA float array.- Parameters:
color
- The color.
-
setLabelColor
public void setLabelColor(double[] color) Sets the label color, as an RGBA double array.- Parameters:
color
- The label color.
-
setLabelcolor
Deprecated. -
setLabelColor
public void setLabelColor(float[] color) Sets the label color, as an RGBA float array.- Parameters:
color
- The label color.
-
setLabelcolor
Deprecated. -
getCopy
public com.badlogic.ashley.core.Component getCopy(com.badlogic.ashley.core.Engine engine)
-