Changeset 2161 for GTP/trunk/Lib/Vis/Preprocessing/src/RayCaster.h
- Timestamp:
- 02/23/07 13:54:56 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/RayCaster.h
r2077 r2161 79 79 // pool of vss rays to be used in one pass of the sampling 80 80 struct VssRayPool { 81 VssRayPool():mRays(NULL), mIndex(0), mNumber(0) {} 82 ~VssRayPool() { 83 if (mRays) 84 delete mRays; 81 VssRayPool(): mRays(NULL), mIndex(0), mNumber(0) 82 {} 83 84 ~VssRayPool() 85 { 86 DEL_PTR(mRays); 85 87 } 86 88 87 89 void Reserve(const int number) { 88 if (mRays)89 delete mRays;90 90 cout<<"here3"<<endl; 91 //DEL_PTR(mRays); 92 cout<<"here44"<<endl; 91 93 mRays = new VssRay[number]; 92 94 mNumber = number; … … 102 104 return mRays + mIndex ++; 103 105 } 104 106 protected: 105 107 VssRay *mRays; 106 108 int mIndex; … … 154 156 155 157 /** Checks if ray is valid. 156 I.e., the ray is in valid view space.157 @note: clamps the ray to valid view space.158 I.e., the ray is in valid view space. 159 @note: clamps the ray to valid view space. 158 160 */ 159 161 bool ValidateRay(const Vector3 &origin,
Note: See TracChangeset
for help on using the changeset viewer.