Changeset 1002 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h
- Timestamp:
- 06/07/06 10:59:55 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h
r1001 r1002 170 170 void AddViewCell(ViewCell *viewCell); 171 171 172 /** Derive view cells from objects. The view ells are created by taking the object172 /** Derive view cells from scene objects. The view ells are created by taking the object 173 173 geometry into account. 174 174 */ 175 void DeriveViewCells (const ObjectContainer &objects,176 177 175 void DeriveViewCellsFromObjects(const ObjectContainer &objects, 176 ViewCellContainer &viewCells, 177 const int maxViewCells) const; 178 178 179 179 /** Sets maximal number of samples used for the … … 206 206 int GetPostProcessSamples() const; 207 207 208 /** Returns true if view cells weralready constructed.208 /** Returns true if view cells are already constructed. 209 209 */ 210 210 virtual bool ViewCellsConstructed() const = 0; … … 405 405 */ 406 406 float EvalRenderCost(Intersectable *obj) const; 407 408 407 409 408 /** Sets pvs size of view cell as a scalar. Used when storing pvs only in the leaves 409 of the hierarchy. 410 */ 411 inline void SetScalarPvsSize(ViewCell *vc, const int pvsSize) const; 412 413 410 414 /** Returns bounding box of a view cell. 411 415 */ … … 420 424 bool LoadBoundingBoxes(const string filename, IndexedBoundingBoxContainer &boxes) const; 421 425 422 bool GetExportPvs() const 423 { 424 return mExportPvs; 425 } 426 /** Returns true if pvs should be exported together with the view cells. 427 */ 428 bool GetExportPvs() const; 426 429 427 430 /** Loads view cells from file. The view cells manager is created with 428 431 respect to the loaded view cells. 429 432 433 @param filename the filename of the view cells 434 @param objects the scene objects 435 @param env an environment file containing more parameters 436 @param finalizeViewCells if the view cells should be post processed, i.e. 437 a mesh is created representing the geometry 438 @param bconverter a conversion routine working with the similarities of bounding 439 boxes: if there is a certain similarity of overlap between bounding boxes, two tested 440 candidate objects are considered to be the same objects 430 441 @returns the view cells manager if loading was successful, false otherwise 431 442 */ … … 522 533 virtual void ExportColor(Exporter *exporter, ViewCell *vc) const = 0; 523 534 524 535 /** Returns volume of the view space. 536 */ 525 537 virtual float GetViewSpaceVolume(); 526 538 … … 553 565 virtual void UpdatePvsForEvaluation(ViewCell *root, ObjectPvs &pvs) = 0; 554 566 555 567 556 568 //////////////////////////////////////////////// 557 569 … … 570 582 /// Loaded view cells 571 583 ViewCellContainer mViewCells; 572 584 /// the corresponding view cell tree holding the logical description of view cells 573 585 ViewCellsTree *mViewCellsTree; 574 586 /// if empty view cells should be pruned (i.e., invalidated) from this point on 575 587 bool mPruneEmptyViewCells; 576 588 589 /// if the pvss in the view cell leaves and the interiors are up to date 577 590 bool mViewCellPvsIsUpdated; 591 578 592 /// maximum number of samples taken for construction of the view cells 579 593 int mConstructionSamples; … … 595 609 bool mCompressViewCells; 596 610 611 /// holds the current view cell statistics 597 612 ViewCellsStatistics mCurrentViewCellsStats; 598 613 /// the scene bounding box … … 602 617 bool mExportViewCells; 603 618 604 // bool mMarchTree);619 // if only valid view cells should be considered for processing 605 620 bool mOnlyValidViewCells; 606 621 607 622 /// if rays should be used to collect merge candidates 608 623 bool mUseRaysForMerge; 609 /// merge the view cells?624 /// if there should be an additional merge step after the subdivision 610 625 bool mMergeViewCells; 611 626 … … 616 631 //-- visualization options 617 632 618 /// color code for view cells 633 /// color code for view cells visualization 619 634 int mColorCode; 620 635 bool mExportGeometry; … … 638 653 bool mExportPvs; 639 654 655 /// the pointer to the environment 640 656 Environment *mEnvironment; 641 657 }; 642 643 658 644 659 … … 729 744 void ExportBspPvs(const ObjectContainer &objects); 730 745 746 /** test if subdivision is valid in terms of volume / area. 747 */ 731 748 void TestSubdivision(); 732 749 }; … … 994 1011 const VssRayContainer &rays); 995 1012 1013 /** test if subdivision is valid in terms of volume / area. 1014 */ 996 1015 void TestSubdivision(); 997 1016 }; 998 1017 999 1018 1000 class ViewCellsManagerFactory1019 /*class ViewCellsManagerFactory 1001 1020 { 1002 1003 1021 public: 1004 1005 1022 ViewCellsManager *Create(const string mName); 1006 1007 }; 1023 };*/ 1008 1024 1009 1025 }
Note: See TracChangeset
for help on using the changeset viewer.