Package gaiasky.util

Class Constants

java.lang.Object
gaiasky.util.Constants

public class Constants extends Object
  • Field Details

    • C

      public static final double C
      Speed of light in m/s
      See Also:
    • C_KMH

      public static final double C_KMH
      Speed of light in km/h
      See Also:
    • Ro_TO_KM

      public static final double Ro_TO_KM
      Solar radius in Km
      See Also:
    • MB_TO_BYTE

      public static final double MB_TO_BYTE
      Bytes to MB
      See Also:
    • BYTE_TO_MB

      public static final double BYTE_TO_MB
      See Also:
    • STAR_SOLID_ANGLE_THRESHOLD_BOTTOM

      public static final double STAR_SOLID_ANGLE_THRESHOLD_BOTTOM
      Solid angle bottom threshold for stars. Between this and the top threshold, the star size remains constant.
      See Also:
    • STAR_SOLID_ANGLE_THRESHOLD_TOP

      public static final double STAR_SOLID_ANGLE_THRESHOLD_TOP
      Solid angle top threshold for stars. Between this and the bottom threshold, the star size remains constant.
      See Also:
    • PARTICLE_DISC_FACTOR

      public static final double PARTICLE_DISC_FACTOR
      Disc factor for single particles and stars.
      See Also:
    • STAR_SIZE_FACTOR

      public static final double STAR_SIZE_FACTOR
      Size factor for all stars.
      See Also:
    • MIN_SLIDER

      public static final float MIN_SLIDER
      Minimum generic slider value.
      See Also:
    • MIN_SLIDER_1

      public static final float MIN_SLIDER_1
      Minimum generic slider value (1).
      See Also:
    • MAX_SLIDER

      public static final float MAX_SLIDER
      Maximum generic slider value.
      See Also:
    • SLIDER_STEP

      public static final float SLIDER_STEP
      Default step value for sliders.
      See Also:
    • SLIDER_STEP_SMALL

      public static final float SLIDER_STEP_SMALL
      Default step value for sliders (small).
      See Also:
    • SLIDER_STEP_TINY

      public static final float SLIDER_STEP_TINY
      Default step value for sliders (tiny).
      See Also:
    • MIN_POINT_SIZE_SCALE

      public static final float MIN_POINT_SIZE_SCALE
      See Also:
    • MAX_POINT_SIZE_SCALE

      public static final float MAX_POINT_SIZE_SCALE
      See Also:
    • MIN_FADE_TIME_MS

      public static final long MIN_FADE_TIME_MS
      See Also:
    • MAX_FADE_TIME_MS

      public static final long MAX_FADE_TIME_MS
      See Also:
    • MAX_FOV

      public static final float MAX_FOV
      Maximum fov value, in degrees.
      See Also:
    • MIN_FOV

      public static final float MIN_FOV
      Minimum fov value, in degrees.
      See Also:
    • MIN_FPS

      public static final double MIN_FPS
      Minimum limit/frame/camrec fps value.
      See Also:
    • MAX_FPS

      public static final double MAX_FPS
      Maximum limit/frame/camrec fps value.
      See Also:
    • MAX_CAM_SPEED

      public static final float MAX_CAM_SPEED
      Maximum camera speed.
      See Also:
    • MIN_CAM_SPEED

      public static final float MIN_CAM_SPEED
      Minimum camera speed.
      See Also:
    • MAX_ROT_SPEED

      public static final float MAX_ROT_SPEED
      Maximum rotation speed.
      See Also:
    • MIN_ROT_SPEED

      public static final float MIN_ROT_SPEED
      Minimum rotation speed.
      See Also:
    • MAX_TURN_SPEED

      public static final float MAX_TURN_SPEED
      Maximum turning speed.
      See Also:
    • MIN_TURN_SPEED

      public static final float MIN_TURN_SPEED
      Minimum turning speed.
      See Also:
    • MIN_STAR_BRIGHTNESS

      public static final float MIN_STAR_BRIGHTNESS
      Minimum star brightness.
      See Also:
    • MAX_STAR_BRIGHTNESS

      public static final float MAX_STAR_BRIGHTNESS
      Maximum star brightness.
      See Also:
    • MIN_CHROMATIC_ABERRATION_AMOUNT

      public static final float MIN_CHROMATIC_ABERRATION_AMOUNT
      See Also:
    • MAX_CHROMATIC_ABERRATION_AMOUNT

      public static final float MAX_CHROMATIC_ABERRATION_AMOUNT
      See Also:
    • MIN_LENS_FLARE_STRENGTH

      public static final float MIN_LENS_FLARE_STRENGTH
      See Also:
    • MAX_LENS_FLARE_STRENGTH

      public static final float MAX_LENS_FLARE_STRENGTH
      See Also:
    • MIN_UNSHARP_MASK_FACTOR

      public static final float MIN_UNSHARP_MASK_FACTOR
      See Also:
    • MAX_UNSHARP_MASK_FACTOR

      public static final float MAX_UNSHARP_MASK_FACTOR
      See Also:
    • MIN_STAR_BRIGHTNESS_POW

      public static final float MIN_STAR_BRIGHTNESS_POW
      Minimum star brightness power.
      See Also:
    • MAX_STAR_BRIGHTNESS_POW

      public static final float MAX_STAR_BRIGHTNESS_POW
      Maximum star brightness power.
      See Also:
    • MIN_STAR_GLOW_FACTOR

      public static final float MIN_STAR_GLOW_FACTOR
      Minimum star glow factor.
      See Also:
    • MAX_STAR_GLOW_FACTOR

      public static final float MAX_STAR_GLOW_FACTOR
      Maximum star glow factor.
      See Also:
    • MIN_STAR_POINT_SIZE

      public static final float MIN_STAR_POINT_SIZE
      Minimum star pixel size.
      See Also:
    • MAX_STAR_POINT_SIZE

      public static final float MAX_STAR_POINT_SIZE
      Maximum star pixel size.
      See Also:
    • MIN_STAR_MIN_OPACITY

      public static final float MIN_STAR_MIN_OPACITY
      Minimum star minimum opacity.
      See Also:
    • MAX_STAR_MIN_OPACITY

      public static final float MAX_STAR_MIN_OPACITY
      Maximum star minimum opacity.
      See Also:
    • MIN_PM_NUM_FACTOR

      public static final float MIN_PM_NUM_FACTOR
      Minimum number factor for proper motion vectors.
      See Also:
    • MAX_PM_NUM_FACTOR

      public static final float MAX_PM_NUM_FACTOR
      Maximum number factor for proper motion vectors.
      See Also:
    • MIN_PM_LEN_FACTOR

      public static final float MIN_PM_LEN_FACTOR
      Minimum length factor for proper motion vectors.
      See Also:
    • MAX_PM_LEN_FACTOR

      public static final float MAX_PM_LEN_FACTOR
      Maximum length factor for proper motion vectors.
      See Also:
    • MIN_LOD_TRANS_ANGLE_DEG

      public static final float MIN_LOD_TRANS_ANGLE_DEG
      Minimum angle where the LOD transitions start.
      See Also:
    • MAX_LOD_TRANS_ANGLE_DEG

      public static final float MAX_LOD_TRANS_ANGLE_DEG
      Maximum angle where the LOD transitions end.
      See Also:
    • MIN_AMBIENT_LIGHT

      public static final float MIN_AMBIENT_LIGHT
      Min ambient light.
      See Also:
    • MAX_AMBIENT_LIGHT

      public static final float MAX_AMBIENT_LIGHT
      Max ambient light.
      See Also:
    • MIN_SC_RESPONSIVENESS

      public static final float MIN_SC_RESPONSIVENESS
      Minimum spacecraft responsiveness.
      See Also:
    • MAX_SC_RESPONSIVENESS

      public static final float MAX_SC_RESPONSIVENESS
      Maximum spacecraft responsiveness.
      See Also:
    • MIN_BRIGHTNESS

      public static final float MIN_BRIGHTNESS
      See Also:
    • MAX_BRIGHTNESS

      public static final float MAX_BRIGHTNESS
      See Also:
    • MIN_CONTRAST

      public static final float MIN_CONTRAST
      See Also:
    • MAX_CONTRAST

      public static final float MAX_CONTRAST
      See Also:
    • MIN_HUE

      public static final float MIN_HUE
      See Also:
    • MAX_HUE

      public static final float MAX_HUE
      See Also:
    • MIN_SATURATION

      public static final float MIN_SATURATION
      See Also:
    • MAX_SATURATION

      public static final float MAX_SATURATION
      See Also:
    • MIN_GAMMA

      public static final float MIN_GAMMA
      See Also:
    • MAX_GAMMA

      public static final float MAX_GAMMA
      See Also:
    • MIN_EXPOSURE

      public static final float MIN_EXPOSURE
      See Also:
    • MAX_EXPOSURE

      public static final float MAX_EXPOSURE
      See Also:
    • MIN_BLOOM

      public static final float MIN_BLOOM
      See Also:
    • MAX_BLOOM

      public static final float MAX_BLOOM
      See Also:
    • MIN_LABEL_SIZE

      public static final float MIN_LABEL_SIZE
      See Also:
    • MAX_LABEL_SIZE

      public static final float MAX_LABEL_SIZE
      See Also:
    • MIN_LINE_WIDTH

      public static final float MIN_LINE_WIDTH
      See Also:
    • MAX_LINE_WIDTH

      public static final float MAX_LINE_WIDTH
      See Also:
    • MIN_ELEVATION_MULT

      public static final float MIN_ELEVATION_MULT
      See Also:
    • MAX_ELEVATION_MULT

      public static final float MAX_ELEVATION_MULT
      See Also:
    • MIN_TESS_QUALITY

      public static final float MIN_TESS_QUALITY
      See Also:
    • MAX_TESS_QUALITY

      public static final float MAX_TESS_QUALITY
      See Also:
    • MIN_SCREENSHOT_QUALITY

      public static final float MIN_SCREENSHOT_QUALITY
      See Also:
    • MAX_SCREENSHOT_QUALITY

      public static final float MAX_SCREENSHOT_QUALITY
      See Also:
    • MIN_PARTICLE_SIZE

      public static final float MIN_PARTICLE_SIZE
      See Also:
    • MAX_PARTICLE_SIZE

      public static final float MAX_PARTICLE_SIZE
      See Also:
    • MIN_COLOR_NOISE

      public static final float MIN_COLOR_NOISE
      See Also:
    • MAX_COLOR_NOISE

      public static final float MAX_COLOR_NOISE
      See Also:
    • MIN_POINTER_GUIDES_WIDTH

      public static final float MIN_POINTER_GUIDES_WIDTH
      See Also:
    • MAX_POINTER_GUIDES_WIDTH

      public static final float MAX_POINTER_GUIDES_WIDTH
      See Also:
    • MIN_TILE_CACHE

      public static final int MIN_TILE_CACHE
      See Also:
    • MAX_TILE_CACHE

      public static final int MAX_TILE_CACHE
      See Also:
    • UI_SCALE_INTERNAL_MIN

      public static final float UI_SCALE_INTERNAL_MIN
      See Also:
    • UI_SCALE_INTERNAL_MAX

      public static final float UI_SCALE_INTERNAL_MAX
      See Also:
    • UI_SCALE_MIN

      public static final float UI_SCALE_MIN
      See Also:
    • UI_SCALE_MAX

      public static final float UI_SCALE_MAX
      See Also:
    • BACKBUFFER_SCALE_MIN

      public static final float BACKBUFFER_SCALE_MIN
      See Also:
    • BACKBUFFER_SCALE_MAX

      public static final float BACKBUFFER_SCALE_MAX
      See Also:
    • BACKBUFFER_SCALE_STEP

      public static final float BACKBUFFER_SCALE_STEP
      See Also:
    • MAX_VSOP_TIME_MS

      public static final long MAX_VSOP_TIME_MS
      See Also:
    • MIN_VSOP_TIME_MS

      public static final long MIN_VSOP_TIME_MS
      See Also:
    • WARP_STEPS

      public static final int WARP_STEPS
      See Also:
    • MAX_WARP

      public static final double MAX_WARP
    • MIN_WARP

      public static final double MIN_WARP
    • MAX_DATASET_SIZE_FACTOR

      public static final float MAX_DATASET_SIZE_FACTOR
      See Also:
    • MIN_DATASET_SIZE_FACTOR

      public static final float MIN_DATASET_SIZE_FACTOR
      See Also:
    • MAX_MINIMAP_SIZE

      public static final float MAX_MINIMAP_SIZE
      See Also:
    • MIN_MINIMAP_SIZE

      public static final float MIN_MINIMAP_SIZE
      See Also:
    • nameSeparatorRegex

      public static final String nameSeparatorRegex
      See Also:
    • nameSeparator

      public static final String nameSeparator
      See Also:
    • STAR_SUBSTITUTE

      public static final String STAR_SUBSTITUTE
      See Also:
    • DATA_LOCATION_TOKEN

      public static final String DATA_LOCATION_TOKEN
      See Also:
    • DEFAULT_DATASET_KEY

      public static final String DEFAULT_DATASET_KEY
      See Also:
    • GEN_KEYWORD

      public static final String GEN_KEYWORD
      Generated height keyword.
      See Also:
    • URL_GAIA_JSON_SOURCE

      public static final String URL_GAIA_JSON_SOURCE
      See Also:
    • URL_HIP_JSON_SOURCE

      public static final String URL_HIP_JSON_SOURCE
      See Also:
    • URL_GAIA_WEB_SOURCE

      public static final String URL_GAIA_WEB_SOURCE
      See Also:
    • URL_SIMBAD

      public static final String URL_SIMBAD
      See Also:
    • URL_WIKIPEDIA

      public static final String URL_WIKIPEDIA
      See Also:
    • URL_WIKI_API_SUMMARY

      public static final String URL_WIKI_API_SUMMARY
      See Also:
    • PREC

      public static final int PREC
      Apfloat default precision.
      See Also:
    • N_DIR_LIGHTS

      public static final int N_DIR_LIGHTS
      Number of directional lights.
      See Also:
    • DISTANCE_SCALE_FACTOR

      public static double DISTANCE_SCALE_FACTOR
      Distance unit scaling (mainly for VR)
    • ORIGINAL_M_TO_U

      public static double ORIGINAL_M_TO_U
    • M_TO_U

      public static double M_TO_U
      Metre to local unit conversion. Multiply this by all values in m.
    • U_TO_M

      public static double U_TO_M
      Local unit to m conversion.
    • KM_TO_U

      public static double KM_TO_U
      Kilometre to local unit conversion. Multiply this by all values in Km.
    • U_TO_KM

      public static double U_TO_KM
      Local unit to km conversion.
    • AU_TO_U

      public static double AU_TO_U
      AU to local units conversion.
    • U_TO_AU

      public static double U_TO_AU
      Local unit to AU conversion.
    • LY_TO_U

      public static double LY_TO_U
      Light years to local units.
    • U_TO_LY

      public static double U_TO_LY
      Local units to light years.
    • PC_TO_U

      public static double PC_TO_U
      Parsec to local unit conversion. Multiply this by all values in pc.
    • KPC_TO_U

      public static double KPC_TO_U
      Kiloparsec to local unit conversion. Multiply this by all values in Kpc.
    • MPC_TO_U

      public static double MPC_TO_U
      Megaparsec to local unit conversion. Multiply this by all values in Mpc.
    • U_TO_PC

      public static double U_TO_PC
      Local unit to pc conversion.
    • U_TO_KPC

      public static double U_TO_KPC
      Local unit to Kpc conversion.
    • Ro_TO_U

      public static double Ro_TO_U
      Solar radius to local units
    • U_TO_Ro

      public static double U_TO_Ro
      Units to solar radius
    • C_US

      public static double C_US
      Speed of light in internal units per second
    • CAMERA_K

      public static double CAMERA_K
      Logarithmic depth buffer constant. Controls the resolution close to the camera
  • Constructor Details

    • Constants

      public Constants()
  • Method Details

    • getCameraK

      public static float getCameraK()
    • initialize

      public static void initialize(double distanceScaleFactor)
    • withinVSOPTime

      public static boolean withinVSOPTime(long time)
      Checks whether the given time is within the acceptable bounds of VSOP87 algorithms.
      Parameters:
      time - The time as the number of milliseconds since January 1, 1970, 00:00:00 GMT.
      Returns:
      Whether the given time is within the bounds of VSOP