Ignore:
Timestamp:
02/21/06 17:42:39 (18 years ago)
Author:
mattausch
Message:

adding function for testing purpose

File:
1 edited

Legend:

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

    r651 r660  
    320320        virtual void ExportViewCellGeometry(Exporter *exporter,  
    321321                                                                                ViewCell *vc, 
    322                                                                                 const Plane3 *cuttingPlane = NULL) const = 0; 
     322                                                                                const Plane3 *clipPlane = NULL) const = 0; 
    323323 
    324324        virtual void FinalizeViewCells(const bool createMesh); 
     
    352352        void CollectViewCells(const int n); 
    353353 
     354        /** Returns true if this (logical) view cell is equal to a spatial node. 
     355        */ 
    354356        virtual bool EqualToSpatialNode(ViewCell *viewCell) const { return false;} 
    355357 
     358        /** Sets current view cells set to active, i.e., the sampling is done in this view cell set. 
     359        */ 
     360        void SetViewCellsActive(); 
     361 
     362        /** Evaluates worth of current view cell hierarchy. 
     363        */ 
     364        void EvalViewCellPartition(); 
    356365 
    357366protected: 
     
    407416        void CreateViewCellMeshes(); 
    408417 
    409  
    410418        /** Takes different measures to prepares the view cells after loading them from disc. 
    411419        */ 
    412420        virtual void PrepareLoadedViewCells() {}; 
    413421 
    414  
    415         void CreateCuttingPlane(); 
    416  
    417         Plane3 mCuttingPlane; 
    418         bool mUseCuttingPlaneForViz; 
     422        /** Creates clip plane for visualization. 
     423        */ 
     424        void CreateClipPlane(); 
     425 
     426        Plane3 mClipPlane; 
     427        bool mUseClipPlaneForViz; 
    419428 
    420429 
     
    441450        float mMaxPvsRatio; 
    442451 
     452        int mSamplingType; 
    443453        int mNumActiveViewCells; 
    444454        bool mCompressViewCells; 
    445455 
    446         ViewCellsStatistics mViewCellsStats; 
     456        ViewCellsStatistics mCurrentViewCellsStats; 
    447457        /// the scene bounding box 
    448458        AxisAlignedBox3 mViewSpaceBox; 
     
    517527        void ExportViewCellGeometry(Exporter *exporter,  
    518528                                                                ViewCell *vc,  
    519                                                                 const Plane3 *cuttingPlane = NULL) const; 
     529                                                                const Plane3 *clipPlane = NULL) const; 
    520530         
    521531        void CollectMergeCandidates(const VssRayContainer &rays,  
     
    600610        void ExportViewCellGeometry(Exporter *exporter,  
    601611                                                                ViewCell *vc, 
    602                                                                 const Plane3 *cuttingPlane = NULL) const; 
     612                                                                const Plane3 *clipPlane = NULL) const; 
    603613 
    604614        void CollectMergeCandidates(const VssRayContainer &rays,  
     
    666676        void ExportViewCellGeometry(Exporter *exporter,  
    667677                                                                ViewCell *vc, 
    668                                                                 const Plane3 *cuttingPlane = NULL) const; 
     678                                                                const Plane3 *clipPlane = NULL) const; 
    669679 
    670680        void CollectMergeCandidates(const VssRayContainer &rays, vector<MergeCandidate> &candidates); 
     
    735745        void ExportViewCellGeometry(Exporter *exporter,  
    736746                                                                ViewCell *vc, 
    737                                                                 const Plane3 *cuttingPlane = NULL) const; 
     747                                                                const Plane3 *clipPlane = NULL) const; 
    738748 
    739749        //float GetVolume(ViewCell *viewCell) const; 
Note: See TracChangeset for help on using the changeset viewer.