Weather model (Singleton). More...
#include <_src_sky_weather.hh>
Public Types | |
| enum | eWeather { eWeather_RANDOM, eWeather_CLEAR, eWeather_RAIN, eWeather_SNOW, eWeather_DEFAULT = eWeather_RANDOM } |
Public Member Functions | |
| DEFINE_GetInstance (Weather) void Enable(const bool enable) | |
| void | SetWeather (const eWeather weather) |
| eWeather | GetWeather (void) const |
| bool | IfSnowOrRain (void) const |
| RefPtr< Node > | GetNode (void) |
Private Member Functions | |
| Weather (void) | |
| ~Weather () | |
Private Attributes | |
| CLASS_VAR Weather * | msInstance |
| Singleton. | |
| bool | mEnabled |
| while disabled, force clear weather | |
| eWeather | mWeather |
| clear, rain, snow, etc | |
| RefPtr < osgParticle::PrecipitationEffect > | mPrecipitationEffect |
| RefPtr< GroupNode > | mGroupNode |
| root node of Graph | |
| shptr< Graph > | mGraph |
| disabling Graph disables Weather | |
Weather model (Singleton).
| sky::Weather::Weather | ( | void | ) | [private] |
ctor/dtor.
| sky::Weather::~Weather | ( | ) | [private] |
| sky::Weather::DEFINE_GetInstance | ( | Weather | ) | const |
| Weather::eWeather sky::Weather::GetWeather | ( | void | ) | const |
Get weather conditions (rain, snow, etc).
| bool sky::Weather::IfSnowOrRain | ( | void | ) | const [inline] |
| void sky::Weather::SetWeather | ( | const eWeather | weather | ) |
Set weather conditions (rain, snow, etc).
bool sky::Weather::mEnabled [private] |
while disabled, force clear weather
shptr<Graph> sky::Weather::mGraph [private] |
disabling Graph disables Weather
RefPtr<GroupNode> sky::Weather::mGroupNode [private] |
root node of Graph
RefPtr<osgParticle::PrecipitationEffect> sky::Weather::mPrecipitationEffect [private] |
Weather * sky::Weather::msInstance [private] |
Singleton.
eWeather sky::Weather::mWeather [private] |
clear, rain, snow, etc
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:12