Package gaiasky.util
Class Constants
- java.lang.Object
-
- gaiasky.util.Constants
-
public class Constants extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static doubleAU_TO_UAU to local units conversion.static doubleBYTE_TO_MBstatic doubleCSpeed of light in m/sstatic doubleC_KMHSpeed of light in km/hstatic doubleC_USSpeed of light in internal units per secondstatic doubleCAMERA_KLogarithmic depth buffer constant.static doubleDISTANCE_SCALE_FACTORDistance unit scaling (mainly for VR)static doubleKM_TO_UKilometre to local unit conversion.static doubleKPC_TO_UKiloparsec to local unit conversion.static doubleLY_TO_ULight years to local units.static doubleM_TO_UMetre to local unit conversion.static floatMAX_AMBIENT_LIGHTMax ambient lightstatic floatMAX_AXIS_SENSITIVITYstatic floatMAX_BRIGHTNESSstatic floatMAX_CAM_SPEEDMaximum camera speedstatic floatMAX_COLOR_NOISEstatic floatMAX_CONTRASTstatic floatMAX_DATASET_SIZE_FACTORstatic floatMAX_ELEVATION_MULTstatic floatMAX_EXPOSUREstatic floatMAX_FOVMaximum fov value, in degreesstatic doubleMAX_FPSMaximum limit/frame/camrec fps valuestatic floatMAX_GAMMAstatic floatMAX_HUEstatic floatMAX_LABEL_SIZEstatic floatMAX_LINE_WIDTHstatic floatMAX_LOD_TRANS_ANGLE_DEGMaximum angle where the LOD transitions endstatic floatMAX_MINIMAP_SIZEstatic floatMAX_PARTICLE_SIZEstatic floatMAX_PM_LEN_FACTORMaximum length factor for proper motion vectorsstatic floatMAX_PM_NUM_FACTORMaximum number factor for proper motion vectorsstatic floatMAX_POINTER_GUIDES_WIDTHstatic floatMAX_PROFILE_DECAYstatic floatMAX_ROT_SPEEDMaximum rotation speedstatic floatMAX_SATURATIONstatic floatMAX_SC_RESPONSIVENESSMaximum spacecraft responsivenessstatic floatMAX_SLIDERMaximum generic slider valuestatic floatMAX_STAR_BRIGHTNESSMaximum star brightnessstatic floatMAX_STAR_BRIGHTNESS_POWMaximum star brightness powerstatic floatMAX_STAR_MIN_OPACITYMaximum star minimum opacitystatic floatMAX_STAR_POINT_SIZEMaximum star pixel sizestatic floatMAX_TESS_QUALITYstatic floatMAX_TURN_SPEEDMaximum turning speedstatic floatMAX_UNSHARP_MASK_FACTORstatic longMAX_VSOP_TIME_MSstatic doubleMAX_WARPstatic doubleMB_TO_BYTEBytes to MBstatic floatMIN_AMBIENT_LIGHTMin ambient lightstatic floatMIN_AXIS_SENSITIVITYstatic floatMIN_BRIGHTNESSstatic floatMIN_CAM_SPEEDMinimum camera speedstatic floatMIN_COLOR_NOISEstatic floatMIN_CONTRASTstatic floatMIN_DATASET_SIZE_FACTORstatic floatMIN_ELEVATION_MULTstatic floatMIN_EXPOSUREstatic floatMIN_FOVMinimum fov value, in degreesstatic doubleMIN_FPSMinimum limit/frame/camrec fps valuestatic floatMIN_GAMMAstatic floatMIN_HUEstatic floatMIN_LABEL_SIZEstatic floatMIN_LINE_WIDTHstatic floatMIN_LOD_TRANS_ANGLE_DEGMinimum angle where the LOD transitions startstatic floatMIN_MINIMAP_SIZEstatic floatMIN_PARTICLE_SIZEstatic floatMIN_PM_LEN_FACTORMinimum length factor for proper motion vectorsstatic floatMIN_PM_NUM_FACTORMinimum number factor for proper motion vectorsstatic floatMIN_POINTER_GUIDES_WIDTHstatic floatMIN_PROFILE_DECAYstatic floatMIN_ROT_SPEEDMinimum rotation speedstatic floatMIN_SATURATIONstatic floatMIN_SC_RESPONSIVENESSMinimum spacecraft responsivenessstatic floatMIN_SLIDERMinimum generic slider valuestatic floatMIN_SLIDER_1Minimum generic slider value (1)static floatMIN_STAR_BRIGHTNESSMinimum star brightnessstatic floatMIN_STAR_BRIGHTNESS_POWMinimum star brightness powerstatic floatMIN_STAR_MIN_OPACITYMinimum star minimum opacitystatic floatMIN_STAR_POINT_SIZEMinimum star pixel sizestatic floatMIN_TESS_QUALITYstatic floatMIN_TURN_SPEEDMinimum turning speedstatic floatMIN_UNSHARP_MASK_FACTORstatic longMIN_VSOP_TIME_MSstatic doubleMIN_WARPstatic doubleMPC_TO_UMegaparsec to local unit conversion.static java.lang.StringnameSeparatorstatic java.lang.StringnameSeparatorRegexstatic doubleORIGINAL_M_TO_Ustatic doublePC_TO_UParsec to local unit conversion.static doubleRo_TO_KMSolar radius in Kmstatic doubleRo_TO_USolar radius to local unitsstatic floatSLIDER_STEPDefault step value for slidersstatic floatSLIDER_STEP_SMALLDefault step value for sliders (small)static floatSLIDER_STEP_TINYDefault step value for sliders (tiny)static doubleSTAR_SIZE_FACTORFactor we need to use to get the real size of the star given its quad *texture* sizestatic java.lang.StringSTAR_SUBSTITUTEstatic doubleTHRESHOLD_DOWNThreshold radius/distance where star size remains constant.static doubleTHRESHOLD_UPstatic doubleU_TO_AULocal unit to AU conversion.static doubleU_TO_KMLocal unit to km conversion.static doubleU_TO_KPCLocal unit to Kpc conversion.static doubleU_TO_LYLocal units to light years.static doubleU_TO_MLocal unit to m conversion.static doubleU_TO_PCLocal unit to pc conversion.static doubleU_TO_RoUnits to solar radiusstatic floatUI_SCALE_INTERNAL_MAXstatic floatUI_SCALE_INTERNAL_MINstatic floatUI_SCALE_MAXstatic floatUI_SCALE_MINstatic java.lang.StringURL_GAIA_JSON_SOURCEstatic java.lang.StringURL_GAIA_WEB_SOURCEstatic java.lang.StringURL_HIP_JSON_SOURCEstatic java.lang.StringURL_SIMBADstatic java.lang.StringURL_WIKI_API_MOBILEHTMLstatic java.lang.StringURL_WIKI_API_SUMMARYstatic java.lang.StringURL_WIKIPEDIAstatic intWARP_STEPS
-
Constructor Summary
Constructors Constructor Description Constants()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static floatgetCameraK()static voidinitialize(double distanceScaleFactor)static booleanwithinVSOPTime(long time)Checks whether the given time is within the acceptable bounds of VSOP87 algorithms.
-
-
-
Field Detail
-
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.
-
C
public static final double C
Speed of light in m/s- See Also:
- Constant Field Values
-
C_KMH
public static final double C_KMH
Speed of light in km/h- See Also:
- Constant Field Values
-
C_US
public static double C_US
Speed of light in internal units per second
-
Ro_TO_KM
public static final double Ro_TO_KM
Solar radius in Km- See Also:
- Constant Field Values
-
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
-
MB_TO_BYTE
public static final double MB_TO_BYTE
Bytes 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_K
Logarithmic depth buffer constant. Controls the resolution close to the camera
-
STAR_SIZE_FACTOR
public static final double STAR_SIZE_FACTOR
Factor 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_DOWN
Threshold 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_SLIDER
Minimum generic slider value- See Also:
- Constant Field Values
-
MIN_SLIDER_1
public static final float MIN_SLIDER_1
Minimum generic slider value (1)- See Also:
- Constant Field Values
-
MAX_SLIDER
public static final float MAX_SLIDER
Maximum generic slider value- See Also:
- Constant Field Values
-
SLIDER_STEP
public static final float SLIDER_STEP
Default step value for sliders- See Also:
- Constant Field Values
-
SLIDER_STEP_SMALL
public static final float SLIDER_STEP_SMALL
Default step value for sliders (small)- See Also:
- Constant Field Values
-
SLIDER_STEP_TINY
public static final float SLIDER_STEP_TINY
Default step value for sliders (tiny)- See Also:
- Constant Field Values
-
MAX_FOV
public static final float MAX_FOV
Maximum fov value, in degrees- See Also:
- Constant Field Values
-
MIN_FOV
public static final float MIN_FOV
Minimum fov value, in degrees- See Also:
- Constant Field Values
-
MIN_FPS
public static final double MIN_FPS
Minimum limit/frame/camrec fps value- See Also:
- Constant Field Values
-
MAX_FPS
public static final double MAX_FPS
Maximum limit/frame/camrec fps value- See Also:
- Constant Field Values
-
MAX_CAM_SPEED
public static final float MAX_CAM_SPEED
Maximum camera speed- See Also:
- Constant Field Values
-
MIN_CAM_SPEED
public static final float MIN_CAM_SPEED
Minimum camera speed- See Also:
- Constant Field Values
-
MAX_ROT_SPEED
public static final float MAX_ROT_SPEED
Maximum rotation speed- See Also:
- Constant Field Values
-
MIN_ROT_SPEED
public static final float MIN_ROT_SPEED
Minimum rotation speed- See Also:
- Constant Field Values
-
MAX_TURN_SPEED
public static final float MAX_TURN_SPEED
Maximum turning speed- See Also:
- Constant Field Values
-
MIN_TURN_SPEED
public static final float MIN_TURN_SPEED
Minimum turning speed- See Also:
- Constant Field Values
-
MIN_STAR_BRIGHTNESS
public static final float MIN_STAR_BRIGHTNESS
Minimum star brightness- See Also:
- Constant Field Values
-
MAX_STAR_BRIGHTNESS
public static final float MAX_STAR_BRIGHTNESS
Maximum 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_POW
Minimum star brightness power- See Also:
- Constant Field Values
-
MAX_STAR_BRIGHTNESS_POW
public static final float MAX_STAR_BRIGHTNESS_POW
Maximum star brightness power- See Also:
- Constant Field Values
-
MIN_STAR_POINT_SIZE
public static final float MIN_STAR_POINT_SIZE
Minimum star pixel size- See Also:
- Constant Field Values
-
MAX_STAR_POINT_SIZE
public static final float MAX_STAR_POINT_SIZE
Maximum star pixel size- See Also:
- Constant Field Values
-
MIN_STAR_MIN_OPACITY
public static final float MIN_STAR_MIN_OPACITY
Minimum star minimum opacity- See Also:
- Constant Field Values
-
MAX_STAR_MIN_OPACITY
public static final float MAX_STAR_MIN_OPACITY
Maximum star minimum opacity- See Also:
- Constant Field Values
-
MIN_PM_NUM_FACTOR
public static final float MIN_PM_NUM_FACTOR
Minimum number factor for proper motion vectors- See Also:
- Constant Field Values
-
MAX_PM_NUM_FACTOR
public static final float MAX_PM_NUM_FACTOR
Maximum number factor for proper motion vectors- See Also:
- Constant Field Values
-
MIN_PM_LEN_FACTOR
public static final float MIN_PM_LEN_FACTOR
Minimum length factor for proper motion vectors- See Also:
- Constant Field Values
-
MAX_PM_LEN_FACTOR
public static final float MAX_PM_LEN_FACTOR
Maximum length factor for proper motion vectors- See Also:
- Constant Field Values
-
MIN_LOD_TRANS_ANGLE_DEG
public static final float MIN_LOD_TRANS_ANGLE_DEG
Minimum angle where the LOD transitions start- See Also:
- Constant Field Values
-
MAX_LOD_TRANS_ANGLE_DEG
public static final float MAX_LOD_TRANS_ANGLE_DEG
Maximum angle where the LOD transitions end- See Also:
- Constant Field Values
-
MIN_AMBIENT_LIGHT
public static final float MIN_AMBIENT_LIGHT
Min ambient light- See Also:
- Constant Field Values
-
MAX_AMBIENT_LIGHT
public static final float MAX_AMBIENT_LIGHT
Max ambient light- See Also:
- Constant Field Values
-
MIN_SC_RESPONSIVENESS
public static final float MIN_SC_RESPONSIVENESS
Minimum spacecraft responsiveness- See Also:
- Constant Field Values
-
MAX_SC_RESPONSIVENESS
public static final float MAX_SC_RESPONSIVENESS
Maximum 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_PROFILE_DECAY
public static final float MIN_PROFILE_DECAY
- See Also:
- Constant Field Values
-
MAX_PROFILE_DECAY
public static final float MAX_PROFILE_DECAY
- 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
-
MIN_AXIS_SENSITIVITY
public static final float MIN_AXIS_SENSITIVITY
- See Also:
- Constant Field Values
-
MAX_AXIS_SENSITIVITY
public static final float MAX_AXIS_SENSITIVITY
- 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
public static final java.lang.String nameSeparatorRegex
- See Also:
- Constant Field Values
-
nameSeparator
public static final java.lang.String nameSeparator
- See Also:
- Constant Field Values
-
STAR_SUBSTITUTE
public static final java.lang.String STAR_SUBSTITUTE
- See Also:
- Constant Field Values
-
URL_GAIA_JSON_SOURCE
public static final java.lang.String URL_GAIA_JSON_SOURCE
- See Also:
- Constant Field Values
-
URL_HIP_JSON_SOURCE
public static final java.lang.String URL_HIP_JSON_SOURCE
- See Also:
- Constant Field Values
-
URL_GAIA_WEB_SOURCE
public static final java.lang.String URL_GAIA_WEB_SOURCE
- See Also:
- Constant Field Values
-
URL_SIMBAD
public static final java.lang.String URL_SIMBAD
- See Also:
- Constant Field Values
-
URL_WIKIPEDIA
public static final java.lang.String URL_WIKIPEDIA
- See Also:
- Constant Field Values
-
URL_WIKI_API_SUMMARY
public static final java.lang.String URL_WIKI_API_SUMMARY
- See Also:
- Constant Field Values
-
URL_WIKI_API_MOBILEHTML
public static final java.lang.String URL_WIKI_API_MOBILEHTML
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-