Ignore:
Timestamp:
08/22/06 22:48:02 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1251 r1259  
    3131class KdInterior; 
    3232class KdLeaf; 
    33 class OspTree; 
     33class HierarchyManager; 
    3434class KdIntersectable; 
    3535class KdTree; 
     
    759759                                                         float maxBand); 
    760760 
    761         /** Evaluate pvs size associated with the rays. 
     761        /** Evaluate pvs size as induced by the samples. 
    762762        */ 
    763763        int EvalPvsSize(const RayInfoContainer &rays) const; 
     
    778778                                                                  float &position); 
    779779 
    780         /** Evaluates the influence on the pvs of the visibility event ve. 
     780        /** Evaluates the contribution to left and right pvs at a visibility event ve. 
    781781                @param ve the visibility event 
    782782                @param pvsLeft updates the left pvs 
    783783                @param rightPvs updates the right pvs 
    784784        */ 
    785         void EvalPvsIncr(const SortableEntry &ve, 
    786                                           int &pvsLeft, 
    787                                           int &pvsRight) const; 
    788  
    789         void RemoveContriFromPvs(KdLeaf *leaf, int &pvs) const; 
    790         void AddContriToPvs(KdLeaf *leaf, int &pvs) const; 
     785        void EvalHeuristicsContribution( 
     786                const SortableEntry &ve,  
     787                int &pvsLeft,  
     788                int &pvsRight) const; 
     789 
     790        /** Evaluates contribution of the ray to the left and right pvs. 
     791        */ 
     792        int EvalMinEventContribution( 
     793                const VssRay &ray, const bool isTermination) const; 
     794 
     795        int EvalMaxEventContribution( 
     796                const VssRay &ray, const bool isTermination) const; 
     797 
     798        int EvalMinEventContribution(KdLeaf *leaf) const; 
     799        int EvalMaxEventContribution(KdLeaf *leaf) const; 
    791800 
    792801        /** Prepares objects for the heuristics. 
     
    794803        */ 
    795804        int PrepareHeuristics(const RayInfoContainer &rays); 
    796  
     805        int PrepareHeuristics(const VssRay &ray, const bool isTermination); 
    797806        int PrepareHeuristics(KdLeaf *leaf); 
    798807 
     
    859868                                                 int &contributingSamples); 
    860869 
    861         bool AddKdLeafToPvs(KdLeaf *leaf,  
    862                                                 ViewCell *vc,  
    863                                                 const float pvs,  
    864                                                 float &contribution); 
    865  
    866870        /** Propagates valid flag up the tree. 
    867871        */ 
     
    898902        void EvalSubdivisionStats(const SubdivisionCandidate &tData); 
    899903 
    900         SubdivisionCandidate *PrepareConstruction(const VssRayContainer &sampleRays, 
    901                                                            AxisAlignedBox3 *forcedViewSpace, 
    902                                                            RayInfoContainer &rays); 
     904        SubdivisionCandidate *PrepareConstruction( 
     905                const VssRayContainer &sampleRays, 
     906                AxisAlignedBox3 *forcedViewSpace, 
     907                RayInfoContainer &rays); 
     908 
     909        /** Add pvs contribution of this ray. 
     910        */ 
     911        int EvalPvsContribution(const VssRay &ray, const bool isTermination) const; 
    903912 
    904913protected: 
    905  
    906914 
    907915        /// pointer to the hierarchy of view cells 
    908916        ViewCellsTree *mViewCellsTree; 
    909917 
    910         OspTree *mOspTree; 
    911  
    912         bool mUseKdPvsForHeuristics; 
    913         bool mStoreKdPvs; 
    914  
     918        HierarchyManager *mHierarchyManager; 
     919        //OspTree *mOspTree; 
     920        //bool mUseKdPvsForHeuristics; 
     921         
    915922        ViewCellsManager *mViewCellsManager; 
    916923         
Note: See TracChangeset for help on using the changeset viewer.