FlightGear next
Environment::LayerTable Class Reference

Models a column of our atmosphere by stacking a number of environments above each other. More...

Inherits std::vector< LayerTableBucket * >, and SGPropertyChangeListener.

Public Member Functions

 LayerTable (SGPropertyNode_ptr rootNode)
 
 ~LayerTable ()
 
void read (FGEnvironment *parent=NULL)
 Read the environment column from properties relative to the given root node.
 
void interpolate (double altitude_ft, FGEnvironment *environment)
 Interpolate and write environment values for a given altitude.
 
void Bind ()
 Bind all environments properties to property nodes and initialize the listeners.
 
void Unbind ()
 Unbind all environments properties from property nodes and deregister listeners.
 

Detailed Description

Models a column of our atmosphere by stacking a number of environments above each other.

Definition at line 59 of file environment_ctrl.cxx.

Constructor & Destructor Documentation

◆ LayerTable()

Environment::LayerTable::LayerTable ( SGPropertyNode_ptr rootNode)
inline

Definition at line 62 of file environment_ctrl.cxx.

◆ ~LayerTable()

Environment::LayerTable::~LayerTable ( )

Definition at line 136 of file environment_ctrl.cxx.

Member Function Documentation

◆ Bind()

void Environment::LayerTable::Bind ( )

Bind all environments properties to property nodes and initialize the listeners.

Definition at line 196 of file environment_ctrl.cxx.

◆ interpolate()

void Environment::LayerTable::interpolate ( double altitude_ft,
FGEnvironment * environment )

Interpolate and write environment values for a given altitude.

Parameters
altitude_ftThe altitude for the desired environment @environment the destination to write the resulting environment properties to

Definition at line 246 of file environment_ctrl.cxx.

◆ read()

void Environment::LayerTable::read ( FGEnvironment * parent = NULL)

Read the environment column from properties relative to the given root node.

Parameters
environmentA template environment to copy values from, not given in the configuration

Definition at line 142 of file environment_ctrl.cxx.

◆ Unbind()

void Environment::LayerTable::Unbind ( )

Unbind all environments properties from property nodes and deregister listeners.

Definition at line 209 of file environment_ctrl.cxx.


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