<div dir="ltr">I actually tried it already, in my nodes derived doth from osg::Group* and osg::PagedLOD*. <div>However, overloading the PagedLOD's functions made my scene crash the app during the cull traversal (my overload was rewriting the node's center, radius and InitialBound...)</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-23 15:18 GMT+01:00 Robert Osfield <span dir="ltr"><<a href="mailto:robert.osfield@gmail.com" target="_blank">robert.osfield@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">HI Bruno,<br>
<br>
There is no "child added callback" mechanism in osg::Group, but you<br>
can override the addChild and insertChild methods to catch attempts to<br>
add children, deferring the implementation to the underlying<br>
addChild/insertChild method and then doing what extra's you want,<br>
<br>
Robert.<br>
<br>
On 23 June 2017 at 11:31, Bruno Oliveira<br>
<div><div class="h5"><<a href="mailto:bruno.manata.oliveira@gmail.com">bruno.manata.oliveira@gmail.<wbr>com</a>> wrote:<br>
> Hello,<br>
><br>
><br>
> I want to be able to perform some actions inside a node of my own, when<br>
> someone adds a child node to it.<br>
><br>
> Is this possible via some callback mechanism or so?<br>
><br>
><br>
> ------<br>
><br>
> Also, another question. Using osgDB::Registry::<wbr>ReadFileCallback, I can only<br>
> perform actions after a node is read and before it is added to me scene. Is<br>
> it possible to perform actions AFTER the node is read and added to the<br>
> scene?<br>
><br>
><br>
> Thanks.<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> osg-users mailing list<br>
> <a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
> <a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
><br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
</blockquote></div><br></div>