Changeset 2638 for GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface
- Timestamp:
- 01/24/08 11:41:38 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2636 r2638 600 600 glStencilOp(GL_KEEP, GL_KEEP, GL_INCR); 601 601 602 mUseForcedColors = true; 603 604 glColor3f(0.0f, 0.8f, 0.2f); 602 //mUseForcedColors = true; 603 604 // glColor3f(0.0f, 0.8f, 0.2f); 605 // glColor3f(0.5f, 0.5f, 0.5f); 606 607 glColor3f(0.6f, 0.6f, 0.6f); 605 608 606 609 // Render PVS … … 617 620 618 621 SetupCamera(); 622 623 mUseForcedColors = true; 619 624 620 625 glColor3f(1.0f, 0.0f, 0.0f); … … 705 710 case 0: 706 711 { 712 if (e->modifiers() & Qt::ShiftModifier) { 713 const Vector3 transl(0, diffy, 0); 714 tm = TranslationMatrix(transl); 715 716 } else { 707 717 const Vector3 transl(diffx, 0, diffy); 708 709 718 tm = TranslationMatrix(transl); 719 } 710 720 } 711 721 break; … … 720 730 case 2: 721 731 { 722 tm = RotationXMatrix(diffx) * RotationYMatrix(diffy); 732 // tm = RotationXMatrix(diffx) * RotationYMatrix(diffy); 733 tm = RotationYMatrix(diffx); 723 734 } 724 735 break; … … 791 802 RenderInfo(); 792 803 mFrame ++; 804 // cout<<"vp="<<mViewPoint<<" vd="<<mViewDirection<<endl; 793 805 } 794 806 … … 1094 1106 void QtGlRendererWidget::LoadObject() 1095 1107 { 1096 string filename("../data/teapot.bn"); 1108 // string filename("../data/teapot.bn"); 1109 // string filename("../data/teapot.bn"); 1110 string filename("../data/cube.obj"); 1097 1111 1098 1112 cout << "Loading model << " << filename << endl; … … 1254 1268 renderText(20, 40, s); 1255 1269 #endif 1256 1270 #if 0 1257 1271 QFont font40; font40.setPointSize(30); 1258 1272 s.sprintf("PVS: %04d", mPvsSize); 1259 1273 renderText(20, 40, s, font40); 1260 1274 #endif 1275 1261 1276 /* QFont font40; font40.setPointSize(30); 1262 1277 s.sprintf("New triangles: %04d", 100);
Note: See TracChangeset
for help on using the changeset viewer.