Ignore:
Timestamp:
03/06/07 17:37:28 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2187 r2198  
    3535class BvhTree; 
    3636class VspTree; 
    37 class ViewCellsContainer; 
    3837class HierarchyManager; 
    3938 
     
    649648        static float EvalAbsCost(const ObjectContainer &objects); 
    650649 
    651         float EvalProb(const ObjectContainer &objects) const; 
    652  
    653650        void CollectObjects(const AxisAlignedBox3 &box, ObjectContainer &objects); 
    654651 
     
    658655        void CreateUniqueObjectIds(); 
    659656 
    660         PerfTimer mSortTimer; 
    661657        PerfTimer mNodeTimer; 
    662658        PerfTimer mSubdivTimer; 
    663659        PerfTimer mEvalTimer; 
    664660        PerfTimer mSplitTimer; 
     661        PerfTimer mPlaneTimer; 
     662        PerfTimer mSort2Timer; 
     663        PerfTimer mCollectTimer; 
    665664 
    666665protected: 
     
    710709        /** Evaluates render cost of the bv induced by these objects 
    711710        */ 
    712         float EvalRenderCost(const ObjectContainer &objects) const; 
     711        float EvalRenderCost(const ObjectContainer &objects);// const; 
    713712 
    714713        /** Evaluates tree stats in the BSP tree leafs. 
     
    759758        static void AssociateObjectsWithLeaf(BvhLeaf *leaf); 
    760759 
    761  
     760         
    762761        ///////////////////////////// 
    763762        // Helper functions for local cost heuristics 
     
    834833                                                 ViewCellContainer &viewCells, 
    835834                                                 const bool setCounter, 
    836                                                  const bool onlyUnmailedRays) const; 
     835                                                 const bool onlyUnmailedRays);// const; 
    837836 
    838837        /** Collects view cells which see an object. 
     
    846845                                                 const bool useMailBoxing, 
    847846                                                 const bool setCounter, 
    848                                                  const bool onlyUnmailedRays) const; 
     847                                                 const bool onlyUnmailedRays);// const; 
    849848 
    850849        /** Counts the view cells of this object. note: only 
    851850                counts unmailed objects. 
    852851        */ 
    853         int CountViewCells(Intersectable *obj) const; 
     852        int CountViewCells(Intersectable *obj);// const; 
    854853 
    855854        /** Counts the view cells seen by this bvh leaf 
    856855        */ 
    857         int CountViewCells(const ObjectContainer &objects) const; 
     856        int CountViewCells(const ObjectContainer &objects);// const; 
     857 
     858#if STORE_VIEWCELLS_WITH_BVH 
     859 
     860        int AssociateViewCellsWithObject(Intersectable *obj, const bool useMailBoxing) const; 
     861 
     862        void AssociateViewCellsWithObjects(const ObjectContainer &objects) const; 
     863 
     864        void ReleaseViewCells(const ObjectContainer &objects); 
     865 
     866        int CollectViewCellsFromRays(Intersectable *obj,  
     867                                                                 ViewCellContainer &viewCells, 
     868                                                                 const bool useMailBoxing, 
     869                                                                 const bool setCounter, 
     870                                                                 const bool onlyUnmailedRays); 
     871 
     872        int CountViewCellsFromRays(Intersectable *obj); 
     873#endif 
    858874 
    859875        /** Evaluates increase in pvs size. 
    860876        */ 
    861         int EvalPvsEntriesIncr(BvhSubdivisionCandidate &splitCandidate, const float avgRayContri) const; 
     877        int EvalPvsEntriesIncr(BvhSubdivisionCandidate &splitCandidate,  
     878                                                   const float avgRayContri);// const; 
    862879 
    863880        /** Rays will be clipped to the bounding box. 
     
    901918        /** Evaluates volume of view cells that see the objects. 
    902919        */ 
    903         float EvalViewCellsVolume(const ObjectContainer &objects) const; 
     920        float EvalViewCellsVolume(const ObjectContainer &objects);// const; 
    904921 
    905922        /** Assigns or newly creates initial list of sorted objects. 
Note: See TracChangeset for help on using the changeset viewer.