Ignore:
Timestamp:
02/05/06 03:07:32 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r590 r591  
    9393                @returns number of sample contributions 
    9494        */ 
    95         virtual float ComputeSampleContributions(VssRay &ray, const bool addRays, const bool storeViewCells); 
    96  
    97   virtual void AddSampleContributions(VssRay &ray); 
     95        virtual float ComputeSampleContributions(VssRay &ray,  
     96                                                                                         const bool addRays,  
     97                                                                                         const bool storeViewCells); 
     98 
     99        virtual void AddSampleContributions(VssRay &ray); 
    98100 
    99101        /** Prints out statistics of the view cells. 
     
    318320        /** Exports view cell geometry. 
    319321        */ 
    320         virtual void ExportViewCellGeometry(Exporter *exporter, ViewCell *vc) const = 0; 
     322        virtual void ExportViewCellGeometry(Exporter *exporter,  
     323                                                                                ViewCell *vc, 
     324                                                                                const Plane3 *cuttingPlane = NULL) const = 0; 
    321325 
    322326        virtual void FinalizeViewCells(const bool createMesh); 
    323327 
    324328 
    325         /** Loads view cells from file. The view cells manager is created with respect to the loaded 
    326                 view cells. 
     329        /** Loads view cells from file. The view cells manager is created with  
     330                respect to the loaded view cells. 
    327331 
    328332                @returns the view cells manager if loading was successful, false otherwise 
    329333        */ 
    330         static ViewCellsManager *LoadViewCells(const string filename, ObjectContainer *objects); 
     334        static ViewCellsManager *LoadViewCells(const string filename,  
     335                                                                                   ObjectContainer *objects); 
    331336 
    332337        /** Evaluates statistics values on view cells. 
     
    351356protected: 
    352357 
     358 
    353359        /** 
    354360                if the view cells tree was already constructed or not. 
     
    411417        */ 
    412418        virtual void PrepareLoadedViewCells() {}; 
     419 
     420 
     421        void CreateCuttingPlane(); 
     422 
     423        Plane3 mCuttingPlane; 
     424        bool mUseCuttingPlaneForViz; 
     425 
    413426 
    414427        /// Renders the view cells. 
     
    446459        bool mExportViewCells; 
    447460 
     461        //bool mMarchTree); 
    448462        bool mOnlyValidViewCells; 
    449463 
     
    451465        bool mUseRaysForMerge; 
    452466         
    453  
     467         
    454468        //-- visualization options 
    455469         
     
    507521        void CreateMesh(ViewCell *vc); 
    508522 
    509         void ExportViewCellGeometry(Exporter *exporter, ViewCell *vc) const; 
     523        void ExportViewCellGeometry(Exporter *exporter,  
     524                                                                ViewCell *vc,  
     525                                                                const Plane3 *cuttingPlane = NULL) const; 
    510526         
    511527        void CollectMergeCandidates(const VssRayContainer &rays,  
     
    584600        void CreateMesh(ViewCell *vc); 
    585601 
    586         void ExportViewCellGeometry(Exporter *exporter, ViewCell *vc) const; 
    587  
    588         void CollectMergeCandidates(const VssRayContainer &rays, vector<MergeCandidate> &candidates); 
     602        void ExportViewCellGeometry(Exporter *exporter,  
     603                                                                ViewCell *vc, 
     604                                                                const Plane3 *cuttingPlane = NULL) const; 
     605 
     606        void CollectMergeCandidates(const VssRayContainer &rays,  
     607                                                                vector<MergeCandidate> &candidates); 
    589608 
    590609protected: 
     
    647666        void CreateMesh(ViewCell *vc); 
    648667 
    649         void ExportViewCellGeometry(Exporter *exporter, ViewCell *vc) const; 
     668        void ExportViewCellGeometry(Exporter *exporter,  
     669                                                                ViewCell *vc, 
     670                                                                const Plane3 *cuttingPlane = NULL) const; 
    650671 
    651672        void CollectMergeCandidates(const VssRayContainer &rays, vector<MergeCandidate> &candidates); 
     
    715736        int CastBeam(Beam &beam); 
    716737 
    717         void ExportViewCellGeometry(Exporter *exporter, ViewCell *vc) const; 
     738        void ExportViewCellGeometry(Exporter *exporter,  
     739                                                                ViewCell *vc, 
     740                                                                const Plane3 *cuttingPlane = NULL) const; 
    718741 
    719742        //float GetVolume(ViewCell *viewCell) const; 
     
    748771        void PrepareLoadedViewCells(); 
    749772 
     773         
    750774        /// the view space partition BSP tree. 
    751775        VspBspTree *mVspBspTree; 
    752776 
     777 
    753778private: 
    754779 
Note: See TracChangeset for help on using the changeset viewer.