Package gaiasky.util
Class Constants
java.lang.Object
gaiasky.util.Constants
This class contains some constant values, global to the workings
of Gaia Sky
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic double
AU to local units conversion.static double
static double
Speed of light in m/sstatic double
Speed of light in km/hstatic double
Speed of light in internal units per secondstatic double
Logarithmic depth buffer constant.static double
Distance unit scaling (mainly for VR)static double
Kilometre to local unit conversion.static double
Kiloparsec to local unit conversion.static double
Light years to local units.static double
Metre to local unit conversion.static float
Max ambient lightstatic float
static float
Maximum camera speedstatic float
static float
static float
static float
static float
static float
Maximum fov value, in degreesstatic double
Maximum limit/frame/camrec fps valuestatic float
static float
static float
static float
static float
Maximum angle where the LOD transitions endstatic float
static float
static float
Maximum length factor for proper motion vectorsstatic float
Maximum number factor for proper motion vectorsstatic float
static float
Maximum rotation speedstatic float
static float
Maximum spacecraft responsivenessstatic float
Maximum generic slider valuestatic float
Maximum star brightnessstatic float
Maximum star brightness powerstatic float
Maximum star minimum opacitystatic float
Maximum star pixel sizestatic float
static float
Maximum turning speedstatic float
static long
static double
static double
Bytes to MBstatic float
Min ambient lightstatic float
static float
Minimum camera speedstatic float
static float
static float
static float
static float
static float
Minimum fov value, in degreesstatic double
Minimum limit/frame/camrec fps valuestatic float
static float
static float
static float
static float
Minimum angle where the LOD transitions startstatic float
static float
static float
Minimum length factor for proper motion vectorsstatic float
Minimum number factor for proper motion vectorsstatic float
static float
Minimum rotation speedstatic float
static float
Minimum spacecraft responsivenessstatic float
Minimum generic slider valuestatic float
Minimum generic slider value (1)static float
Minimum star brightnessstatic float
Minimum star brightness powerstatic float
Minimum star minimum opacitystatic float
Minimum star pixel sizestatic float
static float
Minimum turning speedstatic float
static long
static double
static double
Megaparsec to local unit conversion.static int
Number of directional lightsstatic String
static String
static double
static double
Parsec to local unit conversion.static int
Apfloat
default precisionstatic double
Solar radius in Kmstatic double
Solar radius to local unitsstatic float
Default step value for slidersstatic float
Default step value for sliders (small)static float
Default step value for sliders (tiny)static double
Factor we need to use to get the real size of the star given its quad *texture* sizestatic String
static double
Threshold radius/distance where star size remains constant.static double
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 float
static float
static float
static float
static String
static String
static String
static String
static String
static String
static int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic float
static void
initialize(double distanceScaleFactor)
static boolean
withinVSOPTime(long time)
Checks whether the given time is within the acceptable bounds of VSOP87 algorithms.
-
Field Details
-
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_UKiloparsec 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. -
C
public static final double CSpeed of light in m/s- See Also:
- Constant Field Values
-
C_KMH
public static final double C_KMHSpeed of light in km/h- See Also:
- Constant Field Values
-
C_US
public static double C_USSpeed of light in internal units per second -
Ro_TO_KM
public static final double Ro_TO_KMSolar radius in Km- See Also:
- Constant Field Values
-
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 -
MB_TO_BYTE
public static final double MB_TO_BYTEBytes to MB- See Also:
- Constant Field Values
-
BYTE_TO_MB
public static final double BYTE_TO_MB- See Also:
- Constant Field Values
-
CAMERA_K
public static double CAMERA_KLogarithmic depth buffer constant. Controls the resolution close to the camera -
STAR_SIZE_FACTOR
public static final double STAR_SIZE_FACTORFactor we need to use to get the real size of the star given its quad *texture* size- See Also:
- Constant Field Values
-
THRESHOLD_DOWN
public static final double THRESHOLD_DOWNThreshold radius/distance where star size remains constant.- See Also:
- Constant Field Values
-
THRESHOLD_UP
public static final double THRESHOLD_UP- See Also:
- Constant Field Values
-
MIN_SLIDER
public static final float MIN_SLIDERMinimum generic slider value- See Also:
- Constant Field Values
-
MIN_SLIDER_1
public static final float MIN_SLIDER_1Minimum generic slider value (1)- See Also:
- Constant Field Values
-
MAX_SLIDER
public static final float MAX_SLIDERMaximum generic slider value- See Also:
- Constant Field Values
-
SLIDER_STEP
public static final float SLIDER_STEPDefault step value for sliders- See Also:
- Constant Field Values
-
SLIDER_STEP_SMALL
public static final float SLIDER_STEP_SMALLDefault step value for sliders (small)- See Also:
- Constant Field Values
-
SLIDER_STEP_TINY
public static final float SLIDER_STEP_TINYDefault step value for sliders (tiny)- See Also:
- Constant Field Values
-
MAX_FOV
public static final float MAX_FOVMaximum fov value, in degrees- See Also:
- Constant Field Values
-
MIN_FOV
public static final float MIN_FOVMinimum fov value, in degrees- See Also:
- Constant Field Values
-
MIN_FPS
public static final double MIN_FPSMinimum limit/frame/camrec fps value- See Also:
- Constant Field Values
-
MAX_FPS
public static final double MAX_FPSMaximum limit/frame/camrec fps value- See Also:
- Constant Field Values
-
MAX_CAM_SPEED
public static final float MAX_CAM_SPEEDMaximum camera speed- See Also:
- Constant Field Values
-
MIN_CAM_SPEED
public static final float MIN_CAM_SPEEDMinimum camera speed- See Also:
- Constant Field Values
-
MAX_ROT_SPEED
public static final float MAX_ROT_SPEEDMaximum rotation speed- See Also:
- Constant Field Values
-
MIN_ROT_SPEED
public static final float MIN_ROT_SPEEDMinimum rotation speed- See Also:
- Constant Field Values
-
MAX_TURN_SPEED
public static final float MAX_TURN_SPEEDMaximum turning speed- See Also:
- Constant Field Values
-
MIN_TURN_SPEED
public static final float MIN_TURN_SPEEDMinimum turning speed- See Also:
- Constant Field Values
-
MIN_STAR_BRIGHTNESS
public static final float MIN_STAR_BRIGHTNESSMinimum star brightness- See Also:
- Constant Field Values
-
MAX_STAR_BRIGHTNESS
public static final float MAX_STAR_BRIGHTNESSMaximum star brightness- See Also:
- Constant Field Values
-
MIN_UNSHARP_MASK_FACTOR
public static final float MIN_UNSHARP_MASK_FACTOR- See Also:
- Constant Field Values
-
MAX_UNSHARP_MASK_FACTOR
public static final float MAX_UNSHARP_MASK_FACTOR- See Also:
- Constant Field Values
-
MIN_STAR_BRIGHTNESS_POW
public static final float MIN_STAR_BRIGHTNESS_POWMinimum star brightness power- See Also:
- Constant Field Values
-
MAX_STAR_BRIGHTNESS_POW
public static final float MAX_STAR_BRIGHTNESS_POWMaximum star brightness power- See Also:
- Constant Field Values
-
MIN_STAR_POINT_SIZE
public static final float MIN_STAR_POINT_SIZEMinimum star pixel size- See Also:
- Constant Field Values
-
MAX_STAR_POINT_SIZE
public static final float MAX_STAR_POINT_SIZEMaximum star pixel size- See Also:
- Constant Field Values
-
MIN_STAR_MIN_OPACITY
public static final float MIN_STAR_MIN_OPACITYMinimum star minimum opacity- See Also:
- Constant Field Values
-
MAX_STAR_MIN_OPACITY
public static final float MAX_STAR_MIN_OPACITYMaximum star minimum opacity- See Also:
- Constant Field Values
-
MIN_PM_NUM_FACTOR
public static final float MIN_PM_NUM_FACTORMinimum number factor for proper motion vectors- See Also:
- Constant Field Values
-
MAX_PM_NUM_FACTOR
public static final float MAX_PM_NUM_FACTORMaximum number factor for proper motion vectors- See Also:
- Constant Field Values
-
MIN_PM_LEN_FACTOR
public static final float MIN_PM_LEN_FACTORMinimum length factor for proper motion vectors- See Also:
- Constant Field Values
-
MAX_PM_LEN_FACTOR
public static final float MAX_PM_LEN_FACTORMaximum length factor for proper motion vectors- See Also:
- Constant Field Values
-
MIN_LOD_TRANS_ANGLE_DEG
public static final float MIN_LOD_TRANS_ANGLE_DEGMinimum angle where the LOD transitions start- See Also:
- Constant Field Values
-
MAX_LOD_TRANS_ANGLE_DEG
public static final float MAX_LOD_TRANS_ANGLE_DEGMaximum angle where the LOD transitions end- See Also:
- Constant Field Values
-
MIN_AMBIENT_LIGHT
public static final float MIN_AMBIENT_LIGHTMin ambient light- See Also:
- Constant Field Values
-
MAX_AMBIENT_LIGHT
public static final float MAX_AMBIENT_LIGHTMax ambient light- See Also:
- Constant Field Values
-
MIN_SC_RESPONSIVENESS
public static final float MIN_SC_RESPONSIVENESSMinimum spacecraft responsiveness- See Also:
- Constant Field Values
-
MAX_SC_RESPONSIVENESS
public static final float MAX_SC_RESPONSIVENESSMaximum spacecraft responsiveness- See Also:
- Constant Field Values
-
MIN_BRIGHTNESS
public static final float MIN_BRIGHTNESS- See Also:
- Constant Field Values
-
MAX_BRIGHTNESS
public static final float MAX_BRIGHTNESS- See Also:
- Constant Field Values
-
MIN_CONTRAST
public static final float MIN_CONTRAST- See Also:
- Constant Field Values
-
MAX_CONTRAST
public static final float MAX_CONTRAST- See Also:
- Constant Field Values
-
MIN_HUE
public static final float MIN_HUE- See Also:
- Constant Field Values
-
MAX_HUE
public static final float MAX_HUE- See Also:
- Constant Field Values
-
MIN_SATURATION
public static final float MIN_SATURATION- See Also:
- Constant Field Values
-
MAX_SATURATION
public static final float MAX_SATURATION- See Also:
- Constant Field Values
-
MIN_GAMMA
public static final float MIN_GAMMA- See Also:
- Constant Field Values
-
MAX_GAMMA
public static final float MAX_GAMMA- See Also:
- Constant Field Values
-
MIN_EXPOSURE
public static final float MIN_EXPOSURE- See Also:
- Constant Field Values
-
MAX_EXPOSURE
public static final float MAX_EXPOSURE- See Also:
- Constant Field Values
-
MIN_LABEL_SIZE
public static final float MIN_LABEL_SIZE- See Also:
- Constant Field Values
-
MAX_LABEL_SIZE
public static final float MAX_LABEL_SIZE- See Also:
- Constant Field Values
-
MIN_LINE_WIDTH
public static final float MIN_LINE_WIDTH- See Also:
- Constant Field Values
-
MAX_LINE_WIDTH
public static final float MAX_LINE_WIDTH- See Also:
- Constant Field Values
-
MIN_ELEVATION_MULT
public static final float MIN_ELEVATION_MULT- See Also:
- Constant Field Values
-
MAX_ELEVATION_MULT
public static final float MAX_ELEVATION_MULT- See Also:
- Constant Field Values
-
MIN_TESS_QUALITY
public static final float MIN_TESS_QUALITY- See Also:
- Constant Field Values
-
MAX_TESS_QUALITY
public static final float MAX_TESS_QUALITY- See Also:
- Constant Field Values
-
MIN_PARTICLE_SIZE
public static final float MIN_PARTICLE_SIZE- See Also:
- Constant Field Values
-
MAX_PARTICLE_SIZE
public static final float MAX_PARTICLE_SIZE- See Also:
- Constant Field Values
-
MIN_COLOR_NOISE
public static final float MIN_COLOR_NOISE- See Also:
- Constant Field Values
-
MAX_COLOR_NOISE
public static final float MAX_COLOR_NOISE- See Also:
- Constant Field Values
-
MIN_POINTER_GUIDES_WIDTH
public static final float MIN_POINTER_GUIDES_WIDTH- See Also:
- Constant Field Values
-
MAX_POINTER_GUIDES_WIDTH
public static final float MAX_POINTER_GUIDES_WIDTH- See Also:
- Constant Field Values
-
UI_SCALE_INTERNAL_MIN
public static final float UI_SCALE_INTERNAL_MIN- See Also:
- Constant Field Values
-
UI_SCALE_INTERNAL_MAX
public static final float UI_SCALE_INTERNAL_MAX- See Also:
- Constant Field Values
-
UI_SCALE_MIN
public static final float UI_SCALE_MIN- See Also:
- Constant Field Values
-
UI_SCALE_MAX
public static final float UI_SCALE_MAX- See Also:
- Constant Field Values
-
MAX_VSOP_TIME_MS
public static final long MAX_VSOP_TIME_MS- See Also:
- Constant Field Values
-
MIN_VSOP_TIME_MS
public static final long MIN_VSOP_TIME_MS- See Also:
- Constant Field Values
-
WARP_STEPS
public static final int WARP_STEPS- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
MIN_DATASET_SIZE_FACTOR
public static final float MIN_DATASET_SIZE_FACTOR- See Also:
- Constant Field Values
-
MAX_MINIMAP_SIZE
public static final float MAX_MINIMAP_SIZE- See Also:
- Constant Field Values
-
MIN_MINIMAP_SIZE
public static final float MIN_MINIMAP_SIZE- See Also:
- Constant Field Values
-
nameSeparatorRegex
- See Also:
- Constant Field Values
-
nameSeparator
- See Also:
- Constant Field Values
-
STAR_SUBSTITUTE
- See Also:
- Constant Field Values
-
URL_GAIA_JSON_SOURCE
- See Also:
- Constant Field Values
-
URL_HIP_JSON_SOURCE
- See Also:
- Constant Field Values
-
URL_GAIA_WEB_SOURCE
- See Also:
- Constant Field Values
-
URL_SIMBAD
- See Also:
- Constant Field Values
-
URL_WIKIPEDIA
- See Also:
- Constant Field Values
-
URL_WIKI_API_SUMMARY
- See Also:
- Constant Field Values
-
PREC
public static final int PRECApfloat
default precision- See Also:
- Constant Field Values
-
N_DIR_LIGHTS
public static final int N_DIR_LIGHTSNumber of directional lights- See Also:
- Constant Field Values
-
-
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
-