Ignore:
Timestamp:
01/20/07 00:14:25 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r1990 r1999  
    311311        // question: rather create view cells resource manager? 
    312312        if (!ViewCellsTreeConstructed()) 
    313         { 
     313        {cout << "here6" << endl; 
    314314                CLEAR_CONTAINER(mViewCells); 
    315315        } 
    316316        else 
    317         { 
     317        {cout << "here7" << endl; 
    318318                DEL_PTR(mViewCellsTree); 
    319319        } 
     
    682682        if (success) 
    683683        { 
    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 
    696704                vm->mViewCellsFinished = true; 
    697705                vm->mMaxPvsSize = (int)objects->size(); 
     
    29432951                                                           ) 
    29442952{ 
    2945   //cout<<"y"; 
    29462953  PvsFilterStatistics stats; 
    29472954 
     
    63876394        ViewCellsManager *vm =  
    63886395                ViewCellsManager::LoadViewCells(filename, objects, finalizeViewCells, bconverter); 
    6389 #if 0 
    6390         // insert scene objects in tree 
    6391         mOspTree->InsertObjects(mOspTree->GetRoot(), *objects); 
    6392 #endif 
     6396 
    63936397        return vm; 
    63946398} 
Note: See TracChangeset for help on using the changeset viewer.