<div dir="ltr"><div>Hi Bruno,</div><div><br></div><div>What Robert suggested is the correct one. However, I was in your situation where I had to do stuff on PagedLOD children change so I end up with a working hack, and that was an Update callback monitoring the children. Just an idea</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 24, 2017 at 12:45 AM, Bruno Oliveira <span dir="ltr"><<a href="mailto:bruno.manata.oliveira@gmail.com" target="_blank">bruno.manata.oliveira@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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="HOEnZb"><div class="h5"><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="m_2000023624681430783h5"><<a href="mailto:bruno.manata.oliveira@gmail.com" target="_blank">bruno.manata.oliveira@gmail.c<wbr>om</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::ReadFileCallb<wbr>ack, 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" target="_blank">osg-users@lists.openscenegraph<wbr>.org</a><br>
> <a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank" rel="noreferrer">http://lists.openscenegraph.or<wbr>g/listinfo.cgi/osg-users-opens<wbr>cenegraph.org</a><br>
><br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph<wbr>.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank" rel="noreferrer">http://lists.openscenegraph.or<wbr>g/listinfo.cgi/osg-users-opens<wbr>cenegraph.org</a><br>
</blockquote></div><br></div>
</div></div><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" target="_blank" rel="noreferrer">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">trajce nikolov nick<br></div>
</div>