Expose visibility within cloudlayers to the property-tree
This commit is contained in:
parent
f33d26d51c
commit
1223b4af9e
1 changed files with 18 additions and 0 deletions
|
@ -152,6 +152,11 @@ FGEnvironmentMgr::bind ()
|
|||
&FGEnvironmentMgr::get_cloud_layer_coverage_type,
|
||||
&FGEnvironmentMgr::set_cloud_layer_coverage_type);
|
||||
|
||||
_tiedProperties.Tie( layerNode->getNode( "visibility-m",true), this, i,
|
||||
&FGEnvironmentMgr::get_cloud_layer_visibility_m,
|
||||
&FGEnvironmentMgr::set_cloud_layer_visibility_m);
|
||||
|
||||
|
||||
}
|
||||
|
||||
_tiedProperties.setRoot( fgGetNode("/sim/rendering", true ) );
|
||||
|
@ -315,6 +320,19 @@ FGEnvironmentMgr::get_cloud_layer_coverage_type (int index) const
|
|||
return thesky->get_cloud_layer(index)->getCoverage();
|
||||
}
|
||||
|
||||
double
|
||||
FGEnvironmentMgr::get_cloud_layer_visibility_m (int index) const
|
||||
{
|
||||
return thesky->get_cloud_layer(index)->getVisibility_m();
|
||||
}
|
||||
|
||||
void
|
||||
FGEnvironmentMgr::set_cloud_layer_visibility_m (int index, double visibility_m)
|
||||
{
|
||||
thesky->get_cloud_layer(index)->setVisibility_m(visibility_m);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void
|
||||
FGEnvironmentMgr::set_cloud_layer_coverage_type (int index, int type )
|
||||
|
|
Loading…
Add table
Reference in a new issue