Hello Jie Liu,

Jie Liu wrote:
> for( int i = 0; i < g_ndivy; i++ )
>       {
>               for( int j = 0; j < g_ndivx; j++ )
>               {
>                       int idx = i * g_ndivx + j;
>                       float l = 1./g_ndivx*j;
>                       float b = 1./g_ndivy*i;
>                       float r = 1./g_ndivx*(j+1);
>                       float t = 1./g_ndivy*(i+1);
> 

beginEditCP(g_pptrViewport[idx]);

>                       g_pptrViewport[idx] = Viewport::create();
>                       
> g_pptrViewport[idx]->setBackground(ptrViewport->getBackground());
>                       g_pptrViewport[idx]->setRoot(ptrViewport->getRoot());
>                       g_pptrViewport[idx]->setSize(0, 0, 1, 1);//(l, b, r, t);

endEditCP(g_pptrViewport[idx]);

> 
>                       float dx = 0;//(r-l)*0.1;
>                       float dy = 0;//(t-b)*0.1;

beginEditCP(g_pptrCamDeco[idx]);

>                       g_pptrCamDeco[idx] = TileCameraDecorator::create();
>                       g_pptrCamDeco[idx]->setDecoratee(ptrCam);
>                       g_pptrCamDeco[idx]->setSize(0, 0, 1, 1);//(l+dx, b+dy, 
> r-dx, t-dy);
> 
>                       g_pptrCamDeco[idx]->setFullSize(800, 800);      // ??? 
> what size, seems the ratio

endEditCP(g_pptrCamDeco[idx]);

> 

beginEditCP(g_pptrViewport[idx]);

>                       g_pptrViewport[idx]->setCamera(g_pptrCamDeco[idx]);

endEditCP(g_pptrViewport[idx]);


>               }
>       }

your viewports where not updated (specifically the size was left at 0, 
0) on the remote side because without begin/endEditCP the fields are not 
marked dirty.

        Cheers,
                Carsten



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to