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

void OglGui::ChangingToDemo::ToCircle (  )  [inline, protected]

Definition at line 154 of file ChangingToDemo.h.

References mDuration, mDurExtra, mode, OglGui::ChangingToView::MoveTo(), mRotDurationExtra, OglGui::ChangingToView::RotateTo(), OglGui::sChNrViews, OglGui::sChViews, OglGui::sChXRot, OglGui::sChYRot, and OglGui::sChZRot.

Referenced by SelectMode(), and WindowKeyboardEvent().

00155     {
00156         mode = 3;
00157         for (int j=0; j<sChNrViews; j++)
00158         {
00159             OGLVIEW3D* v3D = sChViews[j]->GetOGLVIEW3D();
00160             view3DSys.SetRotation(v3D,0,0,0);
00161             int duration = mDuration + j*mDurExtra;
00162             float rad = DEG2RAD(j*(360.f/sChNrViews));
00163             if (!(j%12))
00164             {
00165                 rad = DEG2RAD((j/12.)*(360/12.));
00166                 sChViews[j]->MoveTo(1.5*sin(rad), 1.5*cos(rad), -12+j/1000., duration);
00167             }
00168             else
00169                 sChViews[j]->MoveTo(6*sin(rad), 6*cos(rad), -20+j/1000., duration);
00170             sChViews[j]->RotateTo(sChXRot, sChYRot, sChZRot, duration + mRotDurationExtra);
00171         }
00172     }

Here is the call graph for this function:


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