Stellarium 0.11.4
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

Skybright Class Reference

Compute the luminance of the sky according to some parameters like sun moon position or time or altitude etc. More...

#include <Skybright.hpp>

List of all members.

Public Member Functions

 Skybright ()
 Constructor.
void setDate (int year, int month, float moonPhase)
 Set the sky date to use for atmosphere computation.
void setLocation (float latitude, float altitude, float temperature=15.f, float relativeHumidity=40.f)
 Set the position parameters to use for atmosphere computation.
void setSunMoon (float cosDistMoonZenith, float cosDistSunZenith)
 Set the moon and sun zenith angular distance (cosin given) and precompute what can be This function has to be called once before any call to getLuminance().
float getLuminance (float cosDistMoon, float cosDistSun, float cosDistZenith) const
 Compute the luminance at the given position.

Detailed Description

Compute the luminance of the sky according to some parameters like sun moon position or time or altitude etc.

..


Constructor & Destructor Documentation

Skybright::Skybright (  ) 

Constructor.


Member Function Documentation

float Skybright::getLuminance ( float  cosDistMoon,
float  cosDistSun,
float  cosDistZenith 
) const

Compute the luminance at the given position.

Parameters:
cosDistMoon cos(angular distance between moon and the position)
cosDistSun cos(angular distance between sun and the position)
cosDistZenith cos(angular distance between zenith and the position)
void Skybright::setDate ( int  year,
int  month,
float  moonPhase 
)

Set the sky date to use for atmosphere computation.

Parameters:
year the year in YYYY format
month the month: 1=Jan, 12=Dec
moonPhase the moon phase in radian 0=Full Moon, PI/2=First Quadrant/Last Quadran, PI=No Moon
void Skybright::setLocation ( float  latitude,
float  altitude,
float  temperature = 15.f,
float  relativeHumidity = 40.f 
)

Set the position parameters to use for atmosphere computation.

Parameters:
latitude observer latitude in radian
altitude observer altitude in m
temperature temperature in deg. C
relativeHumidity air humidity in %
void Skybright::setSunMoon ( float  cosDistMoonZenith,
float  cosDistSunZenith 
)

Set the moon and sun zenith angular distance (cosin given) and precompute what can be This function has to be called once before any call to getLuminance().

Parameters:
cosDistMoonZenith cos(angular distance between moon and zenith)
cosDistSunZenith cos(angular distance between sun and zenith)
Generated on Sat Aug 25 22:13:32 2012 for Stellarium by  doxygen 1.6.3