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

virtual void OglGui::MyChangingToViewListener::OnChangingToViewDestiny ( ChangingToView src,
void *  userData 
) [inline, virtual]

Reimplemented from OglGui::ChangingToViewListener.

Definition at line 16 of file ChangingToDemo.h.

References mFollowing, mNrFinished, OglGui::ChangingToView::MoveTo(), OglGui::ChangingToView::RotateTo(), OglGui::sChNrViews, OglGui::sChViews, OglGui::sChXRot, OglGui::sChYRot, and OglGui::sChZRot.

00017     {
00018         int id = (int)(long long) userData;
00019         mNrFinished++;
00020         if (mNrFinished >= sChNrViews && mFollowing)
00021         {
00022             mNrFinished = 0;
00023             for (int i=0; i<sChNrViews; i++)
00024             {
00025                 float x, y, z;
00026                 sChViews[(i+1)%sChNrViews]->GetDimensions3D(&x, &y, &z, 0, 0, 0);
00027                 sChViews[i]->MoveTo(x,y,z,500);
00028                 sChViews[i]->RotateTo(sChXRot, sChYRot, sChZRot, 800);
00029             }
00030         }
00031     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:26:12 2011 for ImpalaSrc by  doxygen 1.5.1