Ignore:
Timestamp:
05/30/08 02:37:07 (16 years ago)
Author:
mattausch
Message:

worked on gvs efficiency

File:
1 edited

Legend:

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

    r2705 r2726  
    3939                mGvsRuns = 0; 
    4040 
     41                mRandomSamples = 0; 
     42                mGvsSamples = 0; 
    4143                mTotalPvs = 0; 
    4244                mViewCells = 0; 
     
    5456public: 
    5557 
     58        int mRandomSamples; 
     59        int mGvsSamples; 
    5660        int mPass; 
    5761        int mTotalSamples; 
     
    141145                b) if triangle was found reverse sampling 
    142146        */ 
    143         bool HandleRay(VssRay *ray); 
     147        inline bool HandleRay(VssRay *ray); 
    144148 
    145149        /** The adaptive border sampling step. It aims to find neighbouring  
     
    157161                                                        const VssRay &oldRay); 
    158162 
     163        bool ReverseSampling2(const VssRay &currentRay, 
     164                          const Triangle3 &hitTriangle, 
     165                                                  const VssRay &oldRay, 
     166                                                  VssRayContainer &reverseRays); 
     167 
    159168        /** Returns true if we sampled a closer triangle than with the previous ray.  
    160169                Does reverse sampling if gap found. 
     
    167176                with respect to the previous ray. 
    168177        */ 
    169         void EnqueueRays(VssRayContainer &samples, VssRayContainer &invalidSamples); 
     178        void EnqueueRays(VssRayContainer &samples); 
    170179 
    171180        /** Hepler function for adaptive border sampling. It finds  
     
    239248        */ 
    240249        void UpdateStatsForVisualization(KdIntersectable *kdInt); 
     250         
     251        void CompileViewCellsFromPointList(); 
     252 
     253        void ComputeStats(); 
     254 
     255        int ConvertObjectPvs(); 
    241256        /** Keep count of new objects for stats. Returns number of new pvs entries. 
    242257        */ 
    243         int CountObject(Intersectable *triObj); 
    244  
    245         void CompileViewCellsFromPointList(); 
    246  
    247         bool AddTriangleObject(Intersectable *triObj); 
    248  
    249         void ComputeStats(); 
    250  
    251         int ConvertObjectPvs(); 
     258        inline int CountObject(Intersectable *triObj); 
     259 
     260        inline bool AddTriangleObject(Intersectable *triObj); 
     261 
     262        inline void AddKdNodeToPvs(const Vector3 &termination); 
    252263 
    253264 
Note: See TracChangeset for help on using the changeset viewer.