Ignore:
Timestamp:
02/15/07 13:19:17 (17 years ago)
Author:
mattausch
Message:

implemented bit pvs (warnin: only worjs for preprocessing)

File:
1 edited

Legend:

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

    r2116 r2117  
    382382 
    383383 
    384   // resort pvss after a pass of the algorithm 
    385   void 
    386   SortViewCellPvs(); 
    387  
    388   // map the ray intersection objects from triangles to high level objects... 
    389   void 
    390   DeterminePvsObjects( 
    391                                           VssRayContainer &rays, 
    392                                           const bool useHitObjects = false); 
     384        // resort pvss after a pass of the algorithm 
     385        void  SortViewCellPvs(); 
     386 
     387        // map the ray intersection objects from triangles to high level objects... 
     388        void DeterminePvsObjects(VssRayContainer &rays, 
     389                                                         const bool useHitObjects = false); 
    393390         
    394391        /** Sets validity of view cell 
     
    404401 
    405402 
    406         /** set valid viewcells in the range of pvs. sorts the viewcells 
    407           according to the pvs and then pickups those in the ranges  
    408           */ 
     403        /** Set valid viewcells in the range of pvs. sorts the viewcells 
     404                according to the pvs and then pickups those in the ranges  
     405        */ 
    409406        void SetValidityPercentage(const float minValid, const float maxValid); 
    410407 
     
    420417        */ 
    421418        int GetMinPvsSize() const; 
     419 
    422420        /** Returns maximal ratio. i.e., currentPVs / maxPvs, 
    423421                where pvs is still considered valid. 
    424422        */ 
    425423        float GetMaxPvsRatio() const; 
     424 
    426425        /** Exports view cell geometry. 
    427426        */ 
    428         virtual void ExportViewCellGeometry( 
    429                 Exporter *exporter, 
    430                 ViewCell *vc, 
    431                 const AxisAlignedBox3 *box, 
    432                 const AxisAlignedPlane *clipPlane = NULL 
    433                 ) const = 0; 
     427        virtual void ExportViewCellGeometry(Exporter *exporter, 
     428                                                                                ViewCell *vc, 
     429                                                                                const AxisAlignedBox3 *box, 
     430                                                                                const AxisAlignedPlane *clipPlane = NULL 
     431                                                                                ) const = 0; 
    434432 
    435433        /** Brings the view cells into their final state, computes meshes and volume. 
     
    446444                                                                  float &avgRenderCost); 
    447445 
    448  
    449446        /** Returns hierarchy of the view cells. 
    450447        */ 
     
    488485        /** Evaluautes histogram for a given number of view cells. 
    489486        */ 
    490         void EvalViewCellHistogramForPvsSize(const string filename, const int nViewCells); 
     487        void EvalViewCellHistogramForPvsSize(const string filename,  
     488                                                                                 const int nViewCells); 
    491489 
    492490        void EvalViewCellHistogramForPvsSize(const string filename,  
     
    500498                of the hierarchy. 
    501499        */ 
    502         void UpdateScalarPvsSize(ViewCell *vc, const float pvsCost, const int entriesInPvs) const; 
     500        void UpdateScalarPvsSize(ViewCell *vc,  
     501                                                         const float pvsCost,  
     502                                                         const int entriesInPvs) const; 
    503503 
    504504        /** Returns bounding box of a view cell. 
     
    508508        /** Exports bounding boxes of objects to file. 
    509509        */ 
    510         bool ExportBoundingBoxes(const string filename, const ObjectContainer &objects) const; 
     510        bool ExportBoundingBoxes(const string filename,  
     511                                                         const ObjectContainer &objects) const; 
    511512     
    512513        /** Load the bounding boxes into the container. 
    513514        */ 
    514         bool LoadBoundingBoxes(const string filename, IndexedBoundingBoxContainer &boxes) const; 
     515        bool LoadBoundingBoxes(const string filename,  
     516                                                  IndexedBoundingBoxContainer &boxes) const; 
    515517 
    516518        /** Returns true if pvs should be exported together with the view cells. 
     
    523525                                                                  const ViewCellContainer &viewCells) const; 
    524526 
     527        /** Compress the view cells. 
     528        */ 
    525529        virtual void CompressViewCells(); 
    526530 
     
    616620        /** Returns the bounding box of filter width. 
    617621        */ 
    618         AxisAlignedBox3 GetFilterBBox(const Vector3 &viewPoint, const float width) const; 
     622        AxisAlignedBox3 GetFilterBBox(const Vector3 &viewPoint,  
     623                                                                  const float width) const; 
    619624 
    620625        ////////////////////////////////////////////////////////////////// 
Note: See TracChangeset for help on using the changeset viewer.