Package gaiasky.util
Class GlobalConf.ProgramConf
java.lang.Object
gaiasky.util.GlobalConf.ProgramConf
- All Implemented Interfaces:
IObserver,GlobalConf.IConf
- Enclosing class:
- GlobalConf
public static class GlobalConf.ProgramConf extends java.lang.Object implements GlobalConf.IConf, IObserver
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGlobalConf.ProgramConf.OriginTypestatic classGlobalConf.ProgramConf.StereoProfile -
Field Summary
Fields Modifier and Type Field Description intCUBEMAP_FACE_RESOLUTIONbooleanCUBEMAP_MODECubemapProjections.CubemapProjectionCUBEMAP_PROJECTIONjava.lang.StringDATA_DESCRIPTOR_URLjava.lang.StringDATA_MIRROR_URLbooleanDISPLAY_HUDbooleanDISPLAY_MINIMAPbooleanDISPLAY_POINTER_COORDSbooleanDISPLAY_POINTER_GUIDESbooleanEXIT_CONFIRMATIONbooleanFILE_CHOOSER_SHOW_HIDDENjava.lang.StringLAST_OPEN_LOCATIONjava.lang.StringLOCALEbooleanMINIMAP_IN_WINDOWfloatMINIMAP_SIZEbooleanNET_MASTERIn a client-server configuration, this instance of Gaia Sky acts as a master and sends the state over the network to the slaves if this is set to truejava.util.List<java.lang.String>NET_MASTER_SLAVESList of slave URL locations.booleanNET_SLAVEIn a client-server configuration, this instance of Gaia Sky acts as a slave and receives the state over the network if this is set to truejava.lang.StringNET_SLAVE_BLENDBlend PNG filejava.lang.StringNET_SLAVE_CONFIGIf this is a slave, this entry contains the path to the MPCDI configuration file for this instancefloatNET_SLAVE_PITCHSlave pitch angle (turn head up), in degreesfloatNET_SLAVE_ROLLSlave roll angle (rotate head cw), in degreesjava.lang.StringNET_SLAVE_WARPWarp PFM filefloatNET_SLAVE_YAWSlave yaw angle (turn head right), in degreesfloatPLANETARIUM_ANGLEfloatPLANETARIUM_APERTUREfloat[]POINTER_GUIDES_COLORfloatPOINTER_GUIDES_WIDTHGlobalConf.ProgramConf.OriginTypeRECURSIVE_GRID_ORIGINbooleanRECURSIVE_GRID_ORIGIN_LINESintREST_PORTbooleanSAFE_GRAPHICS_MODEbooleanSAFE_GRAPHICS_MODE_FLAGjava.lang.StringSCRIPT_LOCATIONbooleanSHOW_DEBUG_INFOGlobalConf.ProgramConf.StereoProfileSTEREO_PROFILEfloatSTEREOSCOPIC_EYE_SEPARATION_MbooleanSTEREOSCOPIC_MODEfloatUI_SCALEjava.lang.StringUI_THEMEstatic longVERSION_CHECK_INTERVAL_MSjava.lang.StringVERSION_CHECK_URLjava.time.InstantVERSION_LAST_TIMEjava.lang.StringVERSION_LAST_VERSION -
Constructor Summary
Constructors Constructor Description ProgramConf() -
Method Summary
Modifier and Type Method Description booleanareSlaveConfigPropertiesPresent()Checks whether the slave is configured directly in the properties file of Gaia Skyjava.lang.StringgetLastCheckedString()java.lang.StringgetNetName()java.lang.StringgetUIThemeBase()Gets the name of the UI theme without the "-x2" suffixvoidinitialize(boolean sHOW_DEBUG_INFO, java.lang.String uI_THEME, java.lang.String lOCALE, boolean sTEREOSCOPIC_MODE, GlobalConf.ProgramConf.StereoProfile sTEREO_PROFILE)voidinitialize(boolean sHOW_DEBUG_INFO, java.time.Instant lAST_CHECKED, java.lang.String lAST_VERSION, java.lang.String vERSION_CHECK_URL, java.lang.String dATA_DESCRIPTOR_URL, java.lang.String uI_THEME, float uI_SCALE, java.lang.String sCRIPT_LOCATION, int rEST_PORT, java.lang.String lOCALE, boolean sTEREOSCOPIC_MODE, GlobalConf.ProgramConf.StereoProfile sTEREO_PROFILE, boolean cUBEMAP_MODE, CubemapProjections.CubemapProjection cUBEMAP_PROJECTION, int cUBEMAP_FACE_RESOLUTION, boolean dISPLAY_HUD, boolean dISPLAY_POINTER_COORDS, boolean nET_MASTER, boolean nET_SLAVE, java.util.List<java.lang.String> nET_MASTER_SLAVES, java.lang.String nET_SLAVE_CONFIG, float nET_SLAVE_YAW, float nET_SLAVE_PITCH, float nET_SLAVE_ROLL, java.lang.String nET_SLAVE_WARP, java.lang.String nET_SLAVE_BLEND, java.lang.String lAST_OPEN_LOCATION, boolean dISPLAY_MINIMAP, float mINIMAP_SIZE, float pLANETARIUM_APERTURE, float pLANETARIUM_ANGLE, boolean dISPLAY_POINTER_GUIDES, float[] pOINTER_GUIDES_COLOR, float pOINTER_GUIDES_WIDTH, GlobalConf.ProgramConf.OriginType rECURSIVE_GRID_ORIGIN, boolean rECURSIVE_GRID_ORIGIN_LINES, boolean eXIT_CONFIRMATION, java.lang.String mIRROR, boolean sAFE_GRAPHICS_MODE, boolean fILE_CHOOSER_SHOW_HIDDEN)booleanisFixedFov()Checks whether we are in fixed fov mode (slave, planetarium, panorama)booleanisHiDPITheme()booleanisMaster()booleanisPanorama()Checks whether the program is in panorama modebooleanisPlanetarium()Checks whether the program is in planetarium modebooleanisSlave()booleanisSlaveMPCDIPresent()Checks whether the MPCDI configuration file for this slave is setbooleanisStereoFullWidth()booleanisStereoHalfViewport()booleanisStereoHalfWidth()booleanisUINightMode()Returns whether the UI theme is in night modevoidnotify(Events event, java.lang.Object... data)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
NET_SLAVE
public boolean NET_SLAVEIn a client-server configuration, this instance of Gaia Sky acts as a slave and receives the state over the network if this is set to true -
NET_MASTER
public boolean NET_MASTERIn a client-server configuration, this instance of Gaia Sky acts as a master and sends the state over the network to the slaves if this is set to true -
NET_MASTER_SLAVES
public java.util.List<java.lang.String> NET_MASTER_SLAVESList of slave URL locations. Only relevant if {NET_MASTERis true -
NET_SLAVE_CONFIG
public java.lang.String NET_SLAVE_CONFIGIf this is a slave, this entry contains the path to the MPCDI configuration file for this instance -
NET_SLAVE_YAW
public float NET_SLAVE_YAWSlave yaw angle (turn head right), in degrees -
NET_SLAVE_PITCH
public float NET_SLAVE_PITCHSlave pitch angle (turn head up), in degrees -
NET_SLAVE_ROLL
public float NET_SLAVE_ROLLSlave roll angle (rotate head cw), in degrees -
NET_SLAVE_WARP
public java.lang.String NET_SLAVE_WARPWarp PFM file -
NET_SLAVE_BLEND
public java.lang.String NET_SLAVE_BLENDBlend PNG file -
SHOW_DEBUG_INFO
public boolean SHOW_DEBUG_INFO -
SAFE_GRAPHICS_MODE
public boolean SAFE_GRAPHICS_MODE -
SAFE_GRAPHICS_MODE_FLAG
public boolean SAFE_GRAPHICS_MODE_FLAG -
VERSION_CHECK_INTERVAL_MS
public static long VERSION_CHECK_INTERVAL_MS -
VERSION_LAST_TIME
public java.time.Instant VERSION_LAST_TIME -
VERSION_LAST_VERSION
public java.lang.String VERSION_LAST_VERSION -
VERSION_CHECK_URL
public java.lang.String VERSION_CHECK_URL -
DATA_MIRROR_URL
public java.lang.String DATA_MIRROR_URL -
DATA_DESCRIPTOR_URL
public java.lang.String DATA_DESCRIPTOR_URL -
UI_THEME
public java.lang.String UI_THEME -
UI_SCALE
public float UI_SCALE -
SCRIPT_LOCATION
public java.lang.String SCRIPT_LOCATION -
LAST_OPEN_LOCATION
public java.lang.String LAST_OPEN_LOCATION -
REST_PORT
public int REST_PORT -
LOCALE
public java.lang.String LOCALE -
DISPLAY_HUD
public boolean DISPLAY_HUD -
DISPLAY_POINTER_COORDS
public boolean DISPLAY_POINTER_COORDS -
DISPLAY_POINTER_GUIDES
public boolean DISPLAY_POINTER_GUIDES -
POINTER_GUIDES_COLOR
public float[] POINTER_GUIDES_COLOR -
POINTER_GUIDES_WIDTH
public float POINTER_GUIDES_WIDTH -
RECURSIVE_GRID_ORIGIN
-
RECURSIVE_GRID_ORIGIN_LINES
public boolean RECURSIVE_GRID_ORIGIN_LINES -
DISPLAY_MINIMAP
public boolean DISPLAY_MINIMAP -
MINIMAP_SIZE
public float MINIMAP_SIZE -
MINIMAP_IN_WINDOW
public boolean MINIMAP_IN_WINDOW -
CUBEMAP_MODE
public boolean CUBEMAP_MODE -
CUBEMAP_PROJECTION
-
CUBEMAP_FACE_RESOLUTION
public int CUBEMAP_FACE_RESOLUTION -
PLANETARIUM_APERTURE
public float PLANETARIUM_APERTURE -
PLANETARIUM_ANGLE
public float PLANETARIUM_ANGLE -
STEREOSCOPIC_MODE
public boolean STEREOSCOPIC_MODE -
STEREOSCOPIC_EYE_SEPARATION_M
public float STEREOSCOPIC_EYE_SEPARATION_M -
STEREO_PROFILE
-
EXIT_CONFIRMATION
public boolean EXIT_CONFIRMATION -
FILE_CHOOSER_SHOW_HIDDEN
public boolean FILE_CHOOSER_SHOW_HIDDEN
-
-
Constructor Details
-
ProgramConf
public ProgramConf()
-
-
Method Details
-
initialize
public void initialize(boolean sHOW_DEBUG_INFO, java.time.Instant lAST_CHECKED, java.lang.String lAST_VERSION, java.lang.String vERSION_CHECK_URL, java.lang.String dATA_DESCRIPTOR_URL, java.lang.String uI_THEME, float uI_SCALE, java.lang.String sCRIPT_LOCATION, int rEST_PORT, java.lang.String lOCALE, boolean sTEREOSCOPIC_MODE, GlobalConf.ProgramConf.StereoProfile sTEREO_PROFILE, boolean cUBEMAP_MODE, CubemapProjections.CubemapProjection cUBEMAP_PROJECTION, int cUBEMAP_FACE_RESOLUTION, boolean dISPLAY_HUD, boolean dISPLAY_POINTER_COORDS, boolean nET_MASTER, boolean nET_SLAVE, java.util.List<java.lang.String> nET_MASTER_SLAVES, java.lang.String nET_SLAVE_CONFIG, float nET_SLAVE_YAW, float nET_SLAVE_PITCH, float nET_SLAVE_ROLL, java.lang.String nET_SLAVE_WARP, java.lang.String nET_SLAVE_BLEND, java.lang.String lAST_OPEN_LOCATION, boolean dISPLAY_MINIMAP, float mINIMAP_SIZE, float pLANETARIUM_APERTURE, float pLANETARIUM_ANGLE, boolean dISPLAY_POINTER_GUIDES, float[] pOINTER_GUIDES_COLOR, float pOINTER_GUIDES_WIDTH, GlobalConf.ProgramConf.OriginType rECURSIVE_GRID_ORIGIN, boolean rECURSIVE_GRID_ORIGIN_LINES, boolean eXIT_CONFIRMATION, java.lang.String mIRROR, boolean sAFE_GRAPHICS_MODE, boolean fILE_CHOOSER_SHOW_HIDDEN) -
initialize
public void initialize(boolean sHOW_DEBUG_INFO, java.lang.String uI_THEME, java.lang.String lOCALE, boolean sTEREOSCOPIC_MODE, GlobalConf.ProgramConf.StereoProfile sTEREO_PROFILE) -
getLastCheckedString
public java.lang.String getLastCheckedString() -
isStereoHalfWidth
public boolean isStereoHalfWidth() -
isStereoFullWidth
public boolean isStereoFullWidth() -
isStereoHalfViewport
public boolean isStereoHalfViewport() -
isUINightMode
public boolean isUINightMode()Returns whether the UI theme is in night mode- Returns:
-
getUIThemeBase
public java.lang.String getUIThemeBase()Gets the name of the UI theme without the "-x2" suffix- Returns:
- The base UI theme name
-
isHiDPITheme
public boolean isHiDPITheme() -
getNetName
public java.lang.String getNetName() -
isMaster
public boolean isMaster() -
isSlave
public boolean isSlave() -
isSlaveMPCDIPresent
public boolean isSlaveMPCDIPresent()Checks whether the MPCDI configuration file for this slave is set- Returns:
- Whether the MPCDI file for this slave is set
-
areSlaveConfigPropertiesPresent
public boolean areSlaveConfigPropertiesPresent()Checks whether the slave is configured directly in the properties file of Gaia Sky- Returns:
- Whether the slave is configured in the properties file
-
isPlanetarium
public boolean isPlanetarium()Checks whether the program is in planetarium mode- Returns:
- Whether planetarium mode is on
-
isPanorama
public boolean isPanorama()Checks whether the program is in panorama mode- Returns:
- Whether panorama mode is on
-
isFixedFov
public boolean isFixedFov()Checks whether we are in fixed fov mode (slave, planetarium, panorama)- Returns:
- Whether we are in a fixed-fov mode
-
notify
-