Ignore:
Timestamp:
09/21/06 19:14:24 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1421 r1449  
    7272        /// accumulated depth 
    7373        int accumDepth; 
    74  
     74        /// time spent for queue repair 
    7575        float repairTime; 
     76        // global cost ratio violations 
     77        int mGlobalCostMisses; 
    7678 
    7779        // Constructor 
     
    8890        double AvgDepth() const { return accumDepth / (double)Leaves();} 
    8991 
    90         void Reset()  
    91         { 
     92        void Reset() 
     93        { 
     94                mGlobalCostMisses = 0; 
    9295                nodes = 0; 
    9396                maxDepth = 0; 
     
    247250 
    248251        void RunConstruction( 
     252                const bool repairQueue, 
    249253                const VssRayContainer &sampleRays, 
    250254                const ObjectContainer &objects, 
    251255                AxisAlignedBox3 *forcedViewSpace); 
    252  
     256         
     257        void RunConstruction(const bool repairQueue); 
     258                 
    253259        bool ApplySubdivisionCandidate(SubdivisionCandidate *sc); 
    254260 
     
    306312        int GetObjectSpaceSubdivisionDepth() const; 
    307313 
     314        void ConstructInterleaved( 
     315                const VssRayContainer &sampleRays, 
     316                const ObjectContainer &objects, 
     317                AxisAlignedBox3 *forcedViewSpace); 
     318 
     319        void ConstructMultiLevel( 
     320                const VssRayContainer &sampleRays, 
     321                const ObjectContainer &objects, 
     322                AxisAlignedBox3 *forcedViewSpace); 
     323 
     324        void ResetObjectSpaceSubdivision(const ObjectContainer &objects); 
     325 
    308326protected: 
    309327 
     
    329347        SubdivisionCandidate *mCurrentCandidate; 
    330348 
     349        //////// 
    331350        //-- global criteria 
    332351        float mTermMinGlobalCostRatio; 
    333352        int mTermGlobalCostMissTolerance; 
    334         int mGlobalCostMisses; 
    335  
     353         
    336354        /// keeps track of cost during subdivision 
    337355        float mTotalCost; 
     
    348366 
    349367        bool mStartWithObjectSpace; 
     368 
     369        bool mUseMultiLevelConstruction; 
    350370}; 
    351371 
Note: See TracChangeset for help on using the changeset viewer.