- Timestamp:
- 05/27/08 10:57:05 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2711 r2715 574 574 DynamicObjectsContainer::const_iterator dit, dit_end = mDynamicPvsObjects.end(); 575 575 576 //cout << "dynamic objects in pvs " << mDynamicPvsObjects.size() << endl;; 577 576 578 for (dit = mDynamicPvsObjects.begin(); dit != dit_end; ++ dit) 577 579 { 578 580 _RenderDynamicObject(*dit); 579 581 } 582 583 glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); 580 584 581 585 // show placed dynamic objects as wireframe 582 586 Preprocessor *p = mViewCellsManager->GetPreprocessor(); 583 dit , dit_end = p->mDynamicObjects.end();587 dit_end = p->mDynamicObjects.end(); 584 588 585 589 int i = 0; … … 591 595 glColor3f(0, 1, 0); 592 596 593 glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);594 597 _RenderDynamicObject(*dit); 595 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); 596 } 598 } 599 600 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); 597 601 } 598 602 … … 2002 2006 2003 2007 QVBoxLayout *vbox2 = new QVBoxLayout; 2004 QGroupBox *groupBox = new QGroupBox(" Trafo types");2008 QGroupBox *groupBox = new QGroupBox("Dynamic Obojects"); 2005 2009 2006 2010 vbox2->addWidget(rb1); … … 2021 2025 connect(button, SIGNAL(clicked()), SIGNAL(DeleteDynamicObject())); 2022 2026 2027 button = new QPushButton("Next object", groupBox); 2028 vbox2->layout()->addWidget(button); 2029 connect(button, SIGNAL(clicked()), SIGNAL(NextObject())); 2030 2023 2031 groupBox->setLayout(vbox2); 2024 2032 … … 2398 2406 #endif 2399 2407 2400 2401 2402 2403 2408 #if REMOVE_TEMPORARY 2404 2409 … … 2438 2443 connect(button, SIGNAL(clicked()), SIGNAL(ComputeGVS())); 2439 2444 #endif 2440 2441 #if 1 2445 2442 2446 button = new QPushButton("Replay view points", vbox); 2443 2447 vbox->layout()->addWidget(button); 2444 2448 connect(button, SIGNAL(clicked()), SIGNAL(ReplayViewPoints())); 2445 2449 2446 #endif2447 2448 button = new QPushButton("Next object", vbox);2449 vbox->layout()->addWidget(button);2450 connect(button, SIGNAL(clicked()), SIGNAL(NextObject()));2451 //connect(button, SIGNAL(clicked()), SIGNAL(LoadObject()));2452 2450 2453 2451 /*cb = new QCheckBox("Stats", vbox); … … 2631 2629 if (mUseRandomColorPerPvsObject) 2632 2630 { 2633 KdIntersectable *kdint = static_cast<KdIntersectable *>(obj); 2634 2635 if (kdint->mGenericIdx == -1) 2631 if (obj->Type() == Intersectable::KD_INTERSECTABLE) 2636 2632 { 2637 kdint->mGenericIdx = (int)mColors.size(); 2638 mColors.push_back(RandomColor(0, 1)); 2633 KdIntersectable *kdint = static_cast<KdIntersectable *>(obj); 2634 2635 if (kdint->mGenericIdx == -1) 2636 { 2637 kdint->mGenericIdx = (int)mColors.size(); 2638 mColors.push_back(RandomColor(0, 1)); 2639 } 2640 color = mColors[kdint->mGenericIdx]; 2639 2641 } 2640 color = mColors[kdint->mGenericIdx];2641 2642 } 2642 2643 else
Note: See TracChangeset
for help on using the changeset viewer.