Ignore:
Timestamp:
11/24/06 12:05:28 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h

    r1786 r1787  
    7575 
    7676 
    77 class LocalMergeLeaf: public LocalMergeNode 
    78 { 
    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 LocalMergeNode 
    89 { 
    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 LocalMergeTree 
    101 { 
    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  
    11877/**     Manages different higher order operations on the view cells. 
    11978*/ 
     
    505464        /** Efficiently merges the view cells in the container. 
    506465        */ 
    507         void MergeViewCellsEfficient(ObjectPvs &pvs, const ViewCellContainer &viewCells) const; 
     466        void MergeViewCellsRecursivly(ObjectPvs &pvs,  
     467                                                                  const ViewCellContainer &viewCells) const; 
    508468 
    509469 
     
    606566 
    607567protected: 
     568 
     569        void MergeViewCellsRecursivly(ObjectPvs &pvs,  
     570                                                                  const ViewCellContainer &viewCells,  
     571                                                                  const int leftIdx,  
     572                                                                  const int rightIdx) const; 
    608573 
    609574        /** Intersects box with the tree and returns the number of intersected boxes. 
Note: See TracChangeset for help on using the changeset viewer.