On Fri, 2011-02-11 at 12:03 +0100, Gianni Ambrosio wrote: > Hi All, > is there a root node for all widgets inserted in a WindowManager? > > I mean, I use a root node for 3D objects in my viewer and I would like to > have the same feature for widgets. In fact in my scene manager I store a > Group node to which I add all other nodes without using a viewer pointer > again. I just add the group root node once to the viewer (on init) and the 3D > scene is updated automatically just adding a child to that group root node. > > I would like the same feature for widgets without having to add every new > widget to the window manager explicitly. Is that possible? I tried to find a > general widget in vain. The Box must specify the BoxType so it is not a nice > solution. The Window class is virtual and can not be used directly as a root > instance. Any idea?
This isn't possible in the current version of osgWidget. There is a pretty significant distinction between Drawables and Nodes. I'm curious why you want this? There might be a better way to get the results you're seeking w/ existing codestuffs. > Regards > Gianni > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=36551#36551 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

