- Timestamp:
- 02/09/06 01:18:31 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.h
r607 r609 213 213 /** Returns render cost of a single view cell given the render cost of an object. 214 214 */ 215 virtual float GetRendercost(ViewCell *viewCell, float objRendercost) const;215 float GetRendercost(ViewCell *viewCell, float objRendercost) const; 216 216 217 217 /** Returns container of loaded / generated view cells. … … 293 293 int maxPvsSize) const; 294 294 295 /** set valid viewcells in the range of pvs. sorts the viewcells 295 296 /** set valid viewcells in the range of pvs. sorts the viewcells 296 297 according to the pvs and then pickups those in the ranges */ 297 298 void 299 SetValidityPercentage( 300 const float minValid, 301 const float maxValid 302 ); 303 304 int 305 CountValidViewcells() const; 298 299 300 void SetValidityPercentage(const float minValid, const float maxValid); 301 302 int CountValidViewcells() const; 306 303 307 304 /** Returns maximal allowed pvs size. … … 352 349 vector<MergeCandidate> &candidates) = 0; 353 350 354 355 void CollectViewCells(const int n) 356 { 357 mNumActiveViewCells = n; 358 mViewCells.clear(); 359 CollectViewCells(); 360 } 361 362 bool EqualToSpatialNode(ViewCell *viewCell) { return false;} // implemented in subclasses 363 364 365 351 352 353 void CollectViewCells(const int n) { 354 mNumActiveViewCells = n; 355 mViewCells.clear(); 356 CollectViewCells(); 357 } 358 359 360 virtual bool EqualToSpatialNode(ViewCell *viewCell) const { return false;} 366 361 protected: 367 362 368 363 369 364 /** … … 606 601 607 602 float GetProbability(ViewCell *viewCell); 608 603 609 604 610 605 void CreateMesh(ViewCell *vc); … … 672 667 673 668 float GetProbability(ViewCell *viewCell); 674 669 675 670 676 671 void CreateMesh(ViewCell *vc); … … 732 727 float GetProbability(ViewCell *viewCell); 733 728 734 735 729 ViewCell *GetViewCell(const Vector3 &point) const; 736 730 … … 756 750 void CollectMergeCandidates(const VssRayContainer &rays, vector<MergeCandidate> &candidates); 757 751 758 bool EqualToSpatialNode(ViewCell *viewCell) ;752 bool EqualToSpatialNode(ViewCell *viewCell) const; 759 753 760 754 protected: 761 755 762 bool EqualToSpatialNode(ViewCell *viewCell, BspNode **node); 763 756 BspNode *GetSpatialNode(ViewCell *viewCell) const; 764 757 /** HACK 765 758 */
Note: See TracChangeset
for help on using the changeset viewer.