示例#1
0
NodeIterator::NodeIterator(NodeBase &start, const char *name)
{
    _stack.push_back(start.getNode());
    
    _type = OSG::FieldContainerFactory::the()->findType(name);
    
}
示例#2
0
void traverseSeq(OSG::GraphOpSeq& g, NodeBase& b) 
{
    OSG::NodePtr p = b.getNode();
    g.run(p);
}
示例#3
0
void traverse(OSG::GraphOp& g, NodeBase& b) 
{
    OSG::NodePtr p = b.getNode();
    g.traverse(p);
}
示例#4
0
void subRef(NodeBase &node)
{
    OSG::subRef(node.getNode());
}
示例#5
0
void addRef(NodeBase &node)
{
    OSG::addRef(node.getNode());
}
示例#6
0
NodeBase makeShared(NodeBase &node)
{
    return NodeBase(node.getNode()->getCore());
}
示例#7
0
void Group::subChild(NodeBase &child) 
{
    // OSG::beginEditCP(_node);
    _node->subChild(child.getNode());
    // OSG::endEditCP(_node);
}