Changeset 1787 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h
- Timestamp:
- 11/24/06 12:05:28 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h
r1786 r1787 75 75 76 76 77 class LocalMergeLeaf: public LocalMergeNode78 {79 public:80 LocalMergeLeaf(ViewCell *vc): mViewCell(vc) {};81 virtual ~LocalMergeLeaf() {};82 virtual bool IsLeaf() const { return true; }83 84 ViewCell *mViewCell;85 };86 87 88 class LocalMergeInterior: public LocalMergeNode89 {90 public:91 92 virtual ~LocalMergeInterior() {DEL_PTR(mLeft); DEL_PTR(mRight);}93 virtual bool IsLeaf() const { return false; }94 95 LocalMergeNode *mLeft;96 LocalMergeNode *mRight;97 };98 99 100 class LocalMergeTree101 {102 public:103 104 LocalMergeTree(const ViewCellContainer &viewCells);105 106 void Merge(ObjectPvs &mergedPvs);107 108 protected:109 110 void Merge(LocalMergeNode *node, ObjectPvs &mergedPvs);111 LocalMergeNode *Subdivide(const int leftIdx, const int rightIdx);112 113 LocalMergeNode *mRoot;114 const ViewCellContainer &mViewCells;115 };116 117 118 77 /** Manages different higher order operations on the view cells. 119 78 */ … … 505 464 /** Efficiently merges the view cells in the container. 506 465 */ 507 void MergeViewCellsEfficient(ObjectPvs &pvs, const ViewCellContainer &viewCells) const; 466 void MergeViewCellsRecursivly(ObjectPvs &pvs, 467 const ViewCellContainer &viewCells) const; 508 468 509 469 … … 606 566 607 567 protected: 568 569 void MergeViewCellsRecursivly(ObjectPvs &pvs, 570 const ViewCellContainer &viewCells, 571 const int leftIdx, 572 const int rightIdx) const; 608 573 609 574 /** Intersects box with the tree and returns the number of intersected boxes.
Note: See TracChangeset
for help on using the changeset viewer.