Changeset 1233 for GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.h
- Timestamp:
- 08/20/06 22:48:01 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.h
r1201 r1233 156 156 157 157 158 struct VspBspS plitCandidate158 struct VspBspSubdivisionCandidate 159 159 { 160 160 /// the current split plane … … 172 172 float mRenderCostDecr; 173 173 174 VspBspS plitCandidate(): mPriority(0), mRenderCostDecr(0)174 VspBspSubdivisionCandidate(): mPriority(0), mRenderCostDecr(0) 175 175 {}; 176 176 177 VspBspS plitCandidate(const Plane3 &plane, const VspBspTraversalData &tData):177 VspBspSubdivisionCandidate(const Plane3 &plane, const VspBspTraversalData &tData): 178 178 mSplitPlane(plane), mParentData(tData), mPriority(0), mRenderCostDecr(0) 179 179 {} … … 190 190 } 191 191 192 friend bool operator<(const VspBspS plitCandidate &a, const VspBspSplitCandidate &b)192 friend bool operator<(const VspBspSubdivisionCandidate &a, const VspBspSubdivisionCandidate &b) 193 193 { 194 194 return a.GetPriority() < b.GetPriority(); … … 196 196 }; 197 197 198 typedef std::priority_queue<VspBspS plitCandidate> VspBspSplitQueue;198 typedef std::priority_queue<VspBspSubdivisionCandidate> VspBspSplitQueue; 199 199 200 200 /** Default constructor creating an empty tree. … … 402 402 /** Evaluates candidate for splitting. 403 403 */ 404 void EvalS plitCandidate(VspBspSplitCandidate &splitData);404 void EvalSubdivisionCandidate(VspBspSubdivisionCandidate &splitData); 405 405 406 406 /** Computes priority of the traversal data and stores it in tData. … … 461 461 */ 462 462 BspNode *Subdivide(VspBspSplitQueue &tQueue, 463 VspBspS plitCandidate &splitCandidate);463 VspBspSubdivisionCandidate &splitCandidate); 464 464 465 465 /** Constructs the tree from the given traversal data. … … 563 563 @param splitCandidates returns sorted list of split candidates 564 564 */ 565 void SortS plitCandidates(const RayInfoContainer &rays,565 void SortSubdivisionCandidates(const RayInfoContainer &rays, 566 566 const int axis, 567 567 float minBand, … … 732 732 733 733 /// sorted split candidates used for sweep-heuristics 734 vector<SortableEntry> *mLocalS plitCandidates;734 vector<SortableEntry> *mLocalSubdivisionCandidates; 735 735 736 736 /// box around the whole view domain
Note: See TracChangeset
for help on using the changeset viewer.