Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classAtmosphere.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:24:11 2014 Кодировка: Поисковые слова: voyager 2 |
Stellarium 0.12.3
|
Compute and display the daylight sky color. More...
#include <Atmosphere.hpp>
Public Member Functions | |
void | computeColor (double JD, Vec3d _sunPos, Vec3d moonPos, float moonPhase, StelCore *core, float eclipseFac, float latitude=45.f, float altitude=200.f, float temperature=15.f, float relativeHumidity=40.f) |
Called on every update to recompute colors of the atmosphere. More... | |
void | draw (StelCore *core, class StelRenderer *renderer) |
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 (void) const |
Get the actual atmosphere intensity due to eclipses + fader. More... | |
float | getFadeIntensity (void) const |
float | getAverageLuminance (void) 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 | 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.
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 40 of file Atmosphere.hpp.
void Atmosphere::computeColor | ( | double | JD, |
Vec3d | _sunPos, | ||
Vec3d | moonPos, | ||
float | moonPhase, | ||
StelCore * | core, | ||
float | eclipseFac, | ||
float | latitude = 45.f , |
||
float | altitude = 200.f , |
||
float | temperature = 15.f , |
||
float | relativeHumidity = 40.f |
||
) |
Called on every update to recompute colors of the atmosphere.
Must be called at least once after a call to draw(), as vertexGrid is lazily initialized at the first draw call.
|
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 77 of file Atmosphere.hpp.
|
inline |
Get fade in/out duration in seconds.
Definition at line 59 of file Atmosphere.hpp.
|
inline |
Get whether atmosphere is displayed.
Definition at line 64 of file Atmosphere.hpp.
|
inline |
Get the light pollution luminance in cd/m^2.
Definition at line 82 of file Atmosphere.hpp.
|
inline |
Get the actual atmosphere intensity due to eclipses + fader.
Definition at line 68 of file Atmosphere.hpp.
|
inline |
Set fade in/out duration in seconds.
Definition at line 57 of file Atmosphere.hpp.
|
inline |
Define whether to display atmosphere.
Definition at line 62 of file Atmosphere.hpp.
|
inline |
Set the light pollution luminance in cd/m^2.
Definition at line 80 of file Atmosphere.hpp.