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/SortFirst/OSGSortFirstWindow.cpp

    r1194 r1198  
    129129 * 
    130130 **/ 
    131 void SortFirstWindow::serverInit(WindowPtr serverWindow, 
    132                                  UInt32    id) 
     131void SortFirstWindow::serverInit(Window *serverWindow, 
     132                                 UInt32   id) 
    133133{ 
    134134#if USE_VPORT_SLICES 
     
    157157 * todo: enamble frustum culling if error is removed 
    158158 **/ 
    159 void SortFirstWindow::serverRender( WindowPtr serverWindow, 
     159void SortFirstWindow::serverRender( Window *serverWindow, 
    160160                                    UInt32 id, 
    161161                                    DrawActionBase *action ) 
     
    294294#endif 
    295295 
    296 void SortFirstWindow::serverRender( WindowPtr         serverWindow, 
     296void SortFirstWindow::serverRender( Window           *serverWindow, 
    297297                                    UInt32            id, 
    298298                                    RenderActionBase *action ) 
     
    300300    TileCameraDecoratorUnrecPtr deco; 
    301301    ViewportUnrecPtr serverPort; 
    302     ViewportPtr clientPort; 
     302    Viewport *clientPort; 
    303303    UInt32 sv,cv,regionStart; 
    304304    UInt32 vpWidth; 
     
    323323        { 
    324324            serverPort = serverWindow->getPort(sv); 
    325             deco=dynamic_cast<TileCameraDecoratorPtr>(serverPort->getCamera()); 
     325            deco=dynamic_cast<TileCameraDecorator *>(serverPort->getCamera()); 
    326326            if(serverWindow->getPort(sv)->getType() !=  
    327327               clientPort->getType()) 
     
    337337            else 
    338338            { 
    339                 deco=dynamic_cast<TileCameraDecoratorPtr>(serverPort->getCamera()); 
     339                deco=dynamic_cast<TileCameraDecorator *>( 
     340                    serverPort->getCamera()); 
    340341            } 
    341342            //serverPort = serverWindow->getPort()[sv]; 
     
    409410    for(sv=0;sv<serverWindow->getMFPort()->size();++sv) 
    410411    { 
    411         ViewportPtr vp=serverWindow->getPort(sv); 
     412        Viewport *vp=serverWindow->getPort(sv); 
    412413        vp->render( action ); 
    413414 
     
    436437/*! send image to client 
    437438 */ 
    438 void SortFirstWindow::serverSwap( WindowPtr window, 
     439void SortFirstWindow::serverSwap( Window *window, 
    439440                                  UInt32 ) 
    440441{ 
     
    490491void SortFirstWindow::clientPreSync( void ) 
    491492{ 
    492     SortFirstWindowPtr ptr=SortFirstWindowPtr(this)
     493    SortFirstWindow *ptr=this
    493494    if(getCompose()) 
    494495    { 
    495496        // get window size from client window 
    496         if(getClientWindow() != NullFC
     497        if(getClientWindow() != NULL
    497498        { 
    498499            if(getWidth()  != getClientWindow()->getWidth() || 
     
    574575    if(getCompose()) 
    575576    { 
    576         if(getClientWindow()!=NullFC
     577        if(getClientWindow()!=NULL
    577578        { 
    578579            // receive all viewports 
    579580            for(cv=0;cv<getMFPort()->size();++cv) 
    580581            { 
    581                 ViewportPtr vp=getPort(cv); 
     582                Viewport *vp=getPort(cv); 
    582583 
    583584                // activate the appropriate viewport to receive image