Changeset 584 for trunk/VUT/GtpVisibilityPreprocessor/src/ViewCell.h
- Timestamp:
- 02/03/06 13:03:35 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCell.h
r582 r584 285 285 int RefineViewCells(const VssRayContainer &rays, const ObjectContainer &objects); 286 286 287 /** Compresses the pvs of the view cells. 287 288 289 /** Returns optimal set of view cells for a given number of view cells. 290 */ 291 void CollectBestViewCellSet(ViewCellContainer &viewCells, const int numViewCells); 292 293 /** Root of view cells tree. 294 */ 295 ViewCell *GetRoot() const; 296 297 /** Returns pvs of view cell. 298 @note pvs is returned per reference if tree is not compressed, 299 per copy else. 300 */ 301 void GetPvs(ViewCell *vc, ObjectPvs &pvs) const; 302 303 /** Returns pvs size of view cell. 304 */ 305 int GetPvsSize(ViewCell *vc) const; 306 307 /** Returns actual number of object in this pvs and the children. 308 */ 309 int GetNumPvsEntries(ViewCell *vc) const; 310 311 /** Returns memory cost of this view cell. 312 */ 313 float GetMemoryCost(ViewCell *vc) const; 314 315 /** Compresses the pvs of the view cells from the root. 288 316 */ 289 317 void CompressViewCellsPvs(); 290 318 291 /** Returns optimal set of view cells for a given number of view cells. 292 */ 293 void CollectBestViewCellSet(ViewCellContainer &viewCells, const int numViewCells); 294 295 /** Root of view cells tree. 296 */ 297 ViewCell *GetRoot(); 319 /** If view cells in this tree have compressed pvs. 320 */ 321 bool IsCompressed() const; 298 322 299 323 protected: … … 365 389 int UpdateActiveViewCells(ViewCellContainer &viewCells); 366 390 367 void ComputeCommonPvs(ViewCellInterior *interior); 368 391 void PropagateUpVisibility(ViewCellInterior *interior); 392 393 void CompressViewCellsPvs(ViewCell *root); 369 394 370 395 /** Returns memory usage of view cells. … … 373 398 374 399 375 400 /// if the view cell tree hold compressed pvs 401 bool mIsCompressed; 376 402 377 403 ViewCellsManager *mViewCellsManager;
Note: See TracChangeset
for help on using the changeset viewer.