Ignore:
Timestamp:
02/23/07 13:54:56 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/RayCaster.h

    r2077 r2161  
    7979  // pool of vss rays to be used in one pass of the sampling 
    8080  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); 
    8587        } 
    8688         
    8789        void Reserve(const int number) { 
    88           if (mRays) 
    89                 delete mRays; 
    90          
     90                cout<<"here3"<<endl; 
     91        //DEL_PTR(mRays); 
     92        cout<<"here44"<<endl; 
    9193          mRays = new VssRay[number]; 
    9294          mNumber = number; 
     
    102104          return mRays + mIndex ++; 
    103105        } 
    104  
     106  protected: 
    105107        VssRay *mRays; 
    106108        int mIndex; 
     
    154156 
    155157  /** 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. 
    158160  */ 
    159161  bool ValidateRay(const Vector3 &origin, 
Note: See TracChangeset for help on using the changeset viewer.