Class LocationMark

java.lang.Object
gaiasky.scene.component.LocationMark
All Implemented Interfaces:
com.badlogic.ashley.core.Component

public class LocationMark extends Object implements com.badlogic.ashley.core.Component
  • Field Details

    • LOWER_LIMIT

      public static final float LOWER_LIMIT
      See Also:
    • UPPER_LIMIT

      public static final float UPPER_LIMIT
      See Also:
    • displayName

      public String displayName
      The display name.
    • tooltipText

      public String tooltipText
      Description, which shows up in a tooltip when the mouse cursor hovers over the location marker.
    • locationType

      public String 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

      public String 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 location
      Longitude and latitude
    • location3d

      public com.badlogic.gdx.math.Vector3 location3d
      Location in the reference system of the parent.
    • distFactor

      public float distFactor
      This controls the distance from the center in case of non-spherical objects.
    • sizeKm

      public float sizeKm
    • ignoreSolidAngleLimit

      public boolean ignoreSolidAngleLimit
      Ignore the UPPER_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

      public void setDistFactor(Double distFactor)
    • setLocationType

      public void setLocationType(String type)
    • setLocationMarkerTexture

      public void setLocationMarkerTexture(String tex)
    • setMarkerTexture

      public void setMarkerTexture(String tex)
    • setIgnoreSolidAngleLimit

      public void setIgnoreSolidAngleLimit(boolean ignoreSolidAngleLimit)
    • setTooltipText

      public void setTooltipText(String tooltip)