Changeset 2706 for GTP/trunk/Lib/Vis/Preprocessing/src
- Timestamp:
- 05/24/08 15:48:02 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
r2702 r2706 544 544 glVertex3f(t->mVertices[1].x, t->mVertices[1].y, t->mVertices[1].z); 545 545 glVertex3f(t->mVertices[2].x, t->mVertices[2].y, t->mVertices[2].z); 546 547 546 } 548 547 … … 591 590 592 591 Preprocessor *p = mViewCellsManager->GetPreprocessor(); 592 593 593 // handle dynamic objects 594 594 DynamicObjectsContainer::const_iterator dit, dit_end = p->mDynamicObjects.end(); -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2705 r2706 556 556 glDrawElements(GL_TRIANGLES, mIndexBufferSize, GL_UNSIGNED_INT, mIndices); 557 557 558 // handle dynamic objects 558 // handle dynamic objects in pvss 559 559 DynamicObjectsContainer::const_iterator dit, dit_end = mDynamicPvsObjects.end(); 560 560 … … 564 564 } 565 565 566 // handle dynamic objects566 // show placed dynamic objects as wireframe 567 567 Preprocessor *p = mViewCellsManager->GetPreprocessor(); 568 568 dit, dit_end = p->mDynamicObjects.end(); … … 570 570 for (dit = p->mDynamicObjects.begin(); dit != dit_end; ++ dit) 571 571 { 572 glColor3f(0, 1, 0); 573 glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); 572 574 _RenderDynamicObject(*dit); 575 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); 573 576 } 574 577 … … 2712 2715 glPopMatrix(); 2713 2716 2714 //updateGL();2715 2716 2717 int hits; 2717 2718 // finally release the rendering context again -
GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
r2699 r2706 61 61 static string GetViewPointsListName(const string &filename) 62 62 { 63 string viewCellPointsFile;64 65 63 char buff[200]; 66 64 Environment::GetSingleton()->GetStringValue("ViewCells.randomViewPointsList", buff); 67 68 string vpList(buff); 69 70 if (vpList == "") 65 string viewCellPointsFile = buff; 66 67 if (viewCellPointsFile == "") 71 68 { 72 69 // if not specified, take file that has same prefix as scene file … … 78 75 viewCellPointsFile = ReplaceSuffix(filename, ".x3d", ".vc"); 79 76 } 80 else81 {82 viewCellPointsFile = vpList;83 }84 77 85 78 return viewCellPointsFile; … … 234 227 235 228 236 237 229 // export objects as obj 238 230 if (preprocessor->mExportObj) … … 245 237 else 246 238 { 247 248 239 const string objname = GetInternFilename(filename, ".obj"); 249 240 … … 281 272 cout << "successfully loaded " << viewCellPointsFile << endl; 282 273 else 283 cerr << "error: file <<" << viewCellPointsFile << " not found" << endl;274 cerr << "error: file " << viewCellPointsFile << " not found" << endl; 284 275 } 285 276
Note: See TracChangeset
for help on using the changeset viewer.