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/ViewCellsParser.cpp

    r1928 r1999  
    883883 
    884884                Debug << "exchanging boxes" << endl; 
    885 int i = 0; 
     885                int i = 0; 
    886886                // remove view cells and exchange them with the  
    887887                // view cells specialized for the current hierarchy node type 
     
    910910                        } 
    911911 
     912                        // delete old view cell 
    912913                        DEL_PTR(vc); 
     914 
    913915//                      (*vit).second = bspVc; 
    914916                        (*vit) = bspVc; 
     
    924926                mVspTree->mBoundingBox = mViewSpaceBox; 
    925927 
    926 //              ViewCellsMap::iterator vit, vit_end = mViewCells.end(); 
    927 ViewCellContainer::iterator vit, vit_end = mViewCells.end(); 
     928                // ViewCellsMap::iterator vit, vit_end = mViewCells.end(); 
     929                ViewCellContainer::iterator vit, vit_end = mViewCells.end(); 
     930 
    928931                // reset view cells using the current node type 
    929932                for (vit = mViewCells.begin(); vit != vit_end; ++ vit) 
    930933                { 
    931934                        //ViewCell *vc = (*vit).second; 
    932         ViewCell *vc = (*vit); 
     935                        ViewCell *vc = (*vit); 
     936                         
     937                        if (!vc->IsLeaf()) // exchange only leaves 
     938                                continue; 
     939 
    933940                        VspViewCell *vspVc = new VspViewCell(); 
     941 
    934942                        vspVc->SetPvs(vc->GetPvs()); 
    935943                        vspVc->SetId(vc->GetId()); 
    936  
    937                         if (!vc->IsLeaf()) // exchange only leaves 
    938                                 continue; 
    939944 
    940945                        if (vc->IsRoot()) 
     
    947952                        } 
    948953                         
    949                         //DEL_PTR(vc); 
     954                        // exchange view cell with new one 
     955                        DEL_PTR(vc); 
     956 
    950957                        //(*vit).second = vspVc; 
    951958                        (*vit) = vspVc; 
Note: See TracChangeset for help on using the changeset viewer.