Ignore:
Timestamp:
02/04/06 21:36:40 (18 years ago)
Author:
mattausch
Message:

implemented some code for merge history loading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/ViewCell.cpp

    r589 r590  
    107107mValid(true), 
    108108mParent(NULL), 
    109 mTimeStamp(0) 
     109mTimeStamp(0), 
     110mIsActive(false) 
    110111{ 
    111112} 
     
    118119mValid(true), 
    119120mParent(NULL), 
    120 mTimeStamp(0) 
     121mTimeStamp(0), 
     122mIsActive(false) 
    121123{ 
    122124} 
     
    13101312                if (vc->IsLeaf() || ((viewCells.size() + tqueue.size()) >= numViewCells)) 
    13111313                { 
     1314                        // todo: should be done with a function taking the active flag and some  
     1315                        // time stamp so I don't have to reset view cells, this also means that  
     1316                        // the leaf view cells can be set active fist 
     1317                        vc->mIsActive = true;  
    13121318                        viewCells.push_back(vc); 
    13131319                } 
     
    15021508int ViewCellsTree::GetNumPvsEntries(ViewCell *vc) const 
    15031509{ 
    1504         int pvsSize = vc->GetPvs().GetSize(); 
     1510        int pvsSize = 0; 
     1511        // only count leaves for uncompressed method for fairness 
     1512        if (mIsCompressed || vc->IsLeaf()) 
     1513                pvsSize = vc->GetPvs().GetSize(); 
    15051514 
    15061515        if (!vc->IsLeaf()) 
     
    15231532{ 
    15241533        return mIsCompressed; 
     1534} 
     1535 
     1536 
     1537ViewCell *ViewCellsTree::GetActiveViewCell(ViewCell *vc) const 
     1538{ 
     1539        while (vc->GetParent() && !vc->mIsActive) 
     1540        { 
     1541                vc = vc->GetParent(); 
     1542        } 
     1543 
     1544        return vc; 
    15251545} 
    15261546 
Note: See TracChangeset for help on using the changeset viewer.