- Timestamp:
- 01/25/06 01:44:46 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.h
r573 r574 47 47 enum {BSP, KD, VSP_KD, VSP_BSP}; 48 48 49 /** Constructor taking the maximal number of samples used for construction 50 */ 51 ViewCellsManager(const int constructionSamples); 49 /** Constructor taking the initial and construction samples. 50 @param initialSamples the maximal number of samples used for creating the hierarchy 51 of view cells 52 @param constructionSamples the maximal number of samples used for construction 53 */ 54 ViewCellsManager(const int initialSamples, const int constructionSamples); 52 55 53 56 ViewCellsManager(); … … 62 65 /** Constructs view cell container with a given number of samples. 63 66 */ 64 virtual int Construct (const ObjectContainer &objects,67 virtual int ConstructSubdivision(const ObjectContainer &objects, 65 68 const VssRayContainer &rays) = 0; 66 69 … … 70 73 adding the contribution 71 74 @param addRays true if rays should be added to the PVSs of the viewcells they 72 intersect */ 75 intersect 76 @param storeViewCells true if view cells should be stored in the ray 77 */ 73 78 float ComputeSampleContributions(const VssRayContainer &rays, 74 const bool addContributions = true); 79 const bool addContributions, 80 const bool storeViewCells); 75 81 76 82 /** Add sample contributions to the viewcells they intersect */ … … 85 91 @returns number of sample contributions 86 92 */ 87 virtual float ComputeSampleContributions(VssRay &ray, const bool addRays = true);93 virtual float ComputeSampleContributions(VssRay &ray, const bool addRays, const bool storeViewCells); 88 94 89 95 virtual void AddSampleContributions(VssRay &ray); … … 147 153 void SetVisualizationSamples(const int visSamples); 148 154 155 /** Sets maximal number of samples used for the construction of the view cells. 156 */ 157 void SetConstructionSamples(const int constructionSamples); 158 149 159 /** Sets maximal number of samples used for the visualization of the view cells. 150 160 */ 151 void Set ConstructionSamples(const int constructionSamples);161 void SetInitialSamples(const int initialSamples); 152 162 153 163 /** Sets maximal number of samples used for the post processing of the view cells. … … 306 316 protected: 307 317 308 int CastPassSamples( int samplesPerPass,309 int sampleType,310 VssRayContainer *outRays) const;318 int CastPassSamples(const int samplesPerPass, 319 const int sampleType, 320 VssRayContainer &vssRays) const; 311 321 312 322 void ParseEnvironment(); … … 367 377 /// maximum number of samples taken for construction of the view cells 368 378 int mConstructionSamples; 379 int mSamplesPerPass; 380 int mInitialSamples; 369 381 int mPostProcessSamples; 370 382 int mVisualizationSamples; … … 409 421 used to construct the bsp tree. 410 422 */ 411 BspViewCellsManager(BspTree *tree , int constructionSamples);423 BspViewCellsManager(BspTree *tree); 412 424 413 425 ~BspViewCellsManager(); 414 426 415 int Construct (const ObjectContainer &objects,427 int ConstructSubdivision(const ObjectContainer &objects, 416 428 const VssRayContainer &rays); 417 429 … … 482 494 KdViewCellsManager(KdTree *tree); 483 495 484 int Construct (const ObjectContainer &objects,496 int ConstructSubdivision(const ObjectContainer &objects, 485 497 const VssRayContainer &rays); 486 498 … … 536 548 public: 537 549 538 VspKdViewCellsManager(VspKdTree *vspKdTree , int constructionSamples);539 540 int Construct (const ObjectContainer &objects,550 VspKdViewCellsManager(VspKdTree *vspKdTree); 551 552 int ConstructSubdivision(const ObjectContainer &objects, 541 553 const VssRayContainer &rays); 542 554 … … 595 607 public: 596 608 597 VspBspViewCellsManager(VspBspTree *tree , int constructionSamples);609 VspBspViewCellsManager(VspBspTree *tree); 598 610 ~VspBspViewCellsManager(); 599 611 600 int Construct (const ObjectContainer &objects,612 int ConstructSubdivision(const ObjectContainer &objects, 601 613 const VssRayContainer &rays); 602 614
Note: See TracChangeset
for help on using the changeset viewer.