![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
#include <Atmosphere.hpp>
Public Member Functions | |
| void | computeColor (double JD, Vec3d _sunPos, Vec3d moonPos, float moonPhase, StelCore *core, float latitude=45.f, float altitude=200.f, float temperature=15.f, float relativeHumidity=40.f) |
| void | draw (StelCore *core) |
| void | update (double deltaTime) |
| void | setFadeDuration (float duration) |
| float | getFadeDuration () |
| void | setFlagShow (bool b) |
| bool | getFlagShow () const |
| float | getRealDisplayIntensityFactor (void) const |
| float | getFadeIntensity (void) const |
| float | getAverageLuminance (void) const |
| void | setLightPollutionLuminance (float f) |
| float | getLightPollutionLuminance () const |
The sky brightness is computed with the SkyBright class, the color with the SkyLight. Don't use this class directly but use it through the LandscapeMgr.
| void Atmosphere::setFadeDuration | ( | float | duration | ) | [inline] |
Set fade in/out duration in seconds.
| float Atmosphere::getFadeDuration | ( | ) | [inline] |
Get fade in/out duration in seconds.
| void Atmosphere::setFlagShow | ( | bool | b | ) | [inline] |
Define whether to display atmosphere.
| bool Atmosphere::getFlagShow | ( | ) | const [inline] |
Get whether atmosphere is displayed.
| float Atmosphere::getRealDisplayIntensityFactor | ( | void | ) | const [inline] |
Get the actual atmosphere intensity due to eclipses + fader.
| float Atmosphere::getAverageLuminance | ( | void | ) | const [inline] |
Get the average luminance of the atmosphere in cd/m2 If atmosphere is off, the luminance includes the background starlight + light pollution.
Otherwise it includes the atmosphere + background starlight + eclipse factor + light pollution.
| void Atmosphere::setLightPollutionLuminance | ( | float | f | ) | [inline] |
Set the light pollution luminance in cd/m^2.
| float Atmosphere::getLightPollutionLuminance | ( | ) | const [inline] |
Get the light pollution luminance in cd/m^2.
1.5.5