Show
Ignore:
Timestamp:
05/05/08 07:12:19 (4 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/BalancedMultiWindow/OSGBalancedMultiWindow.cpp

    r1194 r1198  
    105105} 
    106106 
    107 void BalancedMultiWindow::serverInit(WindowPtr serverWindow, UInt32 id) 
     107void BalancedMultiWindow::serverInit(Window *serverWindow, UInt32 id) 
    108108{ 
    109109    Inherited::serverInit(serverWindow,id); 
     
    111111 
    112112#ifdef OSG_OLD_RENDER_ACTION 
    113 void BalancedMultiWindow::serverRender(WindowPtr       serverWindow,  
     113void BalancedMultiWindow::serverRender(Window         *serverWindow,  
    114114                                       UInt32          id,  
    115115                                       DrawActionBase *action      ) 
     
    288288void BalancedMultiWindow::clientPreSync(void) 
    289289{ 
    290     if(getHServers() * getVServers() == 0 && getClientWindow() != NullFC
     290    if(getHServers() * getVServers() == 0 && getClientWindow() != NULL
    291291    { 
    292292        if(getWidth() != getClientWindow()->getWidth() || 
    293293           getHeight() != getClientWindow()->getHeight())  
    294294        { 
    295             ClusterWindowPtr ptr = this; 
     295            ClusterWindow *ptr = this; 
    296296 
    297297            setWidth(getClientWindow()->getWidth()); 
     
    334334    _loadTime = 0; 
    335335    if(getHServers() * getVServers() == 0 && 
    336         getClientWindow() != NullFC
     336        getClientWindow() != NULL
    337337    { 
    338338        _loadTime = -getSystemTime(); 
     
    404404    // rendering to local window 
    405405    if(getHServers() * getVServers() != 0 && 
    406        getClientWindow() != NullFC
     406       getClientWindow() != NULL
    407407    { 
    408408        getClientWindow()->renderAllViewports( action ); 
     
    518518                                                 Matrix &proj) 
    519519{ 
    520     ViewportPtr viewport = getPort(port.id); 
     520    Viewport *viewport = getPort(port.id); 
    521521 
    522522    Pnt3f vol[2]; 
     
    664664void BalancedMultiWindow::createLoadGroups(void) 
    665665{ 
    666     ViewportPtr viewport; 
    667     NodePtr     root; 
    668     UInt32      v; 
     666    Viewport *viewport; 
     667    Node     *root; 
     668    UInt32    v; 
    669669 
    670670    if(!_rebuildLoadGroups) 
     
    726726    the loadGroup vector is equal on client and server 
    727727 */ 
    728 void BalancedMultiWindow::collectLoadGroups(NodePtr node,NodePtr root) 
     728void BalancedMultiWindow::collectLoadGroups(Node *node, Node *root) 
    729729{ 
    730730    LoadGroup load; 
     
    736736 
    737737    // ignore null node 
    738     if(node == NullFC
     738    if(node == NULL
    739739        return; 
    740740     
    741     NodeCorePtr core = node->getCore(); 
    742     if(core != NullFC
    743     { 
    744         ChunkMaterialPtr mat
    745         GeometryPtr geo
    746         ProxyGroupPtr proxy
     741    NodeCore *core = node->getCore(); 
     742    if(core != NULL
     743    { 
     744        ChunkMaterial *mat   = NULL
     745        Geometry      *geo   = NULL
     746        ProxyGroup    *proxy = NULL
    747747 
    748748        load.root = root; 
     
    753753 
    754754        // handle poxy groups 
    755         proxy = dynamic_cast<ProxyGroupPtr>(core); 
    756         if(proxy != NullFC
     755        proxy = dynamic_cast<ProxyGroup *>(core); 
     756        if(proxy != NULL
    757757        { 
    758758            load.constant = proxy->getIndices() / MW_INDICES_PER_SEC; 
    759759            load.ratio    = proxy->getIndices() / MW_VISIBLE_INDICES_PER_SEC; 
    760760        } 
    761         geo = dynamic_cast<GeometryPtr>(core); 
    762         if(geo != NullFC
    763         { 
    764             GeoIntegralPropertyPtr indices =  
     761        geo = dynamic_cast<Geometry *>(core); 
     762        if(geo != NULL
     763        { 
     764            GeoIntegralProperty *indices =  
    765765                geo->getIndex(Geometry::PositionsIndex); 
    766766 
    767             GeoVectorPropertyPtr positions = geo->getPositions(); 
    768  
    769             ChunkMaterialPtr mat =  
    770                 dynamic_cast<ChunkMaterialPtr> (geo->getMaterial ()); 
     767            GeoVectorProperty *positions = geo->getPositions(); 
     768 
     769            ChunkMaterial *mat =  
     770                dynamic_cast<ChunkMaterial *> (geo->getMaterial ()); 
    771771 
    772772            // constant geometry setup cost 
    773             if ((indices != NullFC))  
     773            if ((indices != NULL))  
    774774            { 
    775775                load.constant = indices->getSize() / MW_INDICES_PER_SEC; 
     
    777777            } 
    778778            else 
    779                 if(positions != NullFC)  
     779                if(positions != NULL)  
    780780                { 
    781781                    load.constant = positions->getSize() / MW_INDICES_PER_SEC; 
     
    783783                } 
    784784            // pixel cost for shaders 
    785             if (mat != NullFC && mat->find (SHLChunk::getClassType ()) != NullFC
     785            if (mat != NULL && mat->find (SHLChunk::getClassType ()) != NULL
    786786                load.pixel =  1.0 / (float)MW_SHADED_PIXEL_PER_SEC; 
    787787            else 
     
    855855{ 
    856856    Int32 cleft,cright,ctop,cbottom; 
    857     ViewportPtr serverPort,clientPort; 
     857    Viewport *serverPort, *clientPort; 
    858858    TileCameraDecoratorUnrecPtr deco; 
    859859    UInt32 cv,sv=0; 
     
    914914 
    915915    // verify if the viewport type has changed 
    916     if(port.serverPort != NullFC
     916    if(port.serverPort != NULL
    917917    { 
    918918        if(port.serverPort->getType().getId() != getPort(port.id)->getType().getId()) 
     
    921921            //subRefX(port.serverPort->getCamera()); 
    922922            //subRefX(port.serverPort); 
    923             port.serverPort = NullFC
     923            port.serverPort = NULL
    924924        } 
    925925 
     
    927927 
    928928    // create port and deco for visualization, only if necessary 
    929     if(port.serverPort == NullFC
     929    if(port.serverPort == NULL
    930930    { 
    931931        ViewportUnrecPtr pTmpPort =  
     
    940940    else 
    941941    { 
    942         deco = dynamic_cast<TileCameraDecoratorPtr>(port.serverPort->getCamera()); 
     942        deco =  
     943            dynamic_cast<TileCameraDecorator *>(port.serverPort->getCamera()); 
    943944    } 
    944945    // decorate client camera 
     
    17211722/*! store viewport 
    17221723 */ 
    1723 void BalancedMultiWindow::storeViewport(Area &area,ViewportPtr vp, 
     1724void BalancedMultiWindow::storeViewport(Area &area,Viewport *vp, 
    17241725                                        Int32 const (&rect)[4]) 
    17251726{ 
     
    18041805 
    18051806    // start rendering 
    1806     if(window != NullFC
     1807    if(window != NULL
    18071808    { 
    18081809        window->activate (); 
     
    20152016/*! preload display lists and textures 
    20162017 */ 
    2017 void BalancedMultiWindow::preloadCache(WindowPtr window, 
     2018void BalancedMultiWindow::preloadCache(Window         *window, 
    20182019                                       DrawActionBase *action) 
    20192020{ 
    2020     NodePtr root = NullFC
     2021    NodePtr root = NULL
    20212022    UInt32 v; 
    20222023 
     
    20332034            continue; 
    20342035        root = viewport->getRoot(); 
    2035         if(root == NullFC
     2036        if(root == NULL
    20362037            continue; 
    20372038        root->updateVolume();