Ignore:
Timestamp:
10/23/06 20:24:14 (18 years ago)
Author:
mattausch
Message:

updated priority meaurement: taking total cost and memory into account

File:
1 edited

Legend:

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

    r1666 r1667  
    4141class BvHierarchy; 
    4242class Exporter; 
     43class ViewCellsParseHandlers; 
     44 
    4345 
    4446#define COUNT_ORIGIN_OBJECTS 1 
     
    130132class HierarchyManager 
    131133{ 
    132         friend VspTree; 
    133         friend OspTree; 
    134         friend BvHierarchy; 
    135         friend ViewCellsParseHandlers; 
    136  
    137134public: 
    138135        /** Constructor with the view space partition tree and 
     
    233230        }  
    234231 
     232        HierarchyStatistics &GetHierarchyStats() { return mHierarchyStats; }; 
     233 
     234        inline bool ConsiderMemory() const { return mConsiderMemory; } 
     235 
    235236protected: 
    236237 
     
    254255        float GetObjectSpaceMemUsage() const; 
    255256 
     257 
    256258        ////////////////////////////// 
    257259        // the main loop 
    258         ////////////////////// 
    259260 
    260261        /** This is for interleaved construction / sequential construction. 
     
    270271        int RunConstruction(SplitQueue &splitQueue, 
    271272                                                SubdivisionCandidateContainer &chosenCandidates, 
    272                                                 const float minRenderCostDecr, 
     273                                                //const float minRenderCostDecr, 
     274                                                SubdivisionCandidate *oldCandidate, 
    273275                                                const int minSteps); 
    274276 
     
    344346        bool StartViewSpaceSubdivision() const; 
    345347 
     348 
    346349        //////////////////////////// 
    347350        // Helper function for preparation of subdivision 
    348         /////// 
    349351 
    350352        /** Prepare bv hierarchy for subdivision 
     
    493495        float mTermMaxMemory; 
    494496 
     497 
    495498        //////////////////// 
    496499 
     500        /// number of minimal steps of the same type 
    497501        int mMinStepsOfSameType; 
    498502 
     
    532536 
    533537        float mMemoryConst; 
     538 
     539 
     540        friend VspTree; 
     541        friend OspTree; 
     542        friend BvHierarchy; 
     543        friend ViewCellsParseHandlers; 
     544 
    534545}; 
    535546 
Note: See TracChangeset for help on using the changeset viewer.