[osg-users] Perform actions when a child node is added
Robert Osfield
robert.osfield at gmail.com
Fri Jun 23 07:18:06 PDT 2017
HI Bruno,
There is no "child added callback" mechanism in osg::Group, but you
can override the addChild and insertChild methods to catch attempts to
add children, deferring the implementation to the underlying
addChild/insertChild method and then doing what extra's you want,
Robert.
On 23 June 2017 at 11:31, Bruno Oliveira
<bruno.manata.oliveira at gmail.com> wrote:
> Hello,
>
>
> I want to be able to perform some actions inside a node of my own, when
> someone adds a child node to it.
>
> Is this possible via some callback mechanism or so?
>
>
> ------
>
> Also, another question. Using osgDB::Registry::ReadFileCallback, I can only
> perform actions after a node is read and before it is added to me scene. Is
> it possible to perform actions AFTER the node is read and added to the
> scene?
>
>
> Thanks.
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
More information about the osg-users
mailing list