Stellarium 0.15.2
|
Compute and display the daylight sky color using openGL. More...
#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) |
Set fade in/out duration in seconds. More... | |
float | getFadeDuration () |
Get fade in/out duration in seconds. More... | |
void | setFlagShow (bool b) |
Define whether to display atmosphere. More... | |
bool | getFlagShow () const |
Get whether atmosphere is displayed. More... | |
float | getRealDisplayIntensityFactor () const |
Get the actual atmosphere intensity due to eclipses + fader. More... | |
float | getFadeIntensity () const |
float | getAverageLuminance () const |
Get the average luminance of the atmosphere in cd/m2 If atmosphere is off, the luminance includes the background starlight + light pollution. More... | |
void | setAverageLuminance (float overrideLum) |
override computable luminance. More... | |
void | setLightPollutionLuminance (float f) |
Set the light pollution luminance in cd/m^2. More... | |
float | getLightPollutionLuminance () const |
Get the light pollution luminance in cd/m^2. More... | |
Compute and display the daylight sky color using openGL.
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.
Definition at line 39 of file Atmosphere.hpp.
|
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.
Definition at line 72 of file Atmosphere.hpp.
|
inline |
Get fade in/out duration in seconds.
Definition at line 54 of file Atmosphere.hpp.
|
inline |
Get whether atmosphere is displayed.
Definition at line 59 of file Atmosphere.hpp.
|
inline |
Get the light pollution luminance in cd/m^2.
Definition at line 80 of file Atmosphere.hpp.
|
inline |
Get the actual atmosphere intensity due to eclipses + fader.
Definition at line 63 of file Atmosphere.hpp.
void Atmosphere::setAverageLuminance | ( | float | overrideLum | ) |
override computable luminance.
This is for special operations only, e.g. for scripting of brightness-balanced image export. To return to auto-computed values, set any negative value at the end of the script.
|
inline |
Set fade in/out duration in seconds.
Definition at line 52 of file Atmosphere.hpp.
|
inline |
Define whether to display atmosphere.
Definition at line 57 of file Atmosphere.hpp.
|
inline |
Set the light pollution luminance in cd/m^2.
Definition at line 78 of file Atmosphere.hpp.