/// Add a child node void DAGNode::addChild(core::objectmodel::BaseNode::SPtr node) { // printf("DAGNode::addChild this=%s child=%s\n",getName().c_str(),node->getName().c_str()); DAGNode::SPtr dagnode = sofa::core::objectmodel::SPtr_static_cast<DAGNode>(node); notifyAddChild(dagnode); doAddChild(dagnode); }
/// Add a child node void GNode::addChild(core::objectmodel::BaseNode::SPtr node) { GNode::SPtr gnode = sofa::core::objectmodel::SPtr_dynamic_cast<GNode>(node); notifyAddChild(gnode); doAddChild(gnode); }