FlightGear next
|
#include <precipitation_mgr.hxx>
Inherits SGSubsystem.
Public Member Functions | |
FGPrecipitationMgr () | |
FGPrecipitation Manager constructor. | |
virtual | ~FGPrecipitationMgr () |
FGPrecipitaiton Manager destructor. | |
void | bind () override |
void | init () override |
SGSubsystem initialization. | |
void | unbind () override |
void | update (double dt) override |
Update the precipitation drawing. | |
void | setupSceneGraph (void) |
void | setPrecipitationLevel (double l) |
Static Public Member Functions | |
static const char * | staticSubsystemClassId () |
Definition at line 36 of file precipitation_mgr.hxx.
FGPrecipitationMgr::FGPrecipitationMgr | ( | ) |
FGPrecipitation Manager constructor.
Build a new object to manage the precipitation object
Definition at line 52 of file precipitation_mgr.cxx.
|
virtual |
FGPrecipitaiton Manager destructor.
Definition at line 61 of file precipitation_mgr.cxx.
|
override |
Definition at line 81 of file precipitation_mgr.cxx.
|
override |
SGSubsystem initialization.
Definition at line 69 of file precipitation_mgr.cxx.
void FGPrecipitationMgr::setPrecipitationLevel | ( | double | l | ) |
Definition at line 114 of file precipitation_mgr.cxx.
void FGPrecipitationMgr::setupSceneGraph | ( | void | ) |
Definition at line 95 of file precipitation_mgr.cxx.
|
inlinestatic |
Definition at line 55 of file precipitation_mgr.hxx.
|
override |
Definition at line 89 of file precipitation_mgr.cxx.
|
override |
Update the precipitation drawing.
To seem real, we stop the precipitation above the cloud or boundary layer. If METAR information doesn't give us this altitude, we will see precipitations in space... Moreover, below 0°C we change rain into snow.
Definition at line 210 of file precipitation_mgr.cxx.