Definition at line 345 of file CxCheckBoxDrum.h. References CheckBox3D::Draw(), DrumInfoBox, mCbWidth, mCheckBoxes, mDrumRotDx, mDrumRotX, mDrumX, mDrumY, mDrumZ, mKeyInfo, mNrColumns, mNrRows, mPicking, mRadius, mTxt3D, and txtFontBase. 00346 { 00347 CheckBox3D* checkBox; 00348 OGC myOGC; 00349 int i, j; 00350 int angle, totAngle; 00351 00352 OGCSave( &myOGC ); 00353 view3DSys.View3DCameraTransform( mOglWnd ); 00354 glTranslatef( mDrumX, mDrumY, mDrumZ ); 00355 glRotatef( mDrumRotX, 1.0f, 0.0f, 0.0f ); // Rotate X 00356 glNormal3f(0.f,0.f,1.f); 00357 for( i=0; i<mNrColumns; i++) 00358 { 00359 glPushMatrix(); 00360 glTranslatef( (-(mNrColumns/2) + i) * (mCbWidth+0.2f) , 0.0f, 0.0f ); 00361 00362 for( j=0; j<mNrRows; j++) 00363 { 00364 angle = j * 360/mNrRows; 00365 totAngle = ((int) mDrumRotX + angle) % 360; 00366 totAngle = abs( totAngle ); 00367 if( totAngle > 70 && totAngle < 290 ) 00368 continue; 00369 00370 glPushMatrix(); 00371 glRotatef( (float) angle, 1.0f, 0.0f, 0.0f ); 00372 glTranslatef( 0.0f, 0.0f, mRadius); 00373 00374 if( checkBox = mCheckBoxes[j*mNrColumns + i] ) 00375 checkBox->Draw(mTxt3D ? txtFontBase : 0, 00376 totAngle < 60 || totAngle > 300, mPicking ); 00377 glPopMatrix(); 00378 } 00379 glPopMatrix(); 00380 } 00381 mDrumRotX += mDrumRotDx; 00382 00383 if( !mPicking && mKeyInfo ){ 00384 oglSys.InfoBoxCenter( mOglWnd, DrumInfoBox ); 00385 oglSys.InfoBoxDraw( mOglWnd, DrumInfoBox ); 00386 } 00387 00388 OGCRestore( &myOGC ); 00389 }
Here is the call graph for this function:
|