Changeset 590 for trunk/VUT/GtpVisibilityPreprocessor/src/ViewCell.cpp
- Timestamp:
- 02/04/06 21:36:40 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCell.cpp
r589 r590 107 107 mValid(true), 108 108 mParent(NULL), 109 mTimeStamp(0) 109 mTimeStamp(0), 110 mIsActive(false) 110 111 { 111 112 } … … 118 119 mValid(true), 119 120 mParent(NULL), 120 mTimeStamp(0) 121 mTimeStamp(0), 122 mIsActive(false) 121 123 { 122 124 } … … 1310 1312 if (vc->IsLeaf() || ((viewCells.size() + tqueue.size()) >= numViewCells)) 1311 1313 { 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; 1312 1318 viewCells.push_back(vc); 1313 1319 } … … 1502 1508 int ViewCellsTree::GetNumPvsEntries(ViewCell *vc) const 1503 1509 { 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(); 1505 1514 1506 1515 if (!vc->IsLeaf()) … … 1523 1532 { 1524 1533 return mIsCompressed; 1534 } 1535 1536 1537 ViewCell *ViewCellsTree::GetActiveViewCell(ViewCell *vc) const 1538 { 1539 while (vc->GetParent() && !vc->mIsActive) 1540 { 1541 vc = vc->GetParent(); 1542 } 1543 1544 return vc; 1525 1545 } 1526 1546
Note: See TracChangeset
for help on using the changeset viewer.