Definition at line 204 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(). 00205 { 00206 int mode = 1; 00207 for (int j=0; j<sChNrViews; j++) 00208 { 00209 OGLVIEW3D* v3D = sChViews[j]->GetOGLVIEW3D(); 00210 view3DSys.SetRotation(v3D,0,0,0); 00211 int duration = mDuration + j*mDurExtra; 00212 float x, y, rad; 00213 if (j<40) 00214 { 00215 rad = DEG2RAD(j*(360.f/39)); 00216 x = -5 + 2.5 * sin(rad); 00217 y = 2.5 * cos(rad); 00218 } 00219 else if (j<70) 00220 { 00221 rad = DEG2RAD((j-40)*(360/39)); 00222 x = 1.2 - 2.5 * sin(rad); 00223 y = 2.5 * cos(rad); 00224 } 00225 else if (j<75) 00226 { 00227 x = 3.7 - (j-70)*.4; 00228 y = 0; 00229 } 00230 else if (j<86) 00231 { 00232 x = 5; 00233 y = 2.5 - (j-75)*.5; 00234 } 00235 else if (j<91) 00236 { 00237 x = 5.2 + (j-86)*.5; 00238 } 00239 else 00240 { 00241 rad = DEG2RAD((j-91)*(360.f/53)); 00242 x = 9 * sin(rad); 00243 y = 9 * cos(rad); 00244 } 00245 sChViews[j]->MoveTo(x, y, -24 - j*.001, duration); 00246 sChViews[j]->RotateTo(sChXRot, sChYRot, sChZRot, duration + mRotDurationExtra); 00247 } 00248 }
Here is the call graph for this function: ![]()
|