Class Constants
java.lang.Object
gaiasky.util.Constants
Random constants holder.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic doubleAU to local units conversion.static final floatstatic final floatstatic final floatstatic final doublestatic final doubleSpeed of light in km/hstatic doubleSpeed of light in internal units per secondstatic final Stringstatic final doubleDefault star color index.static final Stringstatic final doubleDefault star magnitude.static final doubleDefault star parallax in mas.static final intDefault resolution: height.static final intDefault resolution: width.static doubleDistance unit scaling (mainly for VR)static final StringGenerated height keyword.static final Stringstatic doubleKilometre to local unit conversion.static doubleKilo parsec to local unit conversion.static doubleLight years to local units.static doubleMetre to local unit conversion.static final floatMax ambient light.static final floatstatic final floatstatic final floatstatic final floatMaximum camera speed.static final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final longstatic final floatstatic final floatMaximum fov value, in degrees.static final doubleMaximum limit/frame/camrec fps value.static final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatMaximum angle where the LOD transitions end.static final floatstatic final floatstatic final floatstatic final intstatic final floatstatic final floatMaximum length factor for proper motion vectors.static final floatMaximum number factor for proper motion vectors.static final floatstatic final floatstatic final floatMaximum rotation speed.static final floatstatic final floatMaximum spacecraft responsiveness.static final floatstatic final floatMaximum generic slider value.static final floatMaximum star brightness.static final floatMaximum star brightness power.static final floatMaximum star glow factor.static final floatMaximum star minimum opacity.static final floatMaximum star pixel size.static final floatstatic final floatstatic final floatstatic final floatstatic final intstatic final floatMaximum turning speed.static final floatstatic final intMaximum number of velocity vectors per star group.static final longstatic final doublestatic final doubleBytes to MBstatic final floatMin ambient light.static final floatstatic final floatstatic final floatstatic final floatMinimum camera speed.static final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final longstatic final floatstatic final floatMinimum fov value, in degrees.static final doubleMinimum limit/frame/camrec fps value.static final floatstatic final floatstatic final floatstatic final floatstatic final floatstatic final floatMinimum angle where the LOD transitions start.static final floatstatic final floatstatic final floatstatic final intstatic final floatstatic final floatMinimum length factor for proper motion vectors.static final floatMinimum number factor for proper motion vectors.static final floatstatic final floatstatic final floatMinimum rotation speed.static final floatstatic final floatMinimum spacecraft responsiveness.static final floatstatic final floatMinimum generic slider value.static final floatMinimum generic slider value (1).static final floatMinimum star brightness.static final floatMinimum star brightness power.static final floatMinimum star glow factor.static final floatMinimum star minimum opacity.static final floatMinimum star pixel size.static final floatstatic final floatstatic final floatstatic final floatstatic final intstatic final floatMinimum turning speed.static final floatstatic final intMinimum number of velocity vectors per star group.static final longstatic final doublestatic final floatstatic final floatstatic doubleMegaparsec to local unit conversion.static final intNumber of directional lights.static final intNumber of point lights.static final intNumber of spotlights.static final Stringstatic final Stringstatic doublestatic final doubleDisc factor for single particles and stars.static doubleParsec to local unit conversion.static final intstatic final intstatic final doubleSolar radius in Kmstatic doubleSolar radius to local unitsstatic final floatDefault step value for sliders.static final floatDefault step value for sliders (small).static final floatDefault step value for sliders (tiny).static final floatDefault step value for sliders (weeny).static final doubleSize factor for all stars.static final doubleSolid angle bottom threshold for stars.static final doubleSolid angle top threshold for stars.static final Stringstatic doubleLocal unit to AU conversion.static doubleLocal unit to km conversion.static doubleLocal unit to kpc conversion.static doubleLocal units to light years.static doubleLocal unit to m conversion.static doubleLocal unit to Mpc conversion.static doubleLocal unit to pc conversion.static doubleUnits to solar radiusstatic final floatstatic final floatstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic floatstatic longstatic voidinitialize(double distanceScaleFactor) static booleannotWithinVSOPTime(long time) Checks whether the given time is within the acceptable bounds of VSOP87 algorithms.
-
Field Details
-
DEFAULT_RESOLUTION_WIDTH
public static final int DEFAULT_RESOLUTION_WIDTHDefault resolution: width.- See Also:
-
DEFAULT_RESOLUTION_HEIGHT
public static final int DEFAULT_RESOLUTION_HEIGHTDefault resolution: height.- See Also:
-
DEFAULT_MAG
public static final double DEFAULT_MAGDefault star magnitude.- See Also:
-
DEFAULT_COLOR
public static final double DEFAULT_COLORDefault star color index.- See Also:
-
DEFAULT_PARALLAX
public static final double DEFAULT_PARALLAXDefault star parallax in mas.- See Also:
-
C_KMH
public static final double C_KMHSpeed of light in km/h- See Also:
-
Ro_TO_KM
public static final double Ro_TO_KMSolar radius in Km- See Also:
-
MB_TO_BYTE
public static final double MB_TO_BYTEBytes 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_BOTTOMSolid 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_TOPSolid 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_FACTORDisc factor for single particles and stars.- See Also:
-
STAR_SIZE_FACTOR
public static final double STAR_SIZE_FACTORSize factor for all stars.- See Also:
-
MIN_SLIDER
public static final float MIN_SLIDERMinimum generic slider value.- See Also:
-
MIN_SLIDER_1
public static final float MIN_SLIDER_1Minimum generic slider value (1).- See Also:
-
MAX_SLIDER
public static final float MAX_SLIDERMaximum generic slider value.- See Also:
-
SLIDER_STEP
public static final float SLIDER_STEPDefault step value for sliders.- See Also:
-
SLIDER_STEP_SMALL
public static final float SLIDER_STEP_SMALLDefault step value for sliders (small).- See Also:
-
SLIDER_STEP_WEENY
public static final float SLIDER_STEP_WEENYDefault step value for sliders (weeny).- See Also:
-
SLIDER_STEP_TINY
public static final float SLIDER_STEP_TINYDefault 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_FOVMaximum fov value, in degrees.- See Also:
-
MIN_FOV
public static final float MIN_FOVMinimum fov value, in degrees.- See Also:
-
MIN_FPS
public static final double MIN_FPSMinimum limit/frame/camrec fps value.- See Also:
-
MAX_FPS
public static final double MAX_FPSMaximum limit/frame/camrec fps value.- See Also:
-
MAX_CAM_SPEED
public static final float MAX_CAM_SPEEDMaximum camera speed.- See Also:
-
MIN_CAM_SPEED
public static final float MIN_CAM_SPEEDMinimum camera speed.- See Also:
-
MAX_ROT_SPEED
public static final float MAX_ROT_SPEEDMaximum rotation speed.- See Also:
-
MIN_ROT_SPEED
public static final float MIN_ROT_SPEEDMinimum rotation speed.- See Also:
-
MAX_TURN_SPEED
public static final float MAX_TURN_SPEEDMaximum turning speed.- See Also:
-
MIN_TURN_SPEED
public static final float MIN_TURN_SPEEDMinimum turning speed.- See Also:
-
MIN_STAR_BRIGHTNESS
public static final float MIN_STAR_BRIGHTNESSMinimum star brightness.- See Also:
-
MAX_STAR_BRIGHTNESS
public static final float MAX_STAR_BRIGHTNESSMaximum 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_FILM_GRAIN_INTENSITY
public static final float MIN_FILM_GRAIN_INTENSITY- See Also:
-
MAX_FILM_GRAIN_INTENSITY
public static final float MAX_FILM_GRAIN_INTENSITY- 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_POWMinimum star brightness power.- See Also:
-
MAX_STAR_BRIGHTNESS_POW
public static final float MAX_STAR_BRIGHTNESS_POWMaximum star brightness power.- See Also:
-
MIN_STAR_GLOW_FACTOR
public static final float MIN_STAR_GLOW_FACTORMinimum star glow factor.- See Also:
-
MAX_STAR_GLOW_FACTOR
public static final float MAX_STAR_GLOW_FACTORMaximum star glow factor.- See Also:
-
MIN_STAR_POINT_SIZE
public static final float MIN_STAR_POINT_SIZEMinimum star pixel size.- See Also:
-
MAX_STAR_POINT_SIZE
public static final float MAX_STAR_POINT_SIZEMaximum star pixel size.- See Also:
-
MIN_STAR_MIN_OPACITY
public static final float MIN_STAR_MIN_OPACITYMinimum star minimum opacity.- See Also:
-
MAX_STAR_MIN_OPACITY
public static final float MAX_STAR_MIN_OPACITYMaximum star minimum opacity.- See Also:
-
MIN_PM_NUM_FACTOR
public static final float MIN_PM_NUM_FACTORMinimum number factor for proper motion vectors.- See Also:
-
MAX_PM_NUM_FACTOR
public static final float MAX_PM_NUM_FACTORMaximum number factor for proper motion vectors.- See Also:
-
MIN_PM_LEN_FACTOR
public static final float MIN_PM_LEN_FACTORMinimum length factor for proper motion vectors.- See Also:
-
MAX_PM_LEN_FACTOR
public static final float MAX_PM_LEN_FACTORMaximum length factor for proper motion vectors.- See Also:
-
MIN_LOD_TRANS_ANGLE_DEG
public static final float MIN_LOD_TRANS_ANGLE_DEGMinimum angle where the LOD transitions start.- See Also:
-
MAX_LOD_TRANS_ANGLE_DEG
public static final float MAX_LOD_TRANS_ANGLE_DEGMaximum angle where the LOD transitions end.- See Also:
-
MIN_VELOCITY_VECTORS_STAR_GROUP
public static final int MIN_VELOCITY_VECTORS_STAR_GROUPMinimum number of velocity vectors per star group.- See Also:
-
MAX_VELOCITY_VECTORS_STAR_GROUP
public static final int MAX_VELOCITY_VECTORS_STAR_GROUPMaximum number of velocity vectors per star group.- See Also:
-
MIN_AMBIENT_LIGHT
public static final float MIN_AMBIENT_LIGHTMin ambient light.- See Also:
-
MAX_AMBIENT_LIGHT
public static final float MAX_AMBIENT_LIGHTMax ambient light.- See Also:
-
MIN_SC_RESPONSIVENESS
public static final float MIN_SC_RESPONSIVENESSMinimum spacecraft responsiveness.- See Also:
-
MAX_SC_RESPONSIVENESS
public static final float MAX_SC_RESPONSIVENESSMaximum 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_MIN_SOLID_ANGLE
public static final float MIN_MIN_SOLID_ANGLE- See Also:
-
MAX_MIN_SOLID_ANGLE
public static final float MAX_MIN_SOLID_ANGLE- See Also:
-
MIN_MAX_SOLID_ANGLE
public static final float MIN_MAX_SOLID_ANGLE- See Also:
-
MAX_MAX_SOLID_ANGLE
public static final float MAX_MAX_SOLID_ANGLE- See Also:
-
MIN_NUM_LABELS
public static final int MIN_NUM_LABELS- See Also:
-
MAX_NUM_LABELS
public static final int MAX_NUM_LABELS- 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_ATM_FOG_DENSITY
public static final float MIN_ATM_FOG_DENSITY- See Also:
-
MAX_ATM_FOG_DENSITY
public static final float MAX_ATM_FOG_DENSITY- 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_STEREO_K
public static final float MIN_STEREO_K- See Also:
-
MAX_STEREO_K
public static final float MAX_STEREO_K- See Also:
-
MIN_STEREO_IPD
public static final float MIN_STEREO_IPD- See Also:
-
MAX_STEREO_IPD
public static final float MAX_STEREO_IPD- See Also:
-
MIN_STEREO_SD
public static final float MIN_STEREO_SD- See Also:
-
MAX_STEREO_SD
public static final float MAX_STEREO_SD- 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_MIN
public static final float UI_SCALE_MIN- See Also:
-
UI_SCALE_MAX
public static final float UI_SCALE_MAX- See Also:
-
PG_RESOLUTION_MIN
public static final int PG_RESOLUTION_MIN- See Also:
-
PG_RESOLUTION_MAX
public static final int PG_RESOLUTION_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:
-
MOTIONBLUR_MIN
public static final float MOTIONBLUR_MIN- See Also:
-
MOTIONBLUR_MAX
public static final float MOTIONBLUR_MAX- 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
- See Also:
-
nameSeparator
- See Also:
-
STAR_SUBSTITUTE
- See Also:
-
DATA_LOCATION_TOKEN
- See Also:
-
DEFAULT_DATASET_KEY
- See Also:
-
HI_RES_TEXTURES_DATASET_KEY
- See Also:
-
GEN_KEYWORD
-
URL_GAIA_JSON_SOURCE
- See Also:
-
URL_HIP_JSON_SOURCE
- See Also:
-
URL_GAIA_WEB_SOURCE
- See Also:
-
URL_SIMBAD
- See Also:
-
N_DIR_LIGHTS
public static final int N_DIR_LIGHTSNumber of directional lights.- See Also:
-
N_POINT_LIGHTS
public static final int N_POINT_LIGHTSNumber of point lights.- See Also:
-
N_SPOT_LIGHTS
public static final int N_SPOT_LIGHTSNumber of spotlights.- See Also:
-
DISTANCE_SCALE_FACTOR
public static double DISTANCE_SCALE_FACTORDistance unit scaling (mainly for VR) -
ORIGINAL_M_TO_U
public static double ORIGINAL_M_TO_U -
M_TO_U
public static double M_TO_UMetre to local unit conversion. Multiply this by all values in m. -
U_TO_M
public static double U_TO_MLocal unit to m conversion. -
KM_TO_U
public static double KM_TO_UKilometre to local unit conversion. Multiply this by all values in Km. -
U_TO_KM
public static double U_TO_KMLocal unit to km conversion. -
AU_TO_U
public static double AU_TO_UAU to local units conversion. -
U_TO_AU
public static double U_TO_AULocal unit to AU conversion. -
LY_TO_U
public static double LY_TO_ULight years to local units. -
U_TO_LY
public static double U_TO_LYLocal units to light years. -
PC_TO_U
public static double PC_TO_UParsec to local unit conversion. Multiply this by all values in pc. -
KPC_TO_U
public static double KPC_TO_UKilo parsec to local unit conversion. Multiply this by all values in Kpc. -
MPC_TO_U
public static double MPC_TO_UMegaparsec to local unit conversion. Multiply this by all values in Mpc. -
U_TO_PC
public static double U_TO_PCLocal unit to pc conversion. -
U_TO_KPC
public static double U_TO_KPCLocal unit to kpc conversion. -
U_TO_MPC
public static double U_TO_MPCLocal unit to Mpc conversion. -
Ro_TO_U
public static double Ro_TO_USolar radius to local units -
U_TO_Ro
public static double U_TO_RoUnits to solar radius -
C_US
public static double C_USSpeed of light in internal units per second
-
-
Constructor Details
-
Constants
public Constants()
-
-
Method Details
-
getCameraK
public static float getCameraK() -
getPartFileMaxAgeMs
public static long getPartFileMaxAgeMs() -
initialize
public static void initialize(double distanceScaleFactor) -
notWithinVSOPTime
public static boolean notWithinVSOPTime(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.
-