- Timestamp:
- 02/05/06 03:07:32 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.h
r590 r591 93 93 @returns number of sample contributions 94 94 */ 95 virtual float ComputeSampleContributions(VssRay &ray, const bool addRays, const bool storeViewCells); 96 97 virtual void AddSampleContributions(VssRay &ray); 95 virtual float ComputeSampleContributions(VssRay &ray, 96 const bool addRays, 97 const bool storeViewCells); 98 99 virtual void AddSampleContributions(VssRay &ray); 98 100 99 101 /** Prints out statistics of the view cells. … … 318 320 /** Exports view cell geometry. 319 321 */ 320 virtual void ExportViewCellGeometry(Exporter *exporter, ViewCell *vc) const = 0; 322 virtual void ExportViewCellGeometry(Exporter *exporter, 323 ViewCell *vc, 324 const Plane3 *cuttingPlane = NULL) const = 0; 321 325 322 326 virtual void FinalizeViewCells(const bool createMesh); 323 327 324 328 325 /** Loads view cells from file. The view cells manager is created with respect to the loaded326 view cells.329 /** Loads view cells from file. The view cells manager is created with 330 respect to the loaded view cells. 327 331 328 332 @returns the view cells manager if loading was successful, false otherwise 329 333 */ 330 static ViewCellsManager *LoadViewCells(const string filename, ObjectContainer *objects); 334 static ViewCellsManager *LoadViewCells(const string filename, 335 ObjectContainer *objects); 331 336 332 337 /** Evaluates statistics values on view cells. … … 351 356 protected: 352 357 358 353 359 /** 354 360 if the view cells tree was already constructed or not. … … 411 417 */ 412 418 virtual void PrepareLoadedViewCells() {}; 419 420 421 void CreateCuttingPlane(); 422 423 Plane3 mCuttingPlane; 424 bool mUseCuttingPlaneForViz; 425 413 426 414 427 /// Renders the view cells. … … 446 459 bool mExportViewCells; 447 460 461 //bool mMarchTree); 448 462 bool mOnlyValidViewCells; 449 463 … … 451 465 bool mUseRaysForMerge; 452 466 453 467 454 468 //-- visualization options 455 469 … … 507 521 void CreateMesh(ViewCell *vc); 508 522 509 void ExportViewCellGeometry(Exporter *exporter, ViewCell *vc) const; 523 void ExportViewCellGeometry(Exporter *exporter, 524 ViewCell *vc, 525 const Plane3 *cuttingPlane = NULL) const; 510 526 511 527 void CollectMergeCandidates(const VssRayContainer &rays, … … 584 600 void CreateMesh(ViewCell *vc); 585 601 586 void ExportViewCellGeometry(Exporter *exporter, ViewCell *vc) const; 587 588 void CollectMergeCandidates(const VssRayContainer &rays, vector<MergeCandidate> &candidates); 602 void ExportViewCellGeometry(Exporter *exporter, 603 ViewCell *vc, 604 const Plane3 *cuttingPlane = NULL) const; 605 606 void CollectMergeCandidates(const VssRayContainer &rays, 607 vector<MergeCandidate> &candidates); 589 608 590 609 protected: … … 647 666 void CreateMesh(ViewCell *vc); 648 667 649 void ExportViewCellGeometry(Exporter *exporter, ViewCell *vc) const; 668 void ExportViewCellGeometry(Exporter *exporter, 669 ViewCell *vc, 670 const Plane3 *cuttingPlane = NULL) const; 650 671 651 672 void CollectMergeCandidates(const VssRayContainer &rays, vector<MergeCandidate> &candidates); … … 715 736 int CastBeam(Beam &beam); 716 737 717 void ExportViewCellGeometry(Exporter *exporter, ViewCell *vc) const; 738 void ExportViewCellGeometry(Exporter *exporter, 739 ViewCell *vc, 740 const Plane3 *cuttingPlane = NULL) const; 718 741 719 742 //float GetVolume(ViewCell *viewCell) const; … … 748 771 void PrepareLoadedViewCells(); 749 772 773 750 774 /// the view space partition BSP tree. 751 775 VspBspTree *mVspBspTree; 752 776 777 753 778 private: 754 779
Note: See TracChangeset
for help on using the changeset viewer.