Package gaia.cu9.ari.gaiaorbit.util
Class GlobalConf.SceneConf
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.util.GlobalConf.SceneConf
-
- All Implemented Interfaces:
IObserver
,GlobalConf.IConf
- Enclosing class:
- GlobalConf
public static class GlobalConf.SceneConf extends java.lang.Object implements GlobalConf.IConf, IObserver
Contains preferences and attributes which define the scene
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GlobalConf.SceneConf.ElevationType
The type of elevation representation if elevation textures are presentstatic class
GlobalConf.SceneConf.GraphicsQuality
Graphics quality setting
-
Field Summary
Fields Modifier and Type Field Description double
AMBIENT_LIGHT
int
CAMERA_FOV
double
CAMERA_SPEED
double
CAMERA_SPEED_LIMIT
int
CAMERA_SPEED_LIMIT_IDX
boolean
CINEMATIC_CAMERA
boolean
COMPUTE_GAIA_SCAN
boolean
CROSSHAIR
Whether to show crosshair in focus modeint
CUBEMAP_FACE_RESOLUTION
Resolution of each of the faces in the cubemap which will be mapped to a equirectangular projection for the 360 mode.double
ELEVATION_MULTIPLIER
Elevation multiplierGlobalConf.SceneConf.ElevationType
ELEVATION_TYPE
How to represent elevation, if elevation textures present: Tessellation Parallax mapping Noneboolean
FOCUS_LOCK
boolean
FOCUS_LOCK_ORIENTATION
boolean
FREE_CAMERA_TARGET_MODE_ON
boolean
GALAXY_3D
Display galaxy as 3D object or as a 2D textureGlobalConf.SceneConf.GraphicsQuality
GRAPHICS_QUALITY
The graphics qualityfloat
LABEL_NUMBER_FACTOR
float
LABEL_SIZE_FACTOR
boolean
LAZY_MESH_INIT
Initializes meshes lazilyboolean
LAZY_TEXTURE_INIT
Lazy texture initialisation - textures are loaded only if neededint
LINE_RENDERER
The line render system: 0 - normal, 1 - shaderlong
MAX_LOADED_STARS
In the case of multifile LOD datasets (such as DR2+), this setting contains the maximum number of stars loaded at a time.long
N_PM_STARS
Overrides the maximum number of proper motion vectors that are allowed to showlong
OBJECT_FADE_MS
float
OCTANT_THRESHOLD_0
Angle [rad] above which we start painting stars in octant with fade infloat
OCTANT_THRESHOLD_1
Angle [rad] below which we paint stars in octant with fade out.boolean
OCTREE_PARTICLE_FADE
Particle fade in/out flag for octree-backed catalogs.boolean
ONLY_OBSERVED_STARS
int
ORBIT_RENDERER
Whether to use the general line renderer or a faster GPU-based approach 0 - Sorted lines (see LINE_RENDERER) - slower but looks better 1 - GPU VBO - faster but looks a bit worseboolean
PM_ARROWHEADS
Whether to show arrow caps or notint
PM_COLOR_MODE
Color mode for velocity vectors 0 - direction 1 - length 2 - has radial velocity 3 - redshift (sun) 4 - redshift (camera) 5 - single colorfloat
PM_LEN_FACTOR
Factor to apply to the length of the proper motion vectorsfloat
PM_NUM_FACTOR
This governs the number of proper motion vectors to displayfloat
POINT_ALPHA_MAX
float
POINT_ALPHA_MIN
double
ROTATION_SPEED
boolean
SHADOW_MAPPING
Shadows enabled or disabledint
SHADOW_MAPPING_N_SHADOWS
Max number of objects with shadowsint
SHADOW_MAPPING_RESOLUTION
Resolution of the shadow mapdouble
STAR_BRIGHTNESS
boolean
STAR_COLOR_TRANSIT
float
STAR_POINT_SIZE
Size of stars rendered as point primitivesfloat
STAR_POINT_SIZE_BAK
Fallback valuedouble
STAR_THRESHOLD_NONE
double
STAR_THRESHOLD_POINT
double
STAR_THRESHOLD_QUAD
java.lang.String
STARTUP_OBJECT
double
TESSELLATION_QUALITY
Quality of tessellationdouble
TURNING_SPEED
boolean[]
VISIBILITY
Visibility of component types
-
Constructor Summary
Constructors Constructor Description SceneConf()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(java.lang.String sTARTUP_OBJECT, GlobalConf.SceneConf.GraphicsQuality gRAPHICS_QUALITY, long oBJECT_FADE_MS, float sTAR_BRIGHTNESS, float aMBIENT_LIGHT, int cAMERA_FOV, float cAMERA_SPEED, float tURNING_SPEED, float rOTATION_SPEED, int cAMERA_SPEED_LIMIT_IDX, boolean fOCUS_LOCK, boolean fOCUS_LOCK_ORIENTATION, float lABEL_SIZE_FACTOR, float lABEL_NUMBER_FACTOR, boolean[] vISIBILITY, int oRBIT_RENDERER, int lINE_RENDERER, double sTAR_TH_ANGLE_NONE, double sTAR_TH_ANGLE_POINT, double sTAR_TH_ANGLE_QUAD, float pOINT_ALPHA_MIN, float pOINT_ALPHA_MAX, boolean oCTREE_PARTICLE_FADE, float oCTANT_TH_ANGLE_0, float oCTANT_TH_ANGLE_1, float pM_NUM_FACTOR, float pM_LEN_FACTOR, long n_PM_STARS, int pM_COLOR_MODE, boolean pM_ARROWHEADS, float sTAR_POINT_SIZE, boolean gALAXY_3D, int cUBEMAP_FACE_RESOLUTION, boolean cROSSHAIR, boolean cINEMATIC_CAMERA, boolean lAZY_TEXTURE_INIT, boolean fREE_CAMERA_TARGET_MODE_ON, boolean sHADOW_MAPPING, int sHADOW_MAPPING_N_SHADOWS, int sHADOW_MAPPING_RESOLUTION, long mAX_LOADED_STARS, GlobalConf.SceneConf.ElevationType eLEVATION_TYPE, double eLEVATION_MULTIPLIER, double tESSELLATION_QUALITY)
boolean
isNormalLineRenderer()
boolean
isQuadLineRenderer()
void
notify(Events event, java.lang.Object... data)
void
updateSpeedLimit()
-
-
-
Field Detail
-
STARTUP_OBJECT
public java.lang.String STARTUP_OBJECT
-
OBJECT_FADE_MS
public long OBJECT_FADE_MS
-
STAR_BRIGHTNESS
public double STAR_BRIGHTNESS
-
AMBIENT_LIGHT
public double AMBIENT_LIGHT
-
CAMERA_FOV
public int CAMERA_FOV
-
CAMERA_SPEED
public double CAMERA_SPEED
-
TURNING_SPEED
public double TURNING_SPEED
-
ROTATION_SPEED
public double ROTATION_SPEED
-
FREE_CAMERA_TARGET_MODE_ON
public boolean FREE_CAMERA_TARGET_MODE_ON
-
CAMERA_SPEED_LIMIT_IDX
public int CAMERA_SPEED_LIMIT_IDX
-
CAMERA_SPEED_LIMIT
public double CAMERA_SPEED_LIMIT
-
FOCUS_LOCK
public boolean FOCUS_LOCK
-
FOCUS_LOCK_ORIENTATION
public boolean FOCUS_LOCK_ORIENTATION
-
CINEMATIC_CAMERA
public boolean CINEMATIC_CAMERA
-
LABEL_SIZE_FACTOR
public float LABEL_SIZE_FACTOR
-
LABEL_NUMBER_FACTOR
public float LABEL_NUMBER_FACTOR
-
VISIBILITY
public boolean[] VISIBILITY
Visibility of component types
-
GALAXY_3D
public boolean GALAXY_3D
Display galaxy as 3D object or as a 2D texture
-
SHADOW_MAPPING
public boolean SHADOW_MAPPING
Shadows enabled or disabled
-
SHADOW_MAPPING_N_SHADOWS
public int SHADOW_MAPPING_N_SHADOWS
Max number of objects with shadows
-
SHADOW_MAPPING_RESOLUTION
public int SHADOW_MAPPING_RESOLUTION
Resolution of the shadow map
-
PM_LEN_FACTOR
public float PM_LEN_FACTOR
Factor to apply to the length of the proper motion vectors
-
PM_NUM_FACTOR
public float PM_NUM_FACTOR
This governs the number of proper motion vectors to display
-
N_PM_STARS
public long N_PM_STARS
Overrides the maximum number of proper motion vectors that are allowed to show
-
PM_COLOR_MODE
public int PM_COLOR_MODE
Color mode for velocity vectors- 0 - direction
- 1 - length
- 2 - has radial velocity
- 3 - redshift (sun)
- 4 - redshift (camera)
- 5 - single color
-
PM_ARROWHEADS
public boolean PM_ARROWHEADS
Whether to show arrow caps or not
-
STAR_COLOR_TRANSIT
public boolean STAR_COLOR_TRANSIT
-
ONLY_OBSERVED_STARS
public boolean ONLY_OBSERVED_STARS
-
COMPUTE_GAIA_SCAN
public boolean COMPUTE_GAIA_SCAN
-
ORBIT_RENDERER
public int ORBIT_RENDERER
Whether to use the general line renderer or a faster GPU-based approach- 0 - Sorted lines (see LINE_RENDERER) - slower but looks better
- 1 - GPU VBO - faster but looks a bit worse
-
LINE_RENDERER
public int LINE_RENDERER
The line render system: 0 - normal, 1 - shader
-
GRAPHICS_QUALITY
public GlobalConf.SceneConf.GraphicsQuality GRAPHICS_QUALITY
The graphics quality
-
LAZY_TEXTURE_INIT
public boolean LAZY_TEXTURE_INIT
Lazy texture initialisation - textures are loaded only if needed
-
LAZY_MESH_INIT
public boolean LAZY_MESH_INIT
Initializes meshes lazily
-
ELEVATION_TYPE
public GlobalConf.SceneConf.ElevationType ELEVATION_TYPE
How to represent elevation, if elevation textures present:- Tessellation
- Parallax mapping
- None
-
ELEVATION_MULTIPLIER
public double ELEVATION_MULTIPLIER
Elevation multiplier
-
TESSELLATION_QUALITY
public double TESSELLATION_QUALITY
Quality of tessellation
-
CROSSHAIR
public boolean CROSSHAIR
Whether to show crosshair in focus mode
-
CUBEMAP_FACE_RESOLUTION
public int CUBEMAP_FACE_RESOLUTION
Resolution of each of the faces in the cubemap which will be mapped to a equirectangular projection for the 360 mode.
-
STAR_THRESHOLD_NONE
public double STAR_THRESHOLD_NONE
-
STAR_THRESHOLD_POINT
public double STAR_THRESHOLD_POINT
-
STAR_THRESHOLD_QUAD
public double STAR_THRESHOLD_QUAD
-
POINT_ALPHA_MIN
public float POINT_ALPHA_MIN
-
POINT_ALPHA_MAX
public float POINT_ALPHA_MAX
-
STAR_POINT_SIZE
public float STAR_POINT_SIZE
Size of stars rendered as point primitives
-
STAR_POINT_SIZE_BAK
public float STAR_POINT_SIZE_BAK
Fallback value
-
OCTREE_PARTICLE_FADE
public boolean OCTREE_PARTICLE_FADE
Particle fade in/out flag for octree-backed catalogs. WARNING: This implies particles are sent to GPU at each cycle
-
OCTANT_THRESHOLD_0
public float OCTANT_THRESHOLD_0
Angle [rad] above which we start painting stars in octant with fade in
-
OCTANT_THRESHOLD_1
public float OCTANT_THRESHOLD_1
Angle [rad] below which we paint stars in octant with fade out. Above this angle, inner stars are painted with full brightness
-
MAX_LOADED_STARS
public long MAX_LOADED_STARS
In the case of multifile LOD datasets (such as DR2+), this setting contains the maximum number of stars loaded at a time. If the number of loaded stars surpasses this setting, the system will start looking for the best candidates to be unloaded and start unloading data. Should not be set too low, and this should be balanced with the dataset and the draw distance.
-
-
Method Detail
-
initialize
public void initialize(java.lang.String sTARTUP_OBJECT, GlobalConf.SceneConf.GraphicsQuality gRAPHICS_QUALITY, long oBJECT_FADE_MS, float sTAR_BRIGHTNESS, float aMBIENT_LIGHT, int cAMERA_FOV, float cAMERA_SPEED, float tURNING_SPEED, float rOTATION_SPEED, int cAMERA_SPEED_LIMIT_IDX, boolean fOCUS_LOCK, boolean fOCUS_LOCK_ORIENTATION, float lABEL_SIZE_FACTOR, float lABEL_NUMBER_FACTOR, boolean[] vISIBILITY, int oRBIT_RENDERER, int lINE_RENDERER, double sTAR_TH_ANGLE_NONE, double sTAR_TH_ANGLE_POINT, double sTAR_TH_ANGLE_QUAD, float pOINT_ALPHA_MIN, float pOINT_ALPHA_MAX, boolean oCTREE_PARTICLE_FADE, float oCTANT_TH_ANGLE_0, float oCTANT_TH_ANGLE_1, float pM_NUM_FACTOR, float pM_LEN_FACTOR, long n_PM_STARS, int pM_COLOR_MODE, boolean pM_ARROWHEADS, float sTAR_POINT_SIZE, boolean gALAXY_3D, int cUBEMAP_FACE_RESOLUTION, boolean cROSSHAIR, boolean cINEMATIC_CAMERA, boolean lAZY_TEXTURE_INIT, boolean fREE_CAMERA_TARGET_MODE_ON, boolean sHADOW_MAPPING, int sHADOW_MAPPING_N_SHADOWS, int sHADOW_MAPPING_RESOLUTION, long mAX_LOADED_STARS, GlobalConf.SceneConf.ElevationType eLEVATION_TYPE, double eLEVATION_MULTIPLIER, double tESSELLATION_QUALITY)
-
updateSpeedLimit
public void updateSpeedLimit()
-
notify
public void notify(Events event, java.lang.Object... data)
-
isNormalLineRenderer
public boolean isNormalLineRenderer()
-
isQuadLineRenderer
public boolean isQuadLineRenderer()
-
-