Ignore:
Timestamp:
01/22/07 20:25:06 (17 years ago)
Author:
bittner
Message:

pvs efficiency tuning

File:
1 edited

Legend:

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

    r2003 r2015  
    235235        /** @return false since it is an interior node  
    236236        */ 
    237         bool IsLeaf() const; 
     237  bool IsLeaf() const { 
     238        return false;  
     239  } 
     240 
    238241 
    239242        int Type() const; 
    240243 
    241         VspNode *GetBack(); 
    242         VspNode *GetFront(); 
     244  VspNode *GetBack() { 
     245        return mBack; 
     246  } 
     247 
     248 
     249  VspNode *GetFront() { 
     250        return mFront; 
     251  } 
    243252 
    244253        /** Returns split plane. 
    245254        */ 
    246         AxisAlignedPlane GetPlane() const; 
     255  AxisAlignedPlane GetPlane() const { 
     256        return mPlane; 
     257  } 
     258   
    247259 
    248260        /** Returns position of split plane. 
    249261        */ 
    250         float GetPosition() const; 
     262  float GetPosition() const { 
     263        return mPlane.mPosition; 
     264  } 
    251265 
    252266        /** Returns split axis. 
    253267        */ 
    254         int GetAxis() const; 
     268  int GetAxis() const { 
     269        return mPlane.mAxis; 
     270  } 
    255271 
    256272        /** Replace front or back child with new child. 
     
    308324        /** @return true since it is an interior node  
    309325        */ 
    310         bool IsLeaf() const; 
     326  bool IsLeaf() const { 
     327        return true; 
     328  } 
    311329         
    312330        int Type() const; 
     
    314332        /** Returns pointer of view cell. 
    315333        */ 
    316         ViewCellLeaf *GetViewCell() const; 
     334  ViewCellLeaf *GetViewCell() const { 
     335        return mViewCell; 
     336  } 
     337 
    317338        /** Sets pointer to view cell. 
    318339        */ 
Note: See TracChangeset for help on using the changeset viewer.