Changeset 2559 for GTP/trunk/Lib/Vis/Preprocessing/src/RayCaster.h
- Timestamp:
- 11/02/07 09:00:20 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/RayCaster.h
r2543 r2559 78 78 79 79 // pool of vss rays to be used in one pass of the sampling 80 struct VssRayPool { 80 struct VssRayPool 81 { 81 82 VssRayPool(): mRays(NULL), mIndex(0), mNumber(0) 82 83 {} … … 87 88 } 88 89 89 void Reserve(const int number) { 90 void Reserve(const int number) 91 { 90 92 DEL_PTR(mRays); 91 93 mRays = new VssRay[number]; … … 93 95 } 94 96 95 void Clear() { 97 void Clear() 98 { 96 99 mIndex = 0; 97 100 } 98 VssRay *Alloc() { 101 102 VssRay *Alloc() 103 { 99 104 // reset pool 100 105 if (mIndex == mNumber) … … 110 115 VssRayPool mVssRayPool; 111 116 112 void ReserveVssRayPool(const int n) { 117 void ReserveVssRayPool(const int n) 118 { 113 119 mVssRayPool.Reserve(n); 114 120 } 115 121 116 void InitPass() { 122 void InitPass() 123 { 117 124 mVssRayPool.Clear(); 118 125 }
Note: See TracChangeset
for help on using the changeset viewer.