- Timestamp:
- 02/27/08 09:30:29 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork2/Source/System/GraphOp/OSGMergeGraphOp.cpp
r1039 r1063 392 392 Node::ChildrenFieldType::const_iterator en = node->getMFChildren()->end (); 393 393 394 std::vector<Node RefPtr> toAdd;395 std::vector<Node RefPtr> toSub;394 std::vector<NodeInternalRefPtr> toAdd; 395 std::vector<NodeInternalRefPtr> toSub; 396 396 397 397 for ( ; it != en; ++it ) … … 429 429 GeometryPtr geo_old = dynamic_cast<GeometryPtr>((*it2)->getCore()); 430 430 //GeometryPtr geo = geo_old->clone(); 431 Geometry RefPtr geo = boost::dynamic_pointer_cast<Geometry>(OSG::deepClone(geo_old, "Material"));431 GeometryInternalRefPtr geo = boost::dynamic_pointer_cast<Geometry>(OSG::deepClone(geo_old, "Material")); 432 432 TransformPtr t = dynamic_cast<TransformPtr>((*it)->getCore()); 433 433 GeoPnt3fPropertyPtr pos = dynamic_cast<GeoPnt3fPropertyPtr>(geo->getPositions()); … … 534 534 (*it2)->setCore(geo); 535 535 536 toAdd.push_back(Node RefPtr(*it2));536 toAdd.push_back(NodeInternalRefPtr(*it2)); 537 537 } 538 538 } else empty=false; … … 544 544 if ((empty||leaf) && !special) 545 545 { 546 toSub.push_back(Node RefPtr(*it));546 toSub.push_back(NodeInternalRefPtr(*it)); 547 547 continue; 548 548 } … … 560 560 } 561 561 562 std::vector<Node RefPtr>::const_iterator addI = toAdd.begin();563 std::vector<Node RefPtr>::const_iterator addE = toAdd.end ();562 std::vector<NodeInternalRefPtr>::const_iterator addI = toAdd.begin(); 563 std::vector<NodeInternalRefPtr>::const_iterator addE = toAdd.end (); 564 564 565 565 for(; addI != addE; ++addI) … … 568 568 } 569 569 570 std::vector<Node RefPtr>::const_iterator subI = toSub.begin();571 std::vector<Node RefPtr>::const_iterator subE = toSub.end ();570 std::vector<NodeInternalRefPtr>::const_iterator subI = toSub.begin(); 571 std::vector<NodeInternalRefPtr>::const_iterator subE = toSub.end (); 572 572 573 573 for (; subI != subE; ++subI) … … 582 582 Node::ChildrenFieldType::const_iterator en = node->getMFChildren()->end (); 583 583 584 std::vector<Node RefPtr> toSub;585 std::vector<Node RefPtr> toAdd;584 std::vector<NodeInternalRefPtr> toSub; 585 std::vector<NodeInternalRefPtr> toAdd; 586 586 587 587 for ( ; it != en; ++it ) … … 598 598 bool inSubList=false; 599 599 600 std::vector<Node RefPtr>::const_iterator it3 = toSub.begin();601 std::vector<Node RefPtr>::const_iterator en3 = toSub.end();600 std::vector<NodeInternalRefPtr>::const_iterator it3 = toSub.begin(); 601 std::vector<NodeInternalRefPtr>::const_iterator en3 = toSub.end(); 602 602 603 603 for ( ; it3 != en3; ++it3 ) … … 608 608 //ok, try 609 609 std::vector<NodePtr>::const_iterator it2=it+1; 610 Geometry RefPtr new_geo;610 GeometryInternalRefPtr new_geo; 611 611 for ( ; it2!=en; ++it2) 612 612 { … … 644 644 if (new_geo!=NullFC) 645 645 { 646 Node RefPtr new_node = Node::create();646 NodeInternalRefPtr new_node = Node::create(); 647 647 new_node->setCore(new_geo); 648 648 … … 657 657 } 658 658 659 std::vector<Node RefPtr>::const_iterator addI = toAdd.begin();660 std::vector<Node RefPtr>::const_iterator addE = toAdd.end ();659 std::vector<NodeInternalRefPtr>::const_iterator addI = toAdd.begin(); 660 std::vector<NodeInternalRefPtr>::const_iterator addE = toAdd.end (); 661 661 662 662 for(; addI != addE; ++addI) … … 665 665 } 666 666 667 std::vector<Node RefPtr>::const_iterator subI = toSub.begin();668 std::vector<Node RefPtr>::const_iterator subE = toSub.end ();667 std::vector<NodeInternalRefPtr>::const_iterator subI = toSub.begin(); 668 std::vector<NodeInternalRefPtr>::const_iterator subE = toSub.end (); 669 669 670 670 for (; subI != subE; ++subI)
