Ignore:
Timestamp:
02/04/06 21:36:40 (18 years ago)
Author:
mattausch
Message:

implemented some code for merge history loading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.h

    r587 r590  
    2020class ViewCellsStatistics; 
    2121class ViewCellsManager; 
    22  
    23  
     22class ViewCellsTree; 
    2423 
    2524class BspNodeGeometry 
     
    322321public: 
    323322        BspLeaf(); 
    324         BspLeaf(BspViewCell *viewCell); 
     323        BspLeaf(ViewCell *viewCell); 
    325324        BspLeaf(BspInterior *parent); 
    326         BspLeaf(BspInterior *parent, BspViewCell *viewCell); 
     325        BspLeaf(BspInterior *parent, ViewCell *viewCell); 
    327326 
    328327        ~BspLeaf(); 
     
    334333        /** Returns pointer of view cell. 
    335334        */ 
    336         BspViewCell *GetViewCell() const; 
     335        ViewCell *GetViewCell() const; 
    337336 
    338337        /** Sets pointer to view cell. 
    339338        */ 
    340         void SetViewCell(BspViewCell *viewCell); 
     339        void SetViewCell(ViewCell *viewCell); 
    341340 
    342341        /// Rays piercing this leaf. 
     
    352351         
    353352        /// if NULL this does not correspond to feasible viewcell 
    354         BspViewCell *mViewCell; 
     353        ViewCell *mViewCell; 
    355354}; 
    356355 
     
    500499        BspNode *GetRoot() const; 
    501500 
    502         /** Exports Bsp tree to file. 
    503         */ 
    504         bool Export(const string filename); 
     501         
     502        //bool Export(const string filename); 
    505503 
    506504        /** Collects the leaf view cells of the tree 
     
    558556        BspLeaf *GetRandomLeaf(const bool onlyUnmailed = false); 
    559557 
    560         /** Returns view cell corresponding to unbounded space. 
    561         */ 
    562         BspViewCell *GetRootCell() const; 
    563558 
    564559        /** Returns epsilon of this tree. 
     
    571566        int CollectMergeCandidates(const VssRayContainer &rays, 
    572567                                                   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         
    573581protected: 
    574582 
     
    593601        }; 
    594602 
     603        void ExportNode(BspNode *node, ofstream &stream); 
     604 
    595605        /** Evaluates tree stats in the BSP tree leafs. 
    596606        */ 
     
    850860 
    851861 
    852  
     862        /** Returns view cell corresponding to  
     863                the invalid view space. If it does not exist, it is created. 
     864        */ 
     865        BspViewCell *GetOrCreateOutOfBoundsCell(); 
    853866 
    854867        /// Pointer to the root of the tree. 
     
    877890 
    878891        /// view cell corresponding to unbounded space 
    879         BspViewCell *mRootCell; 
     892        BspViewCell *mOutOfBoundsCell; 
    880893 
    881894        /// if view cells should be generated or the given view cells should be used. 
Note: See TracChangeset for help on using the changeset viewer.