durk
301054204e
James Turner: Improved runway management code:
...
- Runways are now part of an airport, instead of a separate list
- Runways are no longer represented as a boring struct, but as a class
of their own.
-Improved runway access to unify various runway access methods.
2008-08-14 18:13:39 +00:00
mfranz
fa2387c05b
- fix function argument order (top & bottom were swapped)
...
- drop wrong and superfluous rounding (sprintf() rounds already)
- remove redundant default values to property getters (default is 0 already)
2008-08-05 05:22:05 +00:00
mfranz
61812ef4b8
better use unset() for unsetting ...
2008-07-30 15:01:59 +00:00
mfranz
a0c2e5b97f
disable clip planes after use (Doesn't seem to make a difference,
...
and is only a temporary measure, as it was planned to OSGify the
HUD and put it in the scenegraph etc.)
2008-07-30 14:52:01 +00:00
mfranz
7a3fe04275
s/clip/clipping/
2008-07-29 15:48:11 +00:00
mfranz
7ba3d5cb53
- extract clipping code to HUD.cxx, allowing generic clipping
...
and separate ladder clipping
- fix acceleration node names
- draw 90/-90 bars if there's no zenith/nadir
2008-07-29 15:41:25 +00:00
ehofman
429f2530de
James Turner:
...
* experimental clean-up / reduction on two of the FG headers:
(I'm going to await feedback on the developers list before doing more of
these, to avoiding going over files multiple times, but in principle it
seems pretty straightforward.)
* final fixes for SG_USING_STD removal
2008-07-29 08:27:48 +00:00
mfranz
5cceb32c0a
- read x/y/width/height as floats
...
- don't write bars past nadir/zenith (better MILSTD compliance)
- introduce tick-length/zero-bar-overlength/enable-dive-bar-angle
configuration parameters
- simplification
2008-07-28 17:04:24 +00:00
ehofman
667e64e1eb
- remove the SG_GLxxxx_H #defines, since OSG provides its own versions
...
- this exposed a bizarre issue on Mac where dragging in <AGL/agl.h> in
extensions.hxx was pulling in all of Carbon to the global namespace
- very scary. As a result, I now need to explicitly include CoreFoundation
in fg_init.cxx.
- change SG_USING_STD(x) to using std::x
2008-07-27 16:25:13 +00:00
fredb
967bf101ef
Restore inclusion of GLU.h
2008-07-27 16:08:45 +00:00
fredb
3db0cf1659
Remove unneeded inclusions of windows.h, GL.h and GLU.H
2008-07-27 15:18:34 +00:00
ehofman
d9bfd5a425
This should apply, and everything should build cleanly, in isolation from the
...
SimGear change. It changes all the SG_xxxx to be the 'real' includes, and gets
rid of many #ifdef SG_HAVE_STD_INCLUDES. As an added bonus, rather than
replacing 'SG_USING_NAMESPACE(std)' with 'using namespace std', I just fixed
the small number of places to use std:: explicitly. So we're no longer polluting
the global namespace with the entire contents of std, in many cases.
There is one more 'mechanical' change to come - getting rid of SG_USING_STD(X),
but I want to keep that separate from everything else. (There's another
mechnical change, replacing <math.h> with <cmath> and so on *everywhere*, but
one step at a time)
2008-07-25 18:38:29 +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
00f8463ab4
Another round of memory leak fixes from Till Busch
2008-01-24 23:05:58 +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
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
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
010e03fab4
throw out "zoomed" tapes. These drew 60% of the scale with bullets rather
...
than tick marks, and looser (zoomed) than the other 40%. Rationale:
- this was only used in *one* tape of *one* HUD ("custom")
- it's not in the MIL-STD!
- doesn't seem very useful
- relies on integer scale values, while we now have float values in the new HUD
This feature would have had to be rewritten anyway. If someone needs it and
can come forward with a (MIL-)STD description, then it can be added to the
existing tape generator again (using a value->screen-position mapper function).
Otherwise it's simply declared dead.
(Yay, one TODO and a few FIXMEs less. ;-)
2006-08-02 15:34:33 +00:00
mfranz
46efbb0801
- "almost zero" is zero
...
- improve/add <format> warning
2006-08-01 21:43:13 +00:00
fredb
d0f8f8351b
Avoid redefinition in the same prototype
2006-08-01 21:16:56 +00:00
mfranz
2f8a476c3a
add optional <format> property for <tape>s
2006-08-01 21:11:38 +00:00
mfranz
b1a4fa24d4
cosmetics
2006-08-01 18:46:59 +00:00
mfranz
3f1af3334f
fix no-hole ladder (not that I think this mode will enjoy a long life)
2006-08-01 18:07:26 +00:00
mfranz
866b7c0cbb
fix vertical tape gap
2006-08-01 17:25:51 +00:00
mfranz
cc10e1986f
use assignment operators (to my defense: the *x/*y were different on both
...
sides of the equal sign at some time ... :-)
2006-08-01 15:49:29 +00:00
mfranz
4419aa2cb3
- make the alignment function a static HUD member (for namespace
...
encapsulation, but a real namespace would probably be better)
- extend alignment to optionally adjust x/y, and to return absolute
l/r/b/t coordinates (as opposed to plib's relative ones!)
- implement tape gaps as per Curt's order :-)
- shuffling stuff around for fun
2006-08-01 15:31:15 +00:00
mfranz
46a70b21a6
whoops
2006-07-31 19:32:02 +00:00
mfranz
651861dfb1
cleanup
2006-07-31 19:25:41 +00:00
mfranz
f3dd7c363c
draw dive lines always from the center, so that the stipple pattern is
...
symmetrical
2006-07-31 18:09:13 +00:00
mfranz
3abd816f46
cosmetics & cleanup
2006-07-31 17:36:27 +00:00
mfranz
acc3230fd0
remove obsolete text_width() function (a similiar function will be made
...
a method of TextList)
2006-07-31 16:56:15 +00:00
mfranz
5bb3eb260b
use HUDText adjustment (gauges with text aren't used anywhere, and this
...
change is untested for now)
2006-07-31 15:57:39 +00:00
mfranz
8cd9535660
use HUDText adjustment
2006-07-31 15:36:48 +00:00
mfranz
ece7aee8a9
- use correct ladder bar angle
...
- minor dive angle number adjustment
2006-07-31 14:25:09 +00:00
mfranz
3cba94018b
- move HUDText constructor/methods to HUD.cxx
...
- add generic text adjustment and
- use it in the ladder: climb -> vert bar on the outside, numbers below line
dive -> vert bar on the inside, numbers above line
2006-07-31 13:10:26 +00:00
mfranz
f012620134
remove unused options & add two new ones
2006-07-29 19:45:17 +00:00
curt
d9723e6805
Specify "clip planes" as a separate independent option (not implied from
...
the type option.) The clip area is and has always been hard coded, but at
some point we should make it configurable.
2006-07-28 20:17:58 +00:00
mfranz
1576fc1050
reduce marker gap
2006-07-28 18:41:12 +00:00
curt
183fffaa08
Simplify dynamic ladder motion option.
2006-07-28 18:37:33 +00:00
curt
8c38bd4427
Remove some junk.
...
Note: the previous commit angles the negative ladder marks progressively more
steeply as per MIL-STD.
2006-07-28 14:32:40 +00:00
curt
cccdbddddd
Add an option to get a realistic climb dive ladder without all the other
...
implications.
Fix the ladder so it "moves" around in the hud correctly based on alpha/beta
offset projected onto the horizon line so the horizon is always the horizon.
2006-07-28 14:22:08 +00:00
mfranz
08d1b7748f
<option>top</option> draws tbi on top (vertically mirrored)
2006-07-28 10:11:34 +00:00
mfranz
7c3711bcdf
- fix turn bank indicator (bank scale type)
...
- cleanup
2006-07-27 23:34:11 +00:00
frohlich
cdb725528d
Clean up scenery center handling. It is set now less often.
2006-07-27 16:36:22 +00:00
curt
f30f4b866b
Add support for drawing target markers (circles on top of any AI/MP aircraft)
...
as part of the conformal HUD ladder.
2006-07-27 02:46:14 +00:00
mfranz
5d10e338d5
no more FONT_(LARGE|SMALL) (didn't work, anyway, and isn't needed)
2006-07-25 22:21:56 +00:00
mfranz
9799f05bb7
finally fix the text-in-box alignment (= Rocket Science[TM]!)
...
(This will be moved to HUD_instrument.cxx, where it will be available to
all draw_text() users.)
2006-07-25 20:05:52 +00:00
mfranz
89d56f0c60
define label box pointer via <pointer-width> (width of base) and
...
<pointer-length>
2006-07-25 07:07:34 +00:00
mfranz
447c06ecd3
I've heard that endless loops aren't overly popular.
2006-07-24 17:52:20 +00:00
mfranz
77019014d6
8 is a bit too much for <marker-offset> default; use 5
2006-07-24 17:46:08 +00:00