Changeset 1551 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp
- Timestamp:
- 10/02/06 19:07:38 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp
r1545 r1551 130 130 131 131 132 ViewCell::~ViewCell() 133 { 134 } 135 136 132 137 const ObjectPvs &ViewCell::GetPvs() const 133 138 { … … 250 255 { 251 256 const bool result = mPvs.AddSample(sample, pdf, contribution); 252 253 257 mPvsSizeValid = false; // have to recompute pvs size 254 258 … … 328 332 329 333 334 330 335 /************************************************************************/ 331 336 /* class ViewCellsStatistics implementation */ 332 337 /************************************************************************/ 333 334 335 338 336 339 … … 2227 2230 tstack.pop(); 2228 2231 2229 vc->SetId(currentId ++); 2232 if (vc->GetId() != -1) // out of bounds 2233 vc->SetId(currentId ++); 2230 2234 2231 2235 if (!vc->IsLeaf()) … … 2266 2270 stream << "pvs=\""; 2267 2271 2268 //-- export pvs 2272 //-- export pvs, i.e., the ids of the objects in the pvs 2269 2273 if (exportPvs) 2270 2274 { 2271 2275 ExportPvs(viewCell, stream); 2272 2276 } 2273 2274 2277 stream << "\" />" << endl; 2275 2278 } … … 2283 2286 stream << "pvs=\""; 2284 2287 2285 // --NOTE: do not export pvss for interior view cells because2288 // NOTE: do not export pvss for interior view cells because 2286 2289 // they can be completely reconstructed from the leaf pvss 2287 if (0) 2288 ExportPvs(viewCell, stream); 2290 // on the other hand: we could store a tag with the compression scheme, 2291 // then some scheme were pvs is in the interiors could be used 2292 if (0) ExportPvs(viewCell, stream); 2289 2293 2290 2294 stream << "\" >" << endl; … … 2327 2331 } 2328 2332 } 2333 } 2334 2335 2336 void ViewCellsTree::SetViewCellsManager(ViewCellsManager *vcm) 2337 { 2338 mViewCellsManager = vcm; 2329 2339 } 2330 2340 … … 2416 2426 2417 2427 2418 2419 2420 2428 /************************************************************************/ 2421 2429 /* MergeStatistics implementation */
Note: See TracChangeset
for help on using the changeset viewer.