Changeset 1551 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.h
- Timestamp:
- 10/02/06 19:07:38 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.h
r1545 r1551 107 107 /** Default destructor. 108 108 */ 109 virtual ~ViewCell() {} 110 109 virtual ~ViewCell(); 111 110 /** Returns Pvs. 112 111 */ 113 112 const ObjectPvs &GetPvs() const; 114 115 113 /** Returns pvs. 116 114 */ 117 115 ObjectPvs &GetPvs(); 118 119 116 /** Completely substitutes the pvs. 120 117 */ 121 118 void SetPvs(const ObjectPvs &pvs); 122 123 119 /** Type of view cells. 124 120 */ 125 121 int Type() const; 126 127 128 122 /** Adds a passing ray to the passing ray container. 129 123 */ 130 124 void AddPassingRay(const Ray &ray, const int contributions); 131 132 125 /** Returns volume of the view cell. 133 126 */ 134 127 float GetVolume() const; 135 136 128 /** Returns area of the view cell. 137 129 */ 138 130 float GetArea() const; 139 140 131 /** Sets the volume of the view cell. 141 132 */ 142 133 void SetVolume(float volume); 143 144 134 /** Sets the area of the view cell. 145 135 */ 146 136 void SetArea(float area); 147 148 149 137 /** if this view cell is the root of a view cell hierarchy 150 138 */ 151 139 bool IsRoot() const; 152 153 140 /** Returns parent view cell. 154 141 */ 155 142 ViewCellInterior *GetParent() const; 156 157 143 /** Sets parent of this view cell. 158 144 */ 159 145 void SetParent(ViewCellInterior *parent); 160 161 162 146 /** Sets the mesh for this view cell. 163 147 */ … … 231 215 232 216 233 234 //////////////// 217 ////////// 235 218 //-- mailing stuff 236 237 219 238 220 static void NewMail(const int reserve = 1) … … 346 328 } 347 329 348 /** Returns if this view cell is active. 330 /** Returns active view cell, i.e. this view cell or 331 a parent view cell which is set as active view cell. 349 332 */ 350 333 ViewCell *GetActiveViewCell() const … … 355 338 void SetActiveViewCell(ViewCell *vc) 356 339 { mActiveViewCell = vc;} 357 358 340 359 341 /** points to the currently active view cell. This is the … … 375 357 ViewCellLeaf(mesh) { } 376 358 377 378 359 bool IsLeaf() const 379 360 { … … 381 362 } 382 363 383 384 /// Leaf of some hierarchy which is part of this view cell. 385 T mLeaf; 364 /// Leaves of some hierarchy which contains this view cell. 365 vector<T> mLeaves; 386 366 }; 387 367 … … 507 487 void SetRoot(ViewCell *root); 508 488 509 //float ComputeVolume(ViewCell *vc);510 511 489 /** Assignes unique ids to view cells. 512 490 */ … … 521 499 int CountKdPvs(const ViewCellLeaf *vc) const; 522 500 523 void SetViewCellsManager(ViewCellsManager *vcm) 524 { 525 mViewCellsManager = vcm; 526 } 501 /** Sets pointer to view cells manager. 502 */ 503 void SetViewCellsManager(ViewCellsManager *vcm); 527 504 528 505 protected: … … 595 572 void ResetMergeQueue(); 596 573 597 /** Updates the current top levelof view cells.574 /** Updates the current cut of view cells. 598 575 @returns number of newly merged view cells 599 576 */ … … 643 620 /// if the view cell tree hold compressed pvs 644 621 int mViewCellsStorage; 645 622 /// pointer to the view cells manager 646 623 ViewCellsManager *mViewCellsManager; 624 /// the root of the view cells hierarchy 647 625 ViewCell *mRoot; 648 626 649 627 /// if merge visualization should be shown 650 628 bool mExportMergedViewCells; 651 652 653 629 /// intermediate container of merged view cells. 654 630 ViewCellContainer mMergedViewCells; 655 656 657 631 /// if merged view cells are refined. 658 632 bool mRefineViewCells; 659 660 633 /// weights between variance and render cost increase (must be between zero and one) 661 634 float mRenderCostWeight; … … 666 639 float mDeviation; 667 640 float mAvgRenderCost; 641 668 642 /// the area is used for pvs heuristics 669 643 int mUseAreaForPvs; 670 644 /// number of currently active view cells (=current cut) 671 645 int mNumActiveViewCells; 672 673 646 /// minimal number of view cells 674 647 int mMergeMinViewCells;
Note: See TracChangeset
for help on using the changeset viewer.