Документ взят из кэша поисковой машины. Адрес оригинального документа : http://astro.uni-altai.ru/~aw/stellarium/api/classSkybright.html
Дата изменения: Unknown
Дата индексирования: Fri Feb 28 07:21:45 2014
Кодировка:

Поисковые слова: seawifs
Stellarium: Skybright Class Reference
Stellarium 0.12.3
List of all members | Public Member Functions
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>

Public Member Functions

 Skybright ()
 Constructor. More...
 
void setDate (int year, int month, float moonPhase)
 Set the sky date to use for atmosphere computation. More...
 
void setLocation (float latitude, float altitude, float temperature=15.f, float relativeHumidity=40.f)
 Set the position parameters to use for atmosphere computation. More...
 
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() More...
 
float getLuminance (float cosDistMoon, float cosDistSun, float cosDistZenith) const
 Compute the luminance at the given position. More...
 

Detailed Description

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

Definition at line 25 of file Skybright.hpp.

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
cosDistMooncos(angular distance between moon and the position)
cosDistSuncos(angular distance between sun and the position)
cosDistZenithcos(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
yearthe year in YYYY format
monththe month: 1=Jan, 12=Dec
moonPhasethe 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
latitudeobserver latitude in radian
altitudeobserver altitude in m
temperaturetemperature in deg. C
relativeHumidityair 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
cosDistMoonZenithcos(angular distance between moon and zenith)
cosDistSunZenithcos(angular distance between sun and zenith)

The documentation for this class was generated from the following file: