Changeset 590 for trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.h
- Timestamp:
- 02/04/06 21:36:40 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.h
r587 r590 20 20 class ViewCellsStatistics; 21 21 class ViewCellsManager; 22 23 22 class ViewCellsTree; 24 23 25 24 class BspNodeGeometry … … 322 321 public: 323 322 BspLeaf(); 324 BspLeaf( BspViewCell *viewCell);323 BspLeaf(ViewCell *viewCell); 325 324 BspLeaf(BspInterior *parent); 326 BspLeaf(BspInterior *parent, BspViewCell *viewCell);325 BspLeaf(BspInterior *parent, ViewCell *viewCell); 327 326 328 327 ~BspLeaf(); … … 334 333 /** Returns pointer of view cell. 335 334 */ 336 BspViewCell *GetViewCell() const;335 ViewCell *GetViewCell() const; 337 336 338 337 /** Sets pointer to view cell. 339 338 */ 340 void SetViewCell( BspViewCell *viewCell);339 void SetViewCell(ViewCell *viewCell); 341 340 342 341 /// Rays piercing this leaf. … … 352 351 353 352 /// if NULL this does not correspond to feasible viewcell 354 BspViewCell *mViewCell;353 ViewCell *mViewCell; 355 354 }; 356 355 … … 500 499 BspNode *GetRoot() const; 501 500 502 /** Exports Bsp tree to file. 503 */ 504 bool Export(const string filename); 501 502 //bool Export(const string filename); 505 503 506 504 /** Collects the leaf view cells of the tree … … 558 556 BspLeaf *GetRandomLeaf(const bool onlyUnmailed = false); 559 557 560 /** Returns view cell corresponding to unbounded space.561 */562 BspViewCell *GetRootCell() const;563 558 564 559 /** Returns epsilon of this tree. … … 571 566 int CollectMergeCandidates(const VssRayContainer &rays, 572 567 vector<MergeCandidate> &candidates); 568 569 /** Exports Bsp tree to file. 570 */ 571 bool Export(ofstream &stream); 572 573 574 /** Returns view cell corresponding to 575 the invalid view space. If it does not exist, it is created. 576 */ 577 BspViewCell *GetOutOfBoundsCell(); 578 579 ViewCellsTree *mViewCellsTree; 580 573 581 protected: 574 582 … … 593 601 }; 594 602 603 void ExportNode(BspNode *node, ofstream &stream); 604 595 605 /** Evaluates tree stats in the BSP tree leafs. 596 606 */ … … 850 860 851 861 852 862 /** Returns view cell corresponding to 863 the invalid view space. If it does not exist, it is created. 864 */ 865 BspViewCell *GetOrCreateOutOfBoundsCell(); 853 866 854 867 /// Pointer to the root of the tree. … … 877 890 878 891 /// view cell corresponding to unbounded space 879 BspViewCell *m RootCell;892 BspViewCell *mOutOfBoundsCell; 880 893 881 894 /// if view cells should be generated or the given view cells should be used.
Note: See TracChangeset
for help on using the changeset viewer.