Package gaiasky.util
Class Constants
java.lang.Object
gaiasky.util.Constants
-
Field Summary
Modifier and TypeFieldDescriptionstatic double
AU to local units conversion.static final float
static final float
static final float
static final double
static final double
Speed of light in km/hstatic double
Speed of light in internal units per secondstatic final String
static final double
Default star color index.static final String
static final double
Default star magnitude.static final double
Default star parallax in mas.static final int
Default resolution: height.static final int
Default resolution: width.static double
Distance unit scaling (mainly for VR)static final String
Generated height keyword.static final String
static double
Kilometre to local unit conversion.static double
Kilo parsec to local unit conversion.static double
Light years to local units.static double
Metre to local unit conversion.static final float
Max ambient light.static final float
static final float
static final float
Maximum camera speed.static final float
static final float
static final float
static final float
static final float
static final float
static final long
static final float
static final float
Maximum fov value, in degrees.static final double
Maximum limit/frame/camrec fps value.static final float
static final float
static final float
static final float
static final float
static final float
Maximum angle where the LOD transitions end.static final float
static final float
static final float
static final int
static final float
static final float
Maximum length factor for proper motion vectors.static final float
Maximum number factor for proper motion vectors.static final float
static final float
static final float
Maximum rotation speed.static final float
static final float
Maximum spacecraft responsiveness.static final float
static final float
Maximum generic slider value.static final float
Maximum star brightness.static final float
Maximum star brightness power.static final float
Maximum star glow factor.static final float
Maximum star minimum opacity.static final float
Maximum star pixel size.static final float
static final int
static final float
Maximum turning speed.static final float
static final int
Maximum number of velocity vectors per star group.static final long
static final double
static final double
Bytes to MBstatic final float
Min ambient light.static final float
static final float
static final float
Minimum camera speed.static final float
static final float
static final float
static final float
static final float
static final float
static final long
static final float
static final float
Minimum fov value, in degrees.static final double
Minimum limit/frame/camrec fps value.static final float
static final float
static final float
static final float
static final float
static final float
Minimum angle where the LOD transitions start.static final float
static final float
static final float
static final int
static final float
static final float
Minimum length factor for proper motion vectors.static final float
Minimum number factor for proper motion vectors.static final float
static final float
static final float
Minimum rotation speed.static final float
static final float
Minimum spacecraft responsiveness.static final float
static final float
Minimum generic slider value.static final float
Minimum generic slider value (1).static final float
Minimum star brightness.static final float
Minimum star brightness power.static final float
Minimum star glow factor.static final float
Minimum star minimum opacity.static final float
Minimum star pixel size.static final float
static final int
static final float
Minimum turning speed.static final float
static final int
Minimum number of velocity vectors per star group.static final long
static final double
static final float
static final float
static double
Megaparsec to local unit conversion.static final int
Number of directional lights.static final int
Number of point lights.static final int
Number of spotlights.static final String
static final String
static double
static final double
Disc factor for single particles and stars.static double
Parsec to local unit conversion.static final int
Apfloat
default precision.static final double
Solar radius in Kmstatic double
Solar radius to local unitsstatic final float
Default step value for sliders.static final float
Default step value for sliders (small).static final float
Default step value for sliders (tiny).static final float
Default step value for sliders (weeny).static final double
Size factor for all stars.static final double
Solid angle bottom threshold for stars.static final double
Solid angle top threshold for stars.static final String
static double
Local unit to AU conversion.static double
Local unit to km conversion.static double
Local unit to Kpc conversion.static double
Local units to light years.static double
Local unit to m conversion.static double
Local unit to pc conversion.static double
Units to solar radiusstatic final float
static final float
static final float
static final float
static final String
static final String
static final String
static final String
static final String
static final String
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
static long
static void
initialize
(double distanceScaleFactor) static boolean
notWithinVSOPTime
(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_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:
-
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
Generated height keyword.- See Also:
-
URL_GAIA_JSON_SOURCE
- See Also:
-
URL_HIP_JSON_SOURCE
- See Also:
-
URL_GAIA_WEB_SOURCE
- See Also:
-
URL_SIMBAD
- See Also:
-
URL_WIKIPEDIA
- See Also:
-
URL_WIKI_API_SUMMARY
- See Also:
-
PREC
public static final int PRECApfloat
default precision.- 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. -
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.
-