]> git.mxchange.org Git - simgear.git/commit
Restructure Canvas/PropertyBasedElement
authorThomas Geymayer <tomgey@gmail.com>
Sat, 8 Jun 2013 09:28:49 +0000 (11:28 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Sat, 8 Jun 2013 09:28:49 +0000 (11:28 +0200)
commit9bfa6ac1a117a265543d7090f8e9a77ebfed4095
tree8ef64a35f29814480fbbbe94b32d80343f40e861
parentc8af817eebf13f4425692ddd36e5d6919cc91ce4
Restructure Canvas/PropertyBasedElement

Nodes inside the osg scenegraph now hold a strong reference to
the according canvas element. Canvas elements in turn now only
hold a weak reference to the according node. This simplifies
for example the canvas::Group as it does not need to keep a
list of children on its own anymore. This is now stored inside
the scenegraph (as it was already before).

The restructuring will also allow to use a canvas::Group for
the canvas gui inside FlightGear and share for example the
handling of stacking based on z-index.
simgear/canvas/Canvas.cxx
simgear/canvas/Canvas.hxx
simgear/canvas/elements/CanvasElement.cxx
simgear/canvas/elements/CanvasElement.hxx
simgear/canvas/elements/CanvasGroup.cxx
simgear/canvas/elements/CanvasGroup.hxx
simgear/canvas/elements/CanvasImage.cxx
simgear/props/PropertyBasedElement.cxx
simgear/props/PropertyBasedElement.hxx
simgear/props/PropertyBasedMgr.cxx