Changeset 1141 for GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.h
- Timestamp:
- 07/18/06 19:03:14 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.h
r1139 r1141 33 33 class KdLeaf; 34 34 class OspTree; 35 class KdIntersectable; 36 35 37 36 38 … … 461 463 #endif 462 464 465 typedef map<KdNode *, KdIntersectable *> KdIntersectableMap; 466 463 467 typedef FlexibleHeap<SplitCandidate *> SplitQueue; 464 468 … … 980 984 981 985 */ 982 void Add ToPvs(VspLeaf *leaf,986 void AddSamplesToPvs(VspLeaf *leaf, 983 987 const RayInfoContainer &rays, 984 988 float &sampleContributions, 985 989 int &contributingSamples); 990 991 bool AddKdLeafToPvs(KdLeaf *leaf, ViewCell *vc, float &pvs, float &contribution); 986 992 987 993 /** Propagates valid flag up the tree. … … 1018 1024 protected: 1019 1025 1020 bool mUseKdPvs; 1021 1022 enum {PER_OBJECT, PER_KDLEAF}; 1026 bool mUseKdPvsForHeuristics; 1027 bool mStoreKdPvs; 1023 1028 1024 1029 ViewCellsManager *mViewCellsManager; … … 1036 1041 /// box around the whole view domain 1037 1042 AxisAlignedBox3 mBoundingBox; 1038 1039 1043 1040 1044 … … 1339 1343 #endif 1340 1344 1345 /** Returns or creates a new intersectable for use in a kd based pvs. 1346 The OspTree is responsible for destruction of the intersectable. 1347 */ 1348 KdIntersectable *GetOrCreateKdIntersectable(KdNode *node); 1349 1341 1350 /** Collects rays stored in the leaves. 1342 1351 */ … … 1549 1558 float &pFront, 1550 1559 float &pBack); 1551 /** Adds ray sample contributions to the PVS. 1552 @param sampleContributions the number contributions of the samples 1553 @param contributingSampels the number of contributing rays 1554 1555 */ 1556 void AddToPvs(VspLeaf *leaf, 1557 const RayInfoContainer &rays, 1558 float &sampleContributions, 1559 int &contributingSamples); 1560 1560 1561 1561 /** Propagates valid flag up the tree. 1562 1562 */ … … 1667 1667 1668 1668 1669 1670 1669 //-- split heuristics based parameters 1671 1670 … … 1698 1697 /// weight between render cost decrease and node render cost 1699 1698 float mRenderCostDecreaseWeight; 1699 1700 /// stores the kd node intersectables used for pvs 1701 KdIntersectableMap mKdIntersectables; 1700 1702 }; 1701 1703
Note: See TracChangeset
for help on using the changeset viewer.