Hi,

Is it an update callback or a cull calback ?

On Wed, Jun 25, 2008 at 5:11 PM, Ahmed Nawar <[EMAIL PROTECTED]>
wrote:

>
> Dear All,
>
> i attached  a callback to a geode node.
>
> CallBack operator:
>
> void GeodeCallBack::operator()( osg::Node* node, osg::NodeVisitor* nv )
> {
>
>        osg::Geode* geode =
>        dynamic_cast<osg::Geode*>( node );
>
>        geode->removeDrawables(0,geode->getNumDrawables ());
>
>       // get different drawable.
>        osg::Drawable *d =  drawableBuilder->getDrawable(dataPoint->shape);
>
>        geode->addDrawable( d );
>
>        traverse( node, nv );
> }
>
>
> 1- is it Ok to change the geode's contains in the callback?
> 2- some times the " geode->addDrawable( d ); "  terminate the program. any
> ideas?
>
> Thanks,
> Ahmed Nawar
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Serge Lages
http://www.tharsis-software.com
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to