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