Ignore:
Timestamp:
11/15/05 01:42:05 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/VspKdTree.h

    r411 r412  
    6868   
    6969  // Constructor 
    70   VspKdStatistics() { 
    71     Reset(); 
     70  VspKdStatistics()  
     71  { 
     72          Reset(); 
    7273  } 
    7374 
     
    7677  int Leaves() const { return (nodes/2) + 1; } 
    7778 
    78   void Reset() { 
    79     nodes = 0; 
    80     for (int i=0; i<7; i++) 
    81       splits[i] = 0; 
    82     rays = queryDomains = 0; 
    83     rayRefs = 0; 
    84     maxDepthNodes = 0; 
    85     minPvsNodes = 0; 
    86     minRaysNodes = 0; 
    87     maxRayRefs = 0; 
    88     addedRayRefs = removedRayRefs = 0; 
    89                 initialPvsSize = 0; 
    90                 maxRayContribNodes = 0; 
    91                 minSizeNodes = 0; 
    92   } 
    93  
     79  void Reset()  
     80  { 
     81          nodes = 0; 
     82          for (int i=0; i<7; i++) 
     83                  splits[i] = 0; 
     84          rays = queryDomains = 0; 
     85          rayRefs = 0; 
     86          maxDepthNodes = 0; 
     87          minPvsNodes = 0; 
     88          minRaysNodes = 0;  
     89          maxRayRefs = 0; 
     90          addedRayRefs = removedRayRefs = 0; 
     91          initialPvsSize = 0; 
     92          maxRayContribNodes = 0; 
     93          minSizeNodes = 0; 
     94  } 
    9495   
    9596  void 
     
    558559        // axis aligned bounding box of directions 
    559560        AxisAlignedBox3 dirBBox; 
    560    
     561 
     562        const VspKdStatistics &GetStatistics() const { 
     563                return mStat; 
     564        } 
    561565        ///////////////////////////// 
    562566        // Construction parameters 
     
    616620         
    617621        ///////////////////////////// 
    618         VspKdStatistics stat; 
     622        VspKdStatistics mstat; 
    619623         
    620624        VspKdTree(); 
Note: See TracChangeset for help on using the changeset viewer.