7b824755ee
I have prepared a patch that: - Introduces a FGTileMgr::scenery_available method which asks the tilemanager if scenery for a given range around a lat/lon pair is already loaded and make use of that method at some -9999 meter checks. - Introduces a FGScenery::get_elevation_m method which queries the altitude at a given position. In constrast to the groundcache functions this is the best choice if you ask for one *single* altitude value. Make use of that thing in AI/ATC classes and for the current views ground level. At the current views part the groundcache is reused if possible. - The computation of the 'current groundlevel' is no longer done on the tilemanagers update since the required functions are now better seperated. Alltogether it eliminates somehow redundant terrain level computations which are now superseeded by that more finegrained functions and the existence of the groundcache. Additionally it introduces an api to commonly required functions which was very complex to do prevously. |
||
---|---|---|
.. | ||
built_in | ||
.cvsignore | ||
cockpit.cxx | ||
cockpit.hxx | ||
hud.cxx | ||
hud.hxx | ||
hud_card.cxx | ||
hud_dnst.cxx | ||
hud_gaug.cxx | ||
hud_inst.cxx | ||
hud_labl.cxx | ||
hud_ladr.cxx | ||
hud_lat.cxx | ||
hud_lon.cxx | ||
hud_opts.hxx | ||
hud_rwy.cxx | ||
hud_scal.cxx | ||
hud_tbi.cxx | ||
Makefile.am | ||
panel.cxx | ||
panel.hxx | ||
panel_io.cxx | ||
panel_io.hxx | ||
README |
src/Cockpit/ - instrument and display-related code This directory contains various subsystems and code modules related to the cockpit, including the HUD and the 2D panel. The code from here is gradually being sorted out into separate code modules -- please do not add anything new here. All new code for gauges and avionics should go in src/Instrumentation/, and all new code aircraft systems (like the electrical or vacuum systems) should go in src/Systems/. Any new 2D or 3D modelling code should go in src/Model/.