Show
Ignore:
Timestamp:
01/16/08 16:07:40 (1 year ago)
Author:
cneumann
Message:

changed: - factory functions return a TransitPtr? that can not be implicitly

converted to C Ptr. Should help with porting.

added: - GlobalRefPtr?, needed for cases where upon return from main

a RefPtr? goes out of scope (it would attempt to access the
FCFactory which is already shutdown at that point).

status: - vrml loader does not compile (needs porting to ref ptr)

  • tutorials compile, run and exit cleanly
  • multithreading and cluster are untested, yet
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/GraphOp/OSGVerifyGraphOp.cpp

    r1023 r1039  
    131131} 
    132132 
    133 bool VerifyGraphOp::traverse(NodePtr& node) 
     133bool VerifyGraphOp::traverse(NodePtr node) 
    134134{ 
    135135    // Clean up 
     
    190190            if(_verbose)  
    191191                SINFO << "  Repairing node.  Adding group core." << endLog; 
    192             node->setCore(Group::create()); 
     192                 
     193            GroupRefPtr pCore = Group::create(); 
     194            node->setCore(pCore); 
    193195            std::string new_name = node_name + "_FIXED"; 
    194196            OSG::setName(node, new_name); 
     
    340342 
    341343 
    342 bool VerifyGraphOp::verifyIndexMap(GeometryPtr &geo, bool &repair) 
     344bool VerifyGraphOp::verifyIndexMap(GeometryPtr geo, bool &repair) 
    343345{ 
    344346    repair = false; 
     
    466468                    nname += "_CORRUPTED"; 
    467469                    OSG::setName(parent, nname.c_str()); 
    468                     parent->setCore(Group::create()); 
     470                     
     471                    GroupRefPtr pCore = Group::create(); 
     472                    parent->setCore(pCore); 
    469473                } 
    470474            }