void RemoveQueries::apply( osg::Node& node ) { QueryCullCallback* qcc = dynamic_cast< QueryCullCallback* >( node.getCullCallback() ); if( qcc != NULL ) node.setCullCallback( NULL ); traverse( node ); }
void PrepareForOptimizationVisitor::apply(osg::Node& node) { node.setUserData(0); node.setUserDataContainer(0); node.setName(""); node.setDataVariance(osg::Object::STATIC); node.setCullCallback(0); node.setEventCallback(0); node.setUpdateCallback(0); traverse(node); }
virtual void apply(osg::Node& node) { node.setUpdateCallback(new UpdateCallback()); node.setCullCallback(new CullCallback()); traverse(node); }