Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void OglGui::ViewSphere::InitSphere (  )  [inline]

Definition at line 83 of file ViewSphere.h.

References centralView, OglGui::OglWindow::mOglWnd, mRadius, NCOL, NROW, oglIm, OglGui::OglWindow::SetBackground(), and SPHERE_TAG.

Referenced by ViewSphere().

00084         {
00085                 int                     i, j;
00086                 OGLVIEW3D       *oglView;
00087 
00088                 for( i=0; i<7; i++ )
00089                 {
00090                         char    buf[100];
00091 
00092                         sprintf(buf, "Im_%d.png", i+1 );
00093                         if( !(oglIm[i] = TryReadPNG( buf )) )
00094                 printf("Reading mock-up image %s failed\n", buf);
00095                 }
00096 
00097                 for( i=0; i<NCOL; i++ )
00098                         for( j=0; j<NROW; j++ )
00099                         {
00100                                 oglView = view3DSys.View3D( mOglWnd, oglIm[(i+j)%7], 0,0,0, 1.96f,1.4f,1 );
00101                 oglSys.ReleaseOglImage(oglIm[(i+j)%7]);
00102                 // next line, instead of previous, would let every 2e viewer stick out 1 unit
00103                                 // oglView = view3DSys.View3D( mOglWnd, oglIm[j%20], 0,0,(j%2)?0.0f:-1.0f,1.9f,1.4f,1 );
00104                                 view3DSys.SetZoom( oglView, 1.76f, 1.2f );
00105                                 view3DSys.SetTags( oglView, FlexViewTags | SPHERE_TAG );
00106                                 view3DSys.SetBgColor( oglView, oglWHITE );
00107                                 // Ork: Next line sets object3D to 0 for ownerdrawing
00108                                 view3DSys.SetObject3D( oglView, 0  );
00109 
00110                                 // Next line sets viewers to different object3D
00111                                 //view3DSys.SetObject3D( oglView, (i+j) % 9  );
00112                         }
00113 
00114                 SetBackground( oglWHITE );
00115 
00116                 // Central Sphere to prevent see-through tiling
00117                 // NOTE: Use of viewer here only for test purposes.
00118                 // Should use a stand-alone sphere rather then a 3D viewer
00119                 centralView = view3DSys.View3D( mOglWnd, oglIm[0], 0,0,-20,
00120                                                                 2 * mRadius - 0.3f, 2 * mRadius - 0.3f,1.0f );
00121                 centralView->drawMode = OGL_FILL;
00122                 centralView->object3D = OGL_SPHERE;
00123                 centralView->drawColor = 0x80c0f0c0;
00124                 view3DSys.SetTags( centralView, visibleTag|selectableTag|sizableTag );
00125 
00126                 oglSys.SetAllowCameraMove( mOglWnd, 1 );
00127                 oglSys.AllowPicking( mOglWnd, 1, 1 );
00128                 oglSys.SetAlwaysDraw( mOglWnd, 1 );
00129         }

Here is the call graph for this function:


Generated on Fri Mar 19 12:10:34 2010 for ImpalaSrc by  doxygen 1.5.1