Hi Pawan,

In osg::Group there is:

       /** Return child node at position i. */
       inline Node* getChild( unsigned  int i ) { return _children[i].get(); }

       /** Return child node at position i. */
       inline const Node* getChild( unsigned  int i ) const { return
_children[i].get(); }

So const and non const versions do exist, you'll only get access to
the non const version when your handle to Group is non const.

Robert.


On 2/15/07, Pawan Harish <[EMAIL PROTECTED]> wrote:
Hi,
   I cannot seem to a get a child using the getChild() of osg::Group
without the const pointer. I need to modify the child after getting it
from the parent. There are 2 functions in osg::Group but it only seem to
call the const function and not the other, please help.

Pawan Harish

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to