Canvas MFD framework: Difference between revisions

Jump to navigation Jump to search
m
→‎Background: http://forum.flightgear.org/viewtopic.php?f=71&t=21840&p=198206&hilit=pfd#p198205
m (→‎Background: http://forum.flightgear.org/viewtopic.php?p=198150#p198150)
m (→‎Background: http://forum.flightgear.org/viewtopic.php?f=71&t=21840&p=198206&hilit=pfd#p198205)
Line 20: Line 20:


== Background ==
== Background ==
Basically, my idea was to generalize the ND code some more and come up with helper classes for 1) SGSubsystems, 2) MFD instruments and 3) image generators, 4) displays and display switches/selectors. Introducing a handful of helper classes would allow us to support all important use-cases that are common in modern glass cockpits, including switching between different FMCs or PFDs/NDs.
Canvas MFD displays are just canvas textures, which are just represented as "properties", or rather, "property branches" - in the form of /canvas/by-index/texture[x] - you can use the property tree browser to check how these work - but basically, each canvas texture can have multiple "placements", such as "aircraft", "scenery" or GUI (dialog/window) - these placements maintain a reference count internally.
Canvas MFD displays are just canvas textures, which are just represented as "properties", or rather, "property branches" - in the form of /canvas/by-index/texture[x] - you can use the property tree browser to check how these work - but basically, each canvas texture can have multiple "placements", such as "aircraft", "scenery" or GUI (dialog/window) - these placements maintain a reference count internally.


Navigation menu