Show
Ignore:
Timestamp:
05/05/08 07:12:19 (5 months ago)
Author:
vossg
Message:

changed: interface cleanup, removed ptr typedefs, nullfc

these will be needed for the 1.x compat stuff

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/System/Cluster/Window/SortFirst/OSGTileGeometryLoad.cpp

    r835 r1198  
    154154    UInt32                       bestDirY = 0; 
    155155 
    156     NodePtr node = dynamic_cast<NodePtr>(FieldContainerFactory::the()->getContainer(_nodeId)); 
    157     if(node == NullFC) 
     156    Node *node = dynamic_cast<Node *>( 
     157        FieldContainerFactory::the()->getContainer(_nodeId)); 
     158 
     159    if(node == NULL) 
    158160        return; 
    159161 
     
    296298void TileGeometryLoad::updateGeometry() 
    297299{ 
    298     NodePtr node = dynamic_cast<NodePtr>(FieldContainerFactory::the()->getContainer(_nodeId)); 
    299     if(node == NullFC) 
     300    Node *node =  
     301        dynamic_cast<Node *>( 
     302            FieldContainerFactory::the()->getContainer(_nodeId)); 
     303 
     304    if(node == NULL) 
    300305        return; 
    301306 
     
    307312    Real32             min = 0.0,max = 0.0; 
    308313    PrimitiveIterator  it; 
    309     NodeCorePtr        core; 
    310     GeometryPtr        geo; 
     314    NodeCore          *core; 
     315    Geometry          *geo; 
    311316    const Real32       sq2 = osgSqrt(2.0f); 
    312317    const Real32       sq3 = osgSqrt(3.0f); 
     
    314319    _faces = 0; 
    315320    core=node->getCore(); 
    316     if(node->getCore() == NullFC
     321    if(node->getCore() == NULL
    317322        return; 
    318     geo=dynamic_cast<GeometryPtr>(core); 
    319     if(geo == NullFC
     323    geo=dynamic_cast<Geometry *>(core); 
     324    if(geo == NULL
    320325        return; 
    321326 
     
    477482/** Get Node ptr 
    478483 **/ 
    479 NodePtr TileGeometryLoad::getNode() const 
    480 
    481     return dynamic_cast<NodePtr>(FieldContainerFactory::the()->getContainer(_nodeId)); 
     484Node *TileGeometryLoad::getNode() const 
     485
     486    return  
     487        dynamic_cast<Node *>( 
     488            FieldContainerFactory::the()->getContainer(_nodeId)); 
    482489} 
    483490