Changeset 1259 for GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.h
- Timestamp:
- 08/22/06 22:48:02 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.h
r1239 r1259 39 39 class VspTree; 40 40 class KdTreeStatistics; 41 41 class BvHierarchy; 42 42 43 43 … … 86 86 class HierarchyManager 87 87 { 88 friend VspTree; 89 friend OspTree; 90 friend BvHierarchy; 91 88 92 public: 89 93 /** Constructor taking an object space partition and a view space partition tree. … … 112 116 AxisAlignedBox3 *forcedViewSpace); 113 117 114 public: 115 VspTree &mVspTree; 116 OspTree &mOspTree; 117 118 enum 119 { 120 NO_OBJ_SUBDIV, 121 KD_BASED_OBJ_SUBDIV, 122 BV_BASED_OBJ_SUBDIV 123 }; 124 125 /** The type of object space subdivison 126 */ 127 inline int GetObjectSpaceSubdivisonType() const 128 { 129 return mObjectSpaceSubdivisonType; 130 } 131 118 132 protected: 119 133 … … 143 157 void EvalSubdivisionStats(const SubdivisionCandidate &tData); 144 158 145 void AddSubdivisionStats(const int splits, 159 void AddSubdivisionStats( 160 const int splits, 146 161 const float renderCostDecr, 147 162 const float totalRenderCost); 148 163 164 void CollectObjectSpaceDirtyList(); 165 void CollectViewSpaceDirtyList(); 166 167 bool AddSampleToPvs(Intersectable *obj, 168 const float pdf, 169 float &contribution) const; 170 171 void CollectViewSpaceDirtyList(SubdivisionCandidateContainer &dirtyList); 172 void CollectObjectSpaceDirtyList(SubdivisionCandidateContainer &dirtyList); 173 149 174 150 175 protected: 176 177 int mObjectSpaceSubdivisonType; 178 179 VspTree *mVspTree; 180 OspTree *mOspTree; 181 BvHierarchy *mBvHierarchy; 151 182 152 183 AxisAlignedBox3 mBoundingBox;
Note: See TracChangeset
for help on using the changeset viewer.