Changeset 1259 for GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.h
- Timestamp:
- 08/22/06 22:48:02 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.h
r1251 r1259 31 31 class KdInterior; 32 32 class KdLeaf; 33 class OspTree;33 class HierarchyManager; 34 34 class KdIntersectable; 35 35 class KdTree; … … 759 759 float maxBand); 760 760 761 /** Evaluate pvs size as sociated with the rays.761 /** Evaluate pvs size as induced by the samples. 762 762 */ 763 763 int EvalPvsSize(const RayInfoContainer &rays) const; … … 778 778 float &position); 779 779 780 /** Evaluates the influence on the pvs of thevisibility event ve.780 /** Evaluates the contribution to left and right pvs at a visibility event ve. 781 781 @param ve the visibility event 782 782 @param pvsLeft updates the left pvs 783 783 @param rightPvs updates the right pvs 784 784 */ 785 void EvalPvsIncr(const SortableEntry &ve, 786 int &pvsLeft, 787 int &pvsRight) const; 788 789 void RemoveContriFromPvs(KdLeaf *leaf, int &pvs) const; 790 void AddContriToPvs(KdLeaf *leaf, int &pvs) const; 785 void EvalHeuristicsContribution( 786 const SortableEntry &ve, 787 int &pvsLeft, 788 int &pvsRight) const; 789 790 /** Evaluates contribution of the ray to the left and right pvs. 791 */ 792 int EvalMinEventContribution( 793 const VssRay &ray, const bool isTermination) const; 794 795 int EvalMaxEventContribution( 796 const VssRay &ray, const bool isTermination) const; 797 798 int EvalMinEventContribution(KdLeaf *leaf) const; 799 int EvalMaxEventContribution(KdLeaf *leaf) const; 791 800 792 801 /** Prepares objects for the heuristics. … … 794 803 */ 795 804 int PrepareHeuristics(const RayInfoContainer &rays); 796 805 int PrepareHeuristics(const VssRay &ray, const bool isTermination); 797 806 int PrepareHeuristics(KdLeaf *leaf); 798 807 … … 859 868 int &contributingSamples); 860 869 861 bool AddKdLeafToPvs(KdLeaf *leaf,862 ViewCell *vc,863 const float pvs,864 float &contribution);865 866 870 /** Propagates valid flag up the tree. 867 871 */ … … 898 902 void EvalSubdivisionStats(const SubdivisionCandidate &tData); 899 903 900 SubdivisionCandidate *PrepareConstruction(const VssRayContainer &sampleRays, 901 AxisAlignedBox3 *forcedViewSpace, 902 RayInfoContainer &rays); 904 SubdivisionCandidate *PrepareConstruction( 905 const VssRayContainer &sampleRays, 906 AxisAlignedBox3 *forcedViewSpace, 907 RayInfoContainer &rays); 908 909 /** Add pvs contribution of this ray. 910 */ 911 int EvalPvsContribution(const VssRay &ray, const bool isTermination) const; 903 912 904 913 protected: 905 906 914 907 915 /// pointer to the hierarchy of view cells 908 916 ViewCellsTree *mViewCellsTree; 909 917 910 OspTree *mOspTree; 911 912 bool mUseKdPvsForHeuristics; 913 bool mStoreKdPvs; 914 918 HierarchyManager *mHierarchyManager; 919 //OspTree *mOspTree; 920 //bool mUseKdPvsForHeuristics; 921 915 922 ViewCellsManager *mViewCellsManager; 916 923
Note: See TracChangeset
for help on using the changeset viewer.