Ignore:
Timestamp:
10/16/06 07:58:19 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1614 r1624  
    5050public: 
    5151        /// total number of entries in the pvs 
    52         int pvsEntries; 
     52        int mPvsEntries; 
    5353        /// storage cost 
    54         int memory; 
     54        int mMemory; 
    5555        /// total number of nodes 
    56         int nodes; 
     56        int mNodes; 
    5757        /// maximal reached depth 
    58         int maxDepth; 
     58        int mMaxDepth; 
    5959        /// accumulated depth 
    60         int accumDepth; 
     60        int mAccumDepth; 
    6161        /// time spent for queue repair 
    62         float repairTime; 
     62        float mRepairTime; 
     63 
    6364        // global cost ratio violations 
    6465        int mGlobalCostMisses; 
     66        /// total cost of subdivision 
     67        float mTotalCost; 
     68        /// render cost decrease of subdivision 
     69        float mRenderCostDecrease; 
    6570 
    6671        // Constructor 
     
    7075        } 
    7176 
    72         int Nodes() const {return nodes;} 
    73         int Interior() const { return nodes / 2; } 
    74         int Leaves() const { return (nodes / 2) + 1; } 
     77        int Nodes() const {return mNodes;} 
     78        int Interior() const { return mNodes / 2; } 
     79        int Leaves() const { return (mNodes / 2) + 1; } 
    7580         
    7681        // TODO: computation wrong 
    77         double AvgDepth() const { return accumDepth / (double)Leaves();} 
     82        double AvgDepth() const { return mAccumDepth / (double)Leaves();} 
    7883 
    7984        void Reset() 
    8085        { 
    8186                mGlobalCostMisses = 0; 
    82                 nodes = 0; 
    83                 maxDepth = 0; 
    84                 accumDepth = 0; 
    85                 repairTime = 0; 
    86                 memory = 0; 
    87                 pvsEntries = 0; 
     87                mTotalCost = 0; 
     88                mRenderCostDecrease = 0; 
     89 
     90                mNodes = 0; 
     91                mMaxDepth = 0; 
     92                mAccumDepth = 0; 
     93                mRepairTime = 0; 
     94                mMemory = 0; 
     95                mPvsEntries = 0; 
    8896        } 
    8997 
     
    201209        */ 
    202210        //AxisAlignedBox3 GetViewSpaceBox() const; 
     211 
    203212        /** Returns object space bounding box. 
    204213        */ 
     
    257266        /** Repairs the dirty entries of the candidate queue. 
    258267        */ 
    259         void RepairQueue(); 
    260  
    261         /** Collect the list of dirty candidates after the current subdivision candidate 
    262                 split. 
    263         */ 
    264         void CollectDirtyCandidates(vector<SubdivisionCandidate *> &dirtyList); 
     268        void RepairQueue(SubdivisionCandidate *sc); 
     269 
     270        /** Collect the list of dirty candidates after the current  
     271                subdivision candidate split. 
     272        */ 
     273        void CollectDirtyCandidates( 
     274                SubdivisionCandidate *sc, 
     275                vector<SubdivisionCandidate *> &dirtyList); 
    265276 
    266277        /** Evaluate subdivision stats for log. 
    267278        */ 
    268         void EvalSubdivisionStats(const float renderCostDecr); 
     279        void EvalSubdivisionStats(); 
    269280 
    270281        void AddSubdivisionStats( 
     
    274285                const int totalPvsEntries); 
    275286 
    276         void CollectObjectSpaceDirtyList(); 
    277         void CollectViewSpaceDirtyList(); 
    278  
    279         bool AddSampleToPvs(Intersectable *obj,  
    280                                                 const float pdf, 
    281                                                 float &contribution) const; 
    282  
    283         void CollectViewSpaceDirtyList(SubdivisionCandidateContainer &dirtyList); 
    284         void CollectObjectSpaceDirtyList(SubdivisionCandidateContainer &dirtyList); 
     287        bool AddSampleToPvs( 
     288                Intersectable *obj,  
     289                const float pdf, 
     290                float &contribution) const; 
     291 
     292        void CollectViewSpaceDirtyList( 
     293                SubdivisionCandidate *sc, 
     294                SubdivisionCandidateContainer &dirtyList); 
     295 
     296        void CollectObjectSpaceDirtyList( 
     297                SubdivisionCandidate *sc, 
     298                SubdivisionCandidateContainer &dirtyList); 
    285299                 
    286         void ExportOspTree(Exporter *exporter, const ObjectContainer &objects) const; 
     300        void ExportOspTree( 
     301                Exporter *exporter,  
     302                const ObjectContainer &objects) const; 
    287303 
    288304        void ParseEnvironment(); 
     
    313329 
    314330        void ConstructInterleaved( 
     331                const VssRayContainer &sampleRays, 
     332                const ObjectContainer &objects, 
     333                AxisAlignedBox3 *forcedViewSpace); 
     334 
     335        void ConstructInterleaved2( 
    315336                const VssRayContainer &sampleRays, 
    316337                const ObjectContainer &objects, 
     
    359380        int mSavedViewSpaceSubdivisionType; 
    360381        /// the current subdivision candidate 
    361         SubdivisionCandidate *mCurrentCandidate; 
     382        //SubdivisionCandidate *mCurrentCandidate; 
    362383 
    363384 
     
    389410 
    390411        /// keeps track of cost during subdivision 
    391         float mTotalCost; 
     412        //float mTotalCost; 
    392413        /// statistics about the hierarchy 
    393414        HierarchyStatistics mHierarchyStats; 
     
    396417        int mMinDepthForViewSpaceSubdivion; 
    397418         
     419        int mMinRenderCostDecrease; 
     420 
    398421        ofstream mSubdivisionStats; 
    399422 
Note: See TracChangeset for help on using the changeset viewer.