|
| Landscape (float _radius=2.f) |
|
virtual void | initGL () |
|
virtual void | load (const QSettings &landscapeIni, const QString &landscapeId)=0 |
| Load landscape. More...
|
|
unsigned int | getMemorySize () const |
| Return approximate memory footprint in bytes (required for cache cost estimate in LandscapeMgr) The returned value is only approximate, content of QStrings and other small containers like the horizon polygon are not put in in detail. More...
|
|
virtual void | draw (StelCore *core, bool onlyPolygon)=0 |
| Draw the landscape. If onlyPolygon, only draw the landscape polygon, if one is defined. If no polygon is defined, the.
|
|
void | update (double deltaTime) |
|
void | setBrightness (const double b, const double pollutionBrightness=0.0) |
| Set the brightness of the landscape plus brightness of optional add-on night lightscape. More...
|
|
void | setTint (Vec3f color) |
| Set a tint to render the landscape. Useful for low-sun scenes.
|
|
double | getBrightness () const |
| Returns the current brightness level.
|
|
double | getLightscapeBrightness () const |
| Returns the lightscape brightness.
|
|
double | getTargetLightscapeBrightness () const |
| Returns the lightscape brightness modulated with the fader's target state (i.e. binary on/off)
|
|
double | getEffectiveLightscapeBrightness () const |
| Gets the currently effective lightscape brightness (modulated by the fader)
|
|
void | setFlagShow (const bool b) |
| Set whether landscape is displayed (does not concern fog)
|
|
bool | getFlagShow () |
| Get whether landscape is displayed (does not concern fog)
|
|
float | getEffectiveLandFadeValue () |
| Returns the currently effective land fade value.
|
|
void | setFlagShowFog (const bool b) |
| Set whether fog is displayed.
|
|
bool | getFlagShowFog () |
| Get whether fog is displayed.
|
|
QString | getName () const |
| Get landscape name.
|
|
QString | getAuthorName () const |
| Get landscape author name.
|
|
QString | getDescription () const |
| Get landscape description.
|
|
QString | getId () const |
| Get landscape id. This is the landscape directory name, used for cache handling.
|
|
const StelLocation & | getLocation () const |
| Return the associated location (may be empty!)
|
|
bool | hasLocation () const |
| Return if the location is valid (a valid location has a valid planetName!)
|
|
QVariant | getDefaultLightPollutionLuminance () const |
| Return default light pollution luminance in cd/m², if present.
|
|
int | getDefaultFogSetting () const |
| Return default fog setting (0/1) or -1 (no change)
|
|
double | getDefaultAtmosphericExtinction () const |
| Return default atmosperic extinction [mag/airmass], or -1 (no change)
|
|
double | getDefaultAtmosphericTemperature () const |
| Return configured atmospheric temperature [degrees Celsius], for refraction computation, or -1000 for "unknown/no change".
|
|
double | getDefaultAtmosphericPressure () const |
| Return configured atmospheric pressure [mbar], for refraction computation. More...
|
|
double | getLandscapeMinimalBrightness () const |
| Return minimal brightness for landscape returns -1 to signal "standard conditions" (use default value from config.ini)
|
|
void | setZRotation (float d) |
| Set an additional z-axis (azimuth) rotation after landscape has been loaded. More...
|
|
bool | getIsFullyVisible () const |
| Get whether the landscape is currently fully visible (i.e. opaque).
|
|
double | getSinMinAltitudeLimit () const |
| Get the sine of the limiting altitude (can be used to short-cut drawing below horizon, like star fields). There is no set here, value is only from landscape.ini.
|
|
virtual float | getOpacity (Vec3d azalt) const |
| Find opacity in a certain direction. More...
|
|
void | loadLabels (const QString &landscapeId) |
| Load descriptive labels from optional file gazetteer.LANG.utf8.
|
|
bool | hasLandscapePolygon () const |
|
|
std::unique_ptr< QOpenGLVertexArrayObject > | vao |
|
std::unique_ptr< QOpenGLBuffer > | vbo |
|
StelProjectorP | prevProjector |
|
std::unique_ptr< QOpenGLShaderProgram > | renderProgram |
|
double | radius |
|
QString | name |
|
QString | author |
| Read from landscape.ini:[landscape]name.
|
|
QString | description |
| Read from landscape.ini:[landscape]author.
|
|
QString | id |
| Read from landscape.ini:[landscape]description.
|
|
float | minBrightness |
| Set during load. Required for consistent caching.
|
|
float | landscapeBrightness |
| Read from landscape.ini:[landscape]minimal_brightness. Allows minimum visibility that cannot be underpowered.
|
|
Vec3f | landscapeTint |
| brightness [0..1] to draw the landscape. Computed by the LandscapeMgr.
|
|
float | lightScapeBrightness |
| color tint to draw the landscape (daylight texture only). Nice for sunrise/sunset.
|
|
bool | validLandscape |
| can be used to draw nightscape texture (e.g. city light pollution), if available. Computed by the LandscapeMgr.
|
|
LinearFader | landFader |
| was a landscape loaded properly?
|
|
LinearFader | fogFader |
| Used to slowly fade in/out landscape painting.
|
|
unsigned int | rows |
| Used to slowly fade in/out landscape feature labels.
|
|
unsigned int | cols |
| horizontal rows. May be given in landscape.ini:[landscape]tesselate_rows. More indicates higher accuracy, but is slower.
|
|
float | angleRotateZ |
| vertical columns. May be given in landscape.ini:[landscape]tesselate_cols. More indicates higher accuracy, but is slower.
|
|
float | angleRotateZOffset |
| [radians] if pano does not have its left border in the east, rotate in azimuth. Configured in landscape.ini[landscape]angle_rotatez (or decor_angle_rotatez for old_style landscapes)
|
|
double | sinMinAltitudeLimit |
| [radians] This is a rotation changeable at runtime via setZRotation (called by LandscapeMgr::setZRotation). More...
|
|
StelLocation | location |
|
QVariant | defaultLightPollutionLuminance |
| OPTIONAL. If present, can be used to set location. More...
|
|
int | defaultFogSetting |
|
double | defaultExtinctionCoefficient |
| May be given in landscape.ini:[location]display_fog: -1(no change), 0(off), 1(on). Default: -1.
|
|
double | defaultTemperature |
| May be given in landscape.ini:[location]atmospheric_extinction_coefficient. Default -1 (no change).
|
|
double | defaultPressure |
| [Celsius] May be given in landscape.ini:[location]atmospheric_temperature. default: -1000.0 (no change)
|
|
SphericalRegionP | horizonPolygon |
| [mbar] May be given in landscape.ini:[location]atmospheric_pressure. Default -1.0 (compute from [location]/altitude), use -2 to indicate "no change".
|
|
QList< LandscapeLabel > | landscapeLabels |
| [0...5] used to draw the horizon polygon, if defined. Set 0 to switch off.
|
|
unsigned int | memorySize |
| Rotation angle for landscape labels, degrees. Useful for landscapes with many labels. More...
|
|
bool | multisamplingEnabled_ |
|
bool | initialized = false |
|
Store and manages the displaying of the Landscape.
Don't use this class directly, use the LandscapeMgr. A landscape's most important element is a photo panorama, or at least a polygon that describes the true horizon visible from your observing location. Optional components include:
- A fog texture that is displayed with the Fog [F] command (displayed only if atmosphere is on!).
- A location. It is possible to auto-move to the location when loading.
- Atmospheric conditions: temperature/pressure/extinction coefficients. These influence refraction and extinction.
- Light pollution information (Bortle index)
- A night texture that gets blended over the dimmed daylight panorama. (All landscapes except Polygonal.)
- A polygonal horizon line (required for PolygonalLandscape). If present, defines a measured horizon line, which can be plotted or queried for rise/set predictions.
- You can set a minimum brightness level to prevent too dark landscape. There is a global activation setting (config.ini[landscape]flag_minimal_brightness), a global value (config.ini[landscape]minimal_brightness), and, if config.ini[landscape]flag_landscape_sets_minimal_brightness=true, optional individual values given in landscape.ini[landscape]minimal_brightness are used.
We discern:
- Parameters
-
LandscapeId | The directory name of the landscape. |
name | The landscape name as specified in the LandscapeIni (may contain spaces, translatable, UTF8, ...) |