コード例 #1
0
void
ColladaNode::readInstanceController(domInstance_controller *instCtrl)
{
    ColladaInstanceControllerRefPtr colInstCtrl =
        getUserDataAs<ColladaInstanceController>(instCtrl);

    if(colInstCtrl == NULL)
    {
        colInstCtrl = dynamic_pointer_cast<ColladaInstanceController>(
            ColladaElementFactory::the()->create(instCtrl, getGlobal()));

        colInstCtrl->read(this);
    }
}
コード例 #2
0
void
ColladaNode::handleInstanceController(domInstance_controller *instController)
{
    ColladaInstanceControllerRefPtr colInstCont =
		getUserDataAs<ColladaInstanceController>(instController);

    if(colInstCont == NULL)
    {
        colInstCont = dynamic_pointer_cast<ColladaInstanceController>(
            ColladaElementFactory::the()->create(instController, getGlobal()));

        colInstCont->read();
    }

    NodeUnrecPtr contN = colInstCont->process(this);

    appendChild(contN);

}