Public Types | Public Member Functions | Private Member Functions | Private Attributes

sky::Weather Class Reference

Weather model (Singleton). More...

#include <_src_sky_weather.hh>

List of all members.

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< NodeGetNode (void)

Private Member Functions

 Weather (void)
 ~Weather ()

Private Attributes

CLASS_VAR WeathermsInstance
 Singleton.
bool mEnabled
 while disabled, force clear weather
eWeather mWeather
 clear, rain, snow, etc
RefPtr
< osgParticle::PrecipitationEffect > 
mPrecipitationEffect
RefPtr< GroupNodemGroupNode
 root node of Graph
shptr< GraphmGraph
 disabling Graph disables Weather

Detailed Description

Weather model (Singleton).


Member Enumeration Documentation

Enumerator:
eWeather_RANDOM 
eWeather_CLEAR 
eWeather_RAIN 
eWeather_SNOW 
eWeather_DEFAULT 

Constructor & Destructor Documentation

sky::Weather::Weather ( void   )  [private]

ctor/dtor.

sky::Weather::~Weather (  )  [private]

Member Function Documentation

sky::Weather::DEFINE_GetInstance ( Weather   )  const
RefPtr<Node> sky::Weather::GetNode ( void   )  [inline]
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).


Member Data Documentation

bool sky::Weather::mEnabled [private]

while disabled, force clear weather

disabling Graph disables Weather

root node of Graph

RefPtr<osgParticle::PrecipitationEffect> sky::Weather::mPrecipitationEffect [private]

Singleton.

clear, rain, snow, etc


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:12