Hi Max

If by level you mean how deep the node is in the graph, there are nothing
like this in OSG.
Indeed, you have to traverse the graph with a custom osg::NodeVisitor.
You could store information in osg::Object::setUserDataContainer(...).
osg::Object is the base class of osg::Node.

HTH
David

2013/3/27 Max Ashton <m...@half-a-pixel.co.uk>

> Hi guys,
>
> Sorry for the beginner question but I can't seem to find the answer in the
> documentation.
>
> How would one go about finding the level of a node in the tree, i'm
> presuming that the node knows its level. Or is it something I would have to
> work out by traversing the tree and then storing it myself??
>
> Just trying to avoid rewriting something that may already be there
>
> Thank you!
>
> Kind Regards
> Max
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=53339#53339
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to