Esempio n. 1
0
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);
}
Esempio n. 2
0
void TransformerGraph::setWorldName(osg::Node &transformer, const std::string &name)
{
    transformer.setName(name);
    osgText::Text* text = getFrameText(&transformer);
    text->setText(name);
}