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/Base/OSGClusterWindow.cpp

    r1194 r1198  
    612612bool ClusterWindow::loadCalibration(std::istream &in) 
    613613{ 
    614     ClusterWindowPtr ptr(this); 
    615     DisplayCalibrationPtr calibPtr; 
     614    ClusterWindow *ptr(this); 
     615    DisplayCalibration *calibPtr; 
    616616    xmlpp::xmlcontextptr ctxptr(new xmlpp::xmlcontext()); 
    617617    xmlpp::xmldocument doc(ctxptr); 
     
    10661066void ClusterWindow::clientPreSync( void ) 
    10671067{ 
    1068     if(getClientWindow() != NullFC
     1068    if(getClientWindow() != NULL
    10691069    { 
    10701070        getClientWindow()->activate (); 
     
    10831083void ClusterWindow::clientRender(DrawActionBase *action) 
    10841084{ 
    1085     if(getClientWindow() != NullFC
     1085    if(getClientWindow() != NULL
    10861086    { 
    10871087        getClientWindow()->renderAllViewports(action); 
     
    10921092void ClusterWindow::clientRender(RenderActionBase *action) 
    10931093{ 
    1094     if(getClientWindow() != NullFC
     1094    if(getClientWindow() != NULL
    10951095    { 
    10961096        getClientWindow()->renderAllViewports(action); 
     
    11061106void ClusterWindow::clientSwap( void ) 
    11071107{ 
    1108     if(getClientWindow() != NullFC
     1108    if(getClientWindow() != NULL
    11091109    { 
    11101110        getClientWindow()->swap     (); 
     
    11951195 **/ 
    11961196 
    1197 void ClusterWindow::serverInit(WindowPtr
    1198                                UInt32 
     1197void ClusterWindow::serverInit(Window *
     1198                               UInt32 
    11991199{ 
    12001200} 
     
    12121212 
    12131213#ifdef OSG_OLD_RENDER_ACTION 
    1214 void ClusterWindow::serverRender( WindowPtr window, 
    1215                                   UInt32 id, 
    1216                                   DrawActionBase *action ) 
     1214void ClusterWindow::serverRender(Window         *window, 
     1215                                 UInt32          id, 
     1216                                 DrawActionBase *action ) 
    12171217{ 
    12181218    window->activate(); 
     
    12381238                (*portIt)->findAttachment(OSG::RenderOptions::getClassType())); 
    12391239            // try to find option an attachment at the root node 
    1240             OSG::RenderOptionsPtr rootRo = NullFC
    1241             if((*portIt)->getRoot() != NullFC
     1240            OSG::RenderOptionsPtr rootRo = NULL
     1241            if((*portIt)->getRoot() != NULL
    12421242            { 
    12431243                rootRo = OSG::RenderOptionsPtr::dcast( 
    12441244                    (*portIt)->getRoot()->findAttachment(OSG::RenderOptions::getClassType())); 
    12451245            } 
    1246             if(rootRo != NullFC
     1246            if(rootRo != NULL
    12471247                ro = rootRo; 
    12481248            else 
    1249                 if(vpRo != NullFC
     1249                if(vpRo != NULL
    12501250                    ro = vpRo; 
    12511251                else 
    12521252                    ro = winRo; 
    1253             if(ro != NullFC
     1253            if(ro != NULL
    12541254                ro->activateOptions(ract); 
    12551255            (*portIt)->render(ract); 
     
    12621262 
    12631263    // do calibration 
    1264     DisplayCalibrationPtr calibPtr=NullFC
     1264    DisplayCalibrationPtr calibPtr=NULL
    12651265    UInt32 c, p; 
    12661266     
     
    12901290#endif 
    12911291 
    1292 void ClusterWindow::serverRender( WindowPtr window, 
    1293                                   UInt32 id, 
    1294                                   RenderActionBase *action ) 
     1292void ClusterWindow::serverRender(Window           *window, 
     1293                                 UInt32            id, 
     1294                                 RenderActionBase *action ) 
    12951295{ 
    12961296    window->activate(); 
     
    13021302    UInt32 c; 
    13031303 
    1304     DisplayCalibrationPtr calibPtr = NullFC
     1304    DisplayCalibrationPtr calibPtr = NULL
    13051305 
    13061306    for(c = 0 ; c < getCalibration().size() ;++c) 
     
    13131313    } 
    13141314 
    1315     if(calibPtr != NullFC
     1315    if(calibPtr != NULL
    13161316        calibPtr->calibrate(window,action); 
    13171317#endif 
     
    13271327 * !param connection connection to client 
    13281328 **/ 
    1329 void ClusterWindow::serverSwap( WindowPtr window, 
    1330                                 UInt32
     1329void ClusterWindow::serverSwap(Window *window, 
     1330                               UInt32       
    13311331{ 
    13321332    window->swap     ();