mfranz
47b9da740b
- export font properties to the property tree again
...
- don't keep oodles of class member variables public (eek!)
- use ::hasValue() instead of ::getType() != SGPropertyNode::NONE
- consistency fixes and cosmetics
2008-06-02 09:32:37 +00:00
mfranz
4b245467c7
change default font values
2008-06-01 18:16:35 +00:00
mfranz
e0aeda5a51
Csaba HALASZ & Syd ADAMS: make radar font configurable
...
mf: move font color parts to the font listener
2008-06-01 18:08:01 +00:00
fredb
68124ca36d
Remove unused variables
2008-06-01 14:59:20 +00:00
durk
4e24fba0d5
Merging David Luff's AI/ATC code with AIModels. Part 1:
...
- Move Dave's original code to a new directory (ATCDCL) so we can recycle
the original ATC directory for generic ATC functions.
2008-05-12 10:38:04 +00:00
timoore
d28b509e5f
autopilot filter deque fixes
...
Thanks to Vivian Meazza for debugging this. The output deque for
FGDigitalFilter was not being kept long enough for the
doubleExponential filter. Reads from output[1] could cause a crash.
2008-03-24 22:46:47 +00:00
timoore
fd492a297a
model paging patch from Till Busch
...
From Till:
i started the project at the end of february with a simple idea: move all
3d-model loading to the DatabasePager-thread. my first attempts looked
promising, though they were a little too optimistic (or naive?). the patch
has evolved a lot since.
currently it does the following things:
1. revive SGModelLib, move functions for xml-model-loading there
2. replace all calls to sgLoad3dModel with calls to either
SGModelLib::loadModel() or SGModelLib::loadPagedModel()
almost all models will be loaded by the DatabasePager. the few exceptions are:
your own plane, shared models in scenery, random objects, AIBallistic models.
3. simplify mode-loading functions (avoid passing around fg_root)
4. avoid supurious MatrixTransform nodes in loaded models
5. fix some memory leaks
2008-03-22 09:31:06 +00:00
timoore
662ea715e8
For the agRadar, initialize property nodes with defaults.
...
Introduce a convenience member function in wxRadarBg for creating an
SGPropertyNode and initializing it in one step. Use this in
agRadar. This eliminates buggy behavior when the necessary radar
properties aren't defined.
2008-03-22 09:19:21 +00:00
timoore
7800918499
Small cleanup of terrain radar
2008-03-17 08:47:31 +00:00
timoore
c2040f30a2
ground radar from Vivian Mezza
2008-03-17 08:47:16 +00:00
mfranz
5253a271c7
The Concorde Maintainer:
...
- replace hardcoded name "inst-vertical-speed-indicator" by the one from
the instrumentation config
mf: some indentation fixes, remove redundant block
2008-02-07 20:41:00 +00:00
timoore
00f8463ab4
Another round of memory leak fixes from Till Busch
2008-01-24 23:05:58 +00:00
frohlich
aed97e0dd4
Use a render target fallback that works in any case.
...
Avoids a crash on dri cards on linux.
2007-12-11 06:19:08 +00:00
timoore
743522fcd1
Add an option to FGTextureManager to create dynamic textures.
...
Dynamic textures shouldn't have their STATIC attribute set.
2007-12-07 09:14:16 +00:00
durk
f5e9e1898f
Miscellaneous tweaks and Bugfixes. Mostly memory leaks ported from the plib
...
version
* Delete ai list objects in ~ATC/AIMgr.cxx:AIMgr::~AIMgr()
* Delete colors in GUI/new_gui.cxx: NewGui::~NewGui.cxx
* Delete memory allocated to the class member "route" in
Instrumentation/gps.cxx
* Delete all globals (except a few "unsafe" ones that still cause segfaults
and need further examination.
* Use an SGShared pointer for navaid memory allocation, so that pointers to
individual navaid objects can be included safely in multiple navaid lists
2007-10-20 08:36:21 +00:00
mfranz
15139a42b6
- make FGAirport::search() more versatile, so that it can't only search
...
the next airport or airport with METAR station, but about any type of
airport
- as a side effect this change makes it also 30 to 50% faster :-)
In the long run this linear search shall be replaced with a spatial
algorithm (like octree), which will be a much bigger performance gain.
2007-10-05 21:54:52 +00:00
timoore
411435a48f
Make comparisons against OSG version less flakey
...
Turn OPENSCENEGRAPH_MAJOR_VERSION, OPENSCENEGRAPH_MINOR_VERSION and
OPENSCENEGRAPH_PATCH_VERSION into a single number for comparisons in the
preprocessor.
2007-10-04 20:40:29 +00:00
mfranz
a5696122f1
... and keep the "groundradar" update rate :-)
2007-09-28 10:14:43 +00:00
mfranz
62ec8fd1d4
add instrument name & index to subsystem name id
2007-09-28 09:59:34 +00:00
timoore
ec8be8c67a
Added copyright to ground radar files
2007-09-10 05:08:57 +00:00
timoore
7ad0813990
Ground radar and tower control panel for ATC.
...
This piggybacks on the weather radar for a cool ATC display.
2007-09-09 23:22:14 +00:00
mfranz
158bfd1860
Hans FUGAL: mac compilation fix
2007-07-10 18:35:50 +00:00
mfranz
6168ba7850
Vivian MEAZZA: remove no longer needed debug messages
2007-07-05 15:28:44 +00:00
mfranz
bb634fcd2e
make target RTT texture configurable as <radar-texture-path>
...
(ported from fg/plib, but doesn't yet work here)
2007-07-03 18:24:45 +00:00
mfranz
2eb175e772
Csaba HALASZ: use the OSG member variables right away
...
mf: remove redundant ARC check
2007-07-01 14:26:06 +00:00
mfranz
4faf9d4a74
Vivian MEAZZA: allow to turn off heading marker (symbol for own aircaft)
...
mf: remove commented out
2007-06-30 08:53:06 +00:00
mfranz
663ff14364
sync with recent changes to fg/plib
2007-06-29 22:44:41 +00:00
mfranz
bb413bf3e2
make update interval configurable, even though the default 1.0 is supposed
...
to be a realistic value
2007-06-24 22:13:25 +00:00
mfranz
143e3f34d4
what is this "plib" thing?!
2007-06-24 20:34:01 +00:00
mfranz
60ad87fc54
the former weather radar is now a generic radar (weather and aircraft),
...
so rename the instrument from <wxradar> to <radar>
2007-06-24 19:50:15 +00:00
mfranz
1b55d67ff7
- don't mix /instrumentation/radar and /instrumentation/wxradar wildly
...
together -- there's only *one* instrument node now
- don't take "random" tacan, but <tacan-source> from the instrumentation
config (or /instrumentation/tacan[0] by default)
- don't take "random" display-controls from /instrumentation/tacan[0]
- default name is now "radar" (formerly "wxradar")
2007-06-24 17:15:48 +00:00
mfranz
800dd73551
Vivian MEAZZA & Tim MOORE:
...
- re-enable od_gauge ("owner drawn" render-to-texture instruments)
- implement radar in c++ (unlimited number of clouds/ai/mp/... objects,
better performance)
2007-06-24 07:57:45 +00:00
durk
864fd40ee9
Alex Bory: TACAN has to search the new AI submode 'tanker'.
2007-06-14 05:26:57 +00:00
mfranz
52a4c527a6
initialize variables before using them
2007-05-06 14:02:44 +00:00
frohlich
4fe615fff5
Modified Files:
...
src/AIModel/AIBase.cxx src/AIModel/AICarrier.cxx
src/ATC/AIEntity.cxx src/Cockpit/hud_rwy.cxx
src/FDM/Makefile.am src/FDM/flight.hxx src/FDM/groundcache.cxx
src/Instrumentation/HUD/HUD_runway.cxx src/Main/Makefile.am
src/Main/fg_init.cxx src/Main/main.cxx src/Main/renderer.cxx
src/Main/viewer.cxx src/Main/viewer.hxx src/Model/acmodel.cxx
src/Model/modelmgr.cxx src/Scenery/scenery.cxx
src/Scenery/scenery.hxx src/Scenery/tileentry.cxx
src/Time/tmp.cxx: Remove the scenery center handling.
Osg has double valued transforms at any relevant place.
2007-05-05 08:08:24 +00:00
mfranz
3b5fed01ca
Vivian MEAZZA:
...
"Bugfix. Restore earlier bugfix to ensure tacan works when there is no
aircraft carrier in the environment"
2007-04-26 06:49:54 +00:00
fredb
b5ab955877
Win32 fix
2007-04-03 11:36:47 +00:00
mfranz
570b19b2ff
another case of round()
2007-03-31 15:27:21 +00:00
mfranz
b395c12fdb
use round() from SG, as this isn't available everywhere
2007-03-31 15:17:55 +00:00
mfranz
ed4f3afcdf
obsolete through changes to Instrumentation/{instrument_mgr,altimeter}.?xx
...
and Systems/static.?xx, and addition of Environment/atmosphere.?xx
2007-03-31 12:28:04 +00:00
mfranz
7e6bc192ba
John DENKER:
...
"This altimetry method is valid to above 100,000 feet, and
correctly handles Kollsman settings"
2007-03-31 09:36:19 +00:00
mfranz
5d7b9ec1f1
Nick WARNE: fix property name
2007-02-23 21:34:41 +00:00
frohlich
9bb55e78be
Modified Files:
...
navradio.cxx: Olaf Flebbe: Use bool for booleans.
2007-02-09 05:41:42 +00:00
mfranz
3dd9e4ca5e
remove annunciator.[ch]xx; this is now done via Nasal:
...
<nasal>
<annunciator>
<file>Aircraft/Generic/annunciator.nas</file>
</annunciator>
</nasal>
2007-01-29 22:36:28 +00:00
frohlich
52645efa60
Modified Files:
...
src/Cockpit/hud.cxx src/Cockpit/hud.hxx
src/Cockpit/hud_labl.cxx src/Instrumentation/HUD/HUD_label.cxx:
Olaf Flebbe: avoid potential buffer overflows.
2007-01-22 05:46:51 +00:00
mfranz
b9e4775a7a
Roy Vegard Ovesen:
...
- finish cleanup/optimization of instrumentation system (started by mfranz)
- improve configuration of special properties by
addressing them directly
2006-12-06 22:11:43 +00:00
mfranz
baa16f4995
AJ MacLEOD: don't only turn the adf off with exactly zero voltage
...
as values like 1E-10 can occur due to binary representation issues;
(analog to navradio.cxx)
2006-11-22 20:08:45 +00:00
fredb
3394d3c840
Don't segfault when sound is not available
2006-11-12 13:54:50 +00:00
frohlich
b0f9d24f9d
Modified Files:
...
configure.ac src/AIModel/AIAircraft.cxx src/AIModel/AIBase.cxx
src/AIModel/AIBase.hxx src/AIModel/AICarrier.cxx
src/AIModel/AICarrier.hxx src/AIModel/AIManager.cxx
src/AIModel/AIManager.hxx src/ATC/AIEntity.cxx
src/ATC/AIEntity.hxx src/ATC/AIMgr.cxx src/ATC/AIMgr.hxx
src/ATC/ATCdisplay.cxx src/ATC/ATCdisplay.hxx
src/Cockpit/cockpit.cxx src/Cockpit/cockpit.hxx
src/Cockpit/hud.cxx src/Cockpit/hud.hxx
src/Cockpit/hud_rwy.cxx src/Cockpit/panel.cxx
src/Cockpit/panel.hxx src/Cockpit/built_in/FGMagRibbon.cxx
src/Cockpit/built_in/FGMagRibbon.hxx src/FDM/flight.cxx
src/FDM/groundcache.cxx src/FDM/groundcache.hxx
src/GUI/gui_funcs.cxx src/Input/input.cxx
src/Instrumentation/od_gauge.cxx
src/Instrumentation/od_gauge.hxx
src/Instrumentation/render_area_2d.cxx
src/Instrumentation/render_area_2d.hxx
src/Instrumentation/wxradar.cxx
src/Instrumentation/wxradar.hxx
src/Instrumentation/HUD/HUD.cxx
src/Instrumentation/HUD/HUD.hxx
src/Instrumentation/HUD/HUD_runway.cxx src/Main/Makefile.am
src/Main/main.cxx src/Main/renderer.cxx src/Main/renderer.hxx
src/Main/viewmgr.cxx src/Model/acmodel.cxx
src/Model/acmodel.hxx src/Model/model_panel.cxx
src/Model/model_panel.hxx src/Model/modelmgr.cxx
src/Model/modelmgr.hxx src/Model/panelnode.cxx
src/Model/panelnode.hxx src/Navaids/awynet.cxx
src/Scenery/Makefile.am src/Scenery/hitlist.cxx
src/Scenery/hitlist.hxx src/Scenery/newcache.cxx
src/Scenery/scenery.cxx src/Scenery/scenery.hxx
src/Scenery/tileentry.cxx src/Scenery/tileentry.hxx
src/Scenery/tilemgr.cxx src/Scripting/NasalSys.cxx
src/Scripting/NasalSys.hxx src/Time/light.cxx
Big BLOB on the way to OSG.
2006-10-29 19:30:21 +00:00
mfranz
4621db6b7c
simplify name/number handling
2006-10-26 17:46:05 +00:00