Changeset 2198 for GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.h
- Timestamp:
- 03/06/07 17:37:28 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.h
r2187 r2198 35 35 class BvhTree; 36 36 class VspTree; 37 class ViewCellsContainer;38 37 class HierarchyManager; 39 38 … … 649 648 static float EvalAbsCost(const ObjectContainer &objects); 650 649 651 float EvalProb(const ObjectContainer &objects) const;652 653 650 void CollectObjects(const AxisAlignedBox3 &box, ObjectContainer &objects); 654 651 … … 658 655 void CreateUniqueObjectIds(); 659 656 660 PerfTimer mSortTimer;661 657 PerfTimer mNodeTimer; 662 658 PerfTimer mSubdivTimer; 663 659 PerfTimer mEvalTimer; 664 660 PerfTimer mSplitTimer; 661 PerfTimer mPlaneTimer; 662 PerfTimer mSort2Timer; 663 PerfTimer mCollectTimer; 665 664 666 665 protected: … … 710 709 /** Evaluates render cost of the bv induced by these objects 711 710 */ 712 float EvalRenderCost(const ObjectContainer &objects) const;711 float EvalRenderCost(const ObjectContainer &objects);// const; 713 712 714 713 /** Evaluates tree stats in the BSP tree leafs. … … 759 758 static void AssociateObjectsWithLeaf(BvhLeaf *leaf); 760 759 761 760 762 761 ///////////////////////////// 763 762 // Helper functions for local cost heuristics … … 834 833 ViewCellContainer &viewCells, 835 834 const bool setCounter, 836 const bool onlyUnmailedRays) const;835 const bool onlyUnmailedRays);// const; 837 836 838 837 /** Collects view cells which see an object. … … 846 845 const bool useMailBoxing, 847 846 const bool setCounter, 848 const bool onlyUnmailedRays) const;847 const bool onlyUnmailedRays);// const; 849 848 850 849 /** Counts the view cells of this object. note: only 851 850 counts unmailed objects. 852 851 */ 853 int CountViewCells(Intersectable *obj) const;852 int CountViewCells(Intersectable *obj);// const; 854 853 855 854 /** Counts the view cells seen by this bvh leaf 856 855 */ 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 858 874 859 875 /** Evaluates increase in pvs size. 860 876 */ 861 int EvalPvsEntriesIncr(BvhSubdivisionCandidate &splitCandidate, const float avgRayContri) const; 877 int EvalPvsEntriesIncr(BvhSubdivisionCandidate &splitCandidate, 878 const float avgRayContri);// const; 862 879 863 880 /** Rays will be clipped to the bounding box. … … 901 918 /** Evaluates volume of view cells that see the objects. 902 919 */ 903 float EvalViewCellsVolume(const ObjectContainer &objects) const;920 float EvalViewCellsVolume(const ObjectContainer &objects);// const; 904 921 905 922 /** Assigns or newly creates initial list of sorted objects.
Note: See TracChangeset
for help on using the changeset viewer.