- Timestamp:
- 05/05/08 07:12:19 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/Cluster/Window/SortFirst/OSGSortFirstWindow.cpp
r1194 r1198 129 129 * 130 130 **/ 131 void SortFirstWindow::serverInit(Window PtrserverWindow,132 UInt32 id)131 void SortFirstWindow::serverInit(Window *serverWindow, 132 UInt32 id) 133 133 { 134 134 #if USE_VPORT_SLICES … … 157 157 * todo: enamble frustum culling if error is removed 158 158 **/ 159 void SortFirstWindow::serverRender( Window PtrserverWindow,159 void SortFirstWindow::serverRender( Window *serverWindow, 160 160 UInt32 id, 161 161 DrawActionBase *action ) … … 294 294 #endif 295 295 296 void SortFirstWindow::serverRender( Window PtrserverWindow,296 void SortFirstWindow::serverRender( Window *serverWindow, 297 297 UInt32 id, 298 298 RenderActionBase *action ) … … 300 300 TileCameraDecoratorUnrecPtr deco; 301 301 ViewportUnrecPtr serverPort; 302 Viewport PtrclientPort;302 Viewport *clientPort; 303 303 UInt32 sv,cv,regionStart; 304 304 UInt32 vpWidth; … … 323 323 { 324 324 serverPort = serverWindow->getPort(sv); 325 deco=dynamic_cast<TileCameraDecorator Ptr>(serverPort->getCamera());325 deco=dynamic_cast<TileCameraDecorator *>(serverPort->getCamera()); 326 326 if(serverWindow->getPort(sv)->getType() != 327 327 clientPort->getType()) … … 337 337 else 338 338 { 339 deco=dynamic_cast<TileCameraDecoratorPtr>(serverPort->getCamera()); 339 deco=dynamic_cast<TileCameraDecorator *>( 340 serverPort->getCamera()); 340 341 } 341 342 //serverPort = serverWindow->getPort()[sv]; … … 409 410 for(sv=0;sv<serverWindow->getMFPort()->size();++sv) 410 411 { 411 Viewport Ptrvp=serverWindow->getPort(sv);412 Viewport *vp=serverWindow->getPort(sv); 412 413 vp->render( action ); 413 414 … … 436 437 /*! send image to client 437 438 */ 438 void SortFirstWindow::serverSwap( Window Ptrwindow,439 void SortFirstWindow::serverSwap( Window *window, 439 440 UInt32 ) 440 441 { … … 490 491 void SortFirstWindow::clientPreSync( void ) 491 492 { 492 SortFirstWindow Ptr ptr=SortFirstWindowPtr(this);493 SortFirstWindow *ptr=this; 493 494 if(getCompose()) 494 495 { 495 496 // get window size from client window 496 if(getClientWindow() != N ullFC)497 if(getClientWindow() != NULL) 497 498 { 498 499 if(getWidth() != getClientWindow()->getWidth() || … … 574 575 if(getCompose()) 575 576 { 576 if(getClientWindow()!=N ullFC)577 if(getClientWindow()!=NULL) 577 578 { 578 579 // receive all viewports 579 580 for(cv=0;cv<getMFPort()->size();++cv) 580 581 { 581 Viewport Ptrvp=getPort(cv);582 Viewport *vp=getPort(cv); 582 583 583 584 // activate the appropriate viewport to receive image
