Changeset 1999 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 01/20/07 00:14:25 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r1990 r1999 311 311 // question: rather create view cells resource manager? 312 312 if (!ViewCellsTreeConstructed()) 313 { 313 {cout << "here6" << endl; 314 314 CLEAR_CONTAINER(mViewCells); 315 315 } 316 316 else 317 { 317 {cout << "here7" << endl; 318 318 DEL_PTR(mViewCellsTree); 319 319 } … … 682 682 if (success) 683 683 { 684 //vm->ResetViewCells(); 685 //hack 686 vm->mViewCells.clear(); 687 ViewCellContainer leaves; 688 vm->mViewCellsTree->CollectLeaves(vm->mViewCellsTree->GetRoot(), leaves); 689 690 ViewCellContainer::const_iterator it, it_end = leaves.end(); 691 692 for (it = leaves.begin(); it != it_end; ++ it) 693 { 694 vm->mViewCells.push_back(*it); 695 } 684 if (0) 685 { 686 vm->ResetViewCells(); 687 } 688 else 689 { 690 //hack: should work with reset function 691 ViewCellContainer leaves; 692 693 vm->mViewCells.clear(); 694 vm->mViewCellsTree->CollectLeaves(vm->mViewCellsTree->GetRoot(), leaves); 695 696 ViewCellContainer::const_iterator it, it_end = leaves.end(); 697 698 for (it = leaves.begin(); it != it_end; ++ it) 699 { 700 vm->mViewCells.push_back(*it); 701 } 702 } 703 696 704 vm->mViewCellsFinished = true; 697 705 vm->mMaxPvsSize = (int)objects->size(); … … 2943 2951 ) 2944 2952 { 2945 //cout<<"y";2946 2953 PvsFilterStatistics stats; 2947 2954 … … 6387 6394 ViewCellsManager *vm = 6388 6395 ViewCellsManager::LoadViewCells(filename, objects, finalizeViewCells, bconverter); 6389 #if 0 6390 // insert scene objects in tree 6391 mOspTree->InsertObjects(mOspTree->GetRoot(), *objects); 6392 #endif 6396 6393 6397 return vm; 6394 6398 }
Note: See TracChangeset
for help on using the changeset viewer.