Definition at line 435 of file CxCheckBoxDrum.h. References AddCheckBox(), mCbHeight, mCbWidth, mCheckBoxes, mDrumRotDx, mDrumRotX, mDrumX, mDrumY, mDrumZ, mNrColumns, mNrRows, mPicking, mRadius, mTxt3D, mWheelStep, CheckBox3D::SetBoxBorderType(), and CheckBox3D::SetFrameBorderType(). Referenced by CxCheckBoxDrum(). 00436 { 00437 CheckBox3D *cB; 00438 int i, j; 00439 char buf[100]; 00440 00441 SetBackground( 0xfff0c0a0 ); 00442 oglSys.SetAllowCameraMove( mOglWnd, 1 ); 00443 00444 mRadius = 5.0f; 00445 mCbWidth = 3.8f; 00446 mCbHeight = 1.0; 00447 mNrRows = nRow; 00448 mNrColumns = nColumn; 00449 00450 mCheckBoxes = (CheckBox3D ** ) calloc( mNrRows * mNrColumns, sizeof( CheckBox3D * ) ); 00451 00452 for ( i=0 ; i<nColumn ; i++ ) 00453 for ( j=0 ; j<nRow ; j++ ) 00454 { 00455 if (i==0) 00456 sprintf( buf, "Category %d", j ); 00457 else 00458 sprintf( buf, "Text %d, %d", i, j ); 00459 if( !(j%3) && i==0) 00460 continue; 00461 cB = AddCheckBox( buf, i, j, false ); 00462 if (i==0) 00463 { 00464 cB->SetFrameBorderType(BEV_RAISED, BEV_RAISED); 00465 cB->SetBoxBorderType(BEV_SUNKEN, BEV_RAISED); 00466 } 00467 } 00468 00469 mDrumX = mDrumY = 0; 00470 mDrumZ=-19; 00471 mDrumRotX = mDrumRotDx = 0; 00472 mPicking = false; 00473 mTxt3D = true; 00474 mWheelStep = 4; 00475 }
Here is the call graph for this function:
|