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/FileIO/OSG/OSGOSGLoader.cpp

    r1018 r1039  
    366366                          const Char8 *szNodename) 
    367367{ 
    368     FieldContainerPtr pNewNode; 
     368    FieldContainerRefPtr pNewNode; 
    369369 
    370370    if(szNodeTypename == NULL) 
     
    414414    if(_fcStack.size() == 1) 
    415415    { 
    416         NodePtr pNode = NullFC
     416        NodeRefPtr pNode
    417417 
    418418        if(_pCurrentFC->getType().isNode()) 
    419419        { 
    420             pNode = dynamic_cast<NodePtr>(_pCurrentFC); 
     420            pNode = boost::dynamic_pointer_cast<Node>(_pCurrentFC); 
    421421        } 
    422422        else if(_pCurrentFC->getType().isNodeCore()) 
     
    424424            pNode = Node::create(); 
    425425 
    426             pNode->setCore(dynamic_cast<NodeCorePtr>(_pCurrentFC)); 
     426            pNode->setCore(boost::dynamic_pointer_cast<NodeCore>(_pCurrentFC)); 
    427427        } 
    428428        else 
     
    434434        if(_pRootNode == NullFC) 
    435435        { 
    436             GroupPtr pGroup = Group::create(); 
     436            GroupRefPtr pGroup = Group::create(); 
    437437 
    438438            _pRootNode = Node::create(); 
     
    461461        if(_pCurrentFC->getType().isNode() == true) 
    462462        { 
    463             NodePtr pNode = dynamic_cast<NodePtr>(_pCurrentFC); 
     463            NodeRefPtr pNode = boost::dynamic_pointer_cast<Node>(_pCurrentFC); 
    464464 
    465465            if(pNode->getCore() == NullFC) 
    466466            { 
    467                 GroupPtr pGroup = Group::create(); 
     467                GroupRefPtr pGroup = Group::create(); 
    468468 
    469469                pNode->setCore(pGroup);