Package gaiasky.scene.component
Class LocationMark
java.lang.Object
gaiasky.scene.component.LocationMark
- All Implemented Interfaces:
com.badlogic.ashley.core.Component
-
Field Summary
Modifier and TypeFieldDescriptionThe display name.float
This controls the distance from the center in case of non-spherical objects.boolean
Ignore theUPPER_LIMIT
when determining the visibility of this location's label.A link (URL) to an external resource, displayed in the tooltip if present.com.badlogic.gdx.math.Vector2
Longitude and latitudecom.badlogic.gdx.math.Vector3
Location in the reference system of the parent.Location marker texture.Additional categorization of locations.static final float
float
Description, which shows up in a tooltip when the mouse cursor hovers over the location marker.static final float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setDistFactor
(Double distFactor) void
setIgnoreSolidAngleLimit
(boolean ignoreSolidAngleLimit) void
setLocation
(double[] pos) void
void
setLocationType
(String type) void
setMarkerTexture
(String tex) void
setTooltipText
(String tooltip)
-
Field Details
-
LOWER_LIMIT
public static final float LOWER_LIMIT- See Also:
-
UPPER_LIMIT
public static final float UPPER_LIMIT- See Also:
-
displayName
The display name. -
tooltipText
Description, which shows up in a tooltip when the mouse cursor hovers over the location marker. -
link
A link (URL) to an external resource, displayed in the tooltip if present. -
locationType
Additional categorization of locations. This is used only in the UI so that all locations in the same category can be turned on and off at the same time with a single click. -
locationMarkerTexture
Location marker texture. Set to 'none' to disable maker. Possible values are 'none', 'default', 'flag', 'city', or a path to a PNG image. -
location
public com.badlogic.gdx.math.Vector2 locationLongitude and latitude -
location3d
public com.badlogic.gdx.math.Vector3 location3dLocation in the reference system of the parent. -
distFactor
public float distFactorThis controls the distance from the center in case of non-spherical objects. -
sizeKm
public float sizeKm -
ignoreSolidAngleLimit
public boolean ignoreSolidAngleLimitIgnore theUPPER_LIMIT
when determining the visibility of this location's label. Effectively, setting this to true causes the location to not disappear regardless of the camera's distance.
-
-
Constructor Details
-
LocationMark
public LocationMark()
-
-
Method Details
-
setLocation
public void setLocation(double[] pos) -
setDistFactor
-
setLocationType
-
setLocationMarkerTexture
-
setMarkerTexture
-
setIgnoreSolidAngleLimit
public void setIgnoreSolidAngleLimit(boolean ignoreSolidAngleLimit) -
setTooltipText
-