FlightGear next
FGPrecipitationMgr Class Reference

#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 ()
 

Detailed Description

Definition at line 36 of file precipitation_mgr.hxx.

Constructor & Destructor Documentation

◆ FGPrecipitationMgr()

FGPrecipitationMgr::FGPrecipitationMgr ( )

FGPrecipitation Manager constructor.

Build a new object to manage the precipitation object

Definition at line 52 of file precipitation_mgr.cxx.

◆ ~FGPrecipitationMgr()

FGPrecipitationMgr::~FGPrecipitationMgr ( )
virtual

FGPrecipitaiton Manager destructor.

Definition at line 61 of file precipitation_mgr.cxx.

Member Function Documentation

◆ bind()

void FGPrecipitationMgr::bind ( )
override

Definition at line 81 of file precipitation_mgr.cxx.

◆ init()

void FGPrecipitationMgr::init ( )
override

SGSubsystem initialization.

Definition at line 69 of file precipitation_mgr.cxx.

◆ setPrecipitationLevel()

void FGPrecipitationMgr::setPrecipitationLevel ( double l)

Definition at line 114 of file precipitation_mgr.cxx.

◆ setupSceneGraph()

void FGPrecipitationMgr::setupSceneGraph ( void )

Definition at line 95 of file precipitation_mgr.cxx.

◆ staticSubsystemClassId()

static const char * FGPrecipitationMgr::staticSubsystemClassId ( )
inlinestatic

Definition at line 55 of file precipitation_mgr.hxx.

◆ unbind()

void FGPrecipitationMgr::unbind ( )
override

Definition at line 89 of file precipitation_mgr.cxx.

◆ update()

void FGPrecipitationMgr::update ( double dt)
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.


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