Definition at line 136 of file ChangingToDemo.h. References OglGui::View::GetOGLVIEW3D(), mDuration, mDurExtra, mode, OglGui::ChangingToView::MoveTo(), mRotDurationExtra, OglGui::ChangingToView::RotateTo(), OglGui::sChNrRows, OglGui::sChNrViews, OglGui::sChViews, OglGui::sChXRot, OglGui::sChYRot, and OglGui::sChZRot. Referenced by SelectMode(), and WindowKeyboardEvent(). 00137 { 00138 mode = 5; 00139 for (int j=0; j<sChNrViews; j++) 00140 { 00141 int row = j / sChNrRows; 00142 int col = j % sChNrRows; 00143 int s = -sChNrRows/2; 00144 OGLVIEW3D* v3D = sChViews[j]->GetOGLVIEW3D(); 00145 int duration = mDuration + j*mDurExtra; 00146 view3DSys.SetRotation(v3D,0,0,0); 00147 float offX = row + (rand()%100)/50.; 00148 float offY = col + (rand()%100)/50.; 00149 sChViews[j]->MoveTo(s+offX, s+offY, -20+j/1000., duration); 00150 sChViews[j]->RotateTo(sChXRot, sChYRot, sChZRot, duration + mRotDurationExtra); 00151 } 00152 }
Here is the call graph for this function: ![]()
|