- Timestamp:
- 02/01/06 19:29:59 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.h
r579 r580 27 27 class Beam; 28 28 class Preprocessor; 29 class ViewCellsTree; 30 class MergeCandidate; 29 31 30 32 struct BspRay; … … 133 135 @returns new view cell based on the merging. 134 136 */ 135 ViewCell *MergeViewCells(ViewCell &front, ViewCell &back) const;137 ViewCellInterior *MergeViewCells(ViewCell &front, ViewCell &back) const; 136 138 137 139 /** Generates view cell of type specified by this manager 138 140 */ 139 virtual ViewCell *GenerateViewCell(Mesh *mesh = NULL) const ;141 virtual ViewCell *GenerateViewCell(Mesh *mesh = NULL) const = 0; 140 142 141 143 /** Adds a new view cell to the list of predefined view cells. … … 206 208 virtual float GetRendercost(ViewCell *viewCell, float objRendercost) const = 0; 207 209 208 /** Returns vector of loaded / generated view cells.210 /** Returns container of loaded / generated view cells. 209 211 */ 210 212 ViewCellContainer &GetViewCells(); … … 311 313 /** Exports view cell geometry. 312 314 */ 313 virtual void ExportV cGeometry(Exporter *exporter, ViewCell *vc) const = 0;315 virtual void ExportViewCellGeometry(Exporter *exporter, ViewCell *vc) const = 0; 314 316 315 317 virtual void FinalizeViewCells(const bool createMesh); … … 325 327 /** Evaluates statistics values on view cells. 326 328 */ 327 void EvaluateRenderStatistics(float &totalRenderCost, 328 float &expectedRenderCost, 329 float &variance); 329 void EvaluateRenderStatistics(float &totalRenderCost, 330 float &expectedRenderCost, 331 float &deviation, 332 float &variance, 333 int &totalPvs, 334 float &avgRenderCost); 335 336 337 /** Returns hierarchy of the view cells. 338 */ 339 ViewCellsTree *GetViewCellsTree(); 340 341 virtual void CollectMergeCandidates(const VssRayContainer &rays, vector<MergeCandidate> &candidates) = 0; 342 330 343 331 344 protected: … … 392 405 /// Loaded view cells 393 406 ViewCellContainer mViewCells; 407 408 ViewCellsTree *mViewCellsTree; 394 409 395 410 /// maximum number of samples taken for construction of the view cells … … 417 432 bool mOnlyValidViewCells; 418 433 434 /// if rays should be used to collect merge candidates 435 bool mUseRaysForMerge; 436 437 419 438 //-- visualization options 420 439 … … 472 491 void CreateMesh(ViewCell *vc); 473 492 474 void ExportVcGeometry(Exporter *exporter, ViewCell *vc) const; 493 void ExportViewCellGeometry(Exporter *exporter, ViewCell *vc) const; 494 495 void CollectMergeCandidates(const VssRayContainer &rays, vector<MergeCandidate> &candidates); 475 496 476 497 protected: … … 529 550 bool ViewCellsConstructed() const; 530 551 552 ViewCell *GenerateViewCell(Mesh *mesh) const; 531 553 532 554 /** Prints out statistics of this approach. … … 540 562 void CreateMesh(ViewCell *vc); 541 563 542 void ExportVcGeometry(Exporter *exporter, ViewCell *vc) const; 564 void ExportViewCellGeometry(Exporter *exporter, ViewCell *vc) const; 565 566 void CollectMergeCandidates(const VssRayContainer &rays, vector<MergeCandidate> &candidates); 543 567 544 568 protected: 545 569 570 /** Collects view cells from a hierarchy. 571 */ 546 572 void CollectViewCells(); 573 547 574 KdNode *GetNodeForPvs(KdLeaf *leaf); 548 575 … … 598 625 void CreateMesh(ViewCell *vc); 599 626 600 void ExportVcGeometry(Exporter *exporter, ViewCell *vc) const; 627 void ExportViewCellGeometry(Exporter *exporter, ViewCell *vc) const; 628 629 void CollectMergeCandidates(const VssRayContainer &rays, vector<MergeCandidate> &candidates); 601 630 602 631 protected: … … 664 693 int CastBeam(Beam &beam); 665 694 666 void ExportV cGeometry(Exporter *exporter, ViewCell *vc) const;695 void ExportViewCellGeometry(Exporter *exporter, ViewCell *vc) const; 667 696 668 697 //float GetVolume(ViewCell *viewCell) const; 669 698 670 699 void Finalize(ViewCell *viewCell, const bool createMesh); 700 701 void CollectMergeCandidates(const VssRayContainer &rays, vector<MergeCandidate> &candidates); 671 702 672 703 protected:
Note: See TracChangeset
for help on using the changeset viewer.