Ignore:
Timestamp:
06/21/06 09:44:39 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.cpp

    r1016 r1027  
    6060 
    6161 
    62 bool BspNode::IsRoot() const  
    63 { 
    64         return mParent == NULL; 
    65 } 
    66  
    67  
    68 BspInterior *BspNode::GetParent()  
    69 {  
    70         return mParent;  
    71 } 
    72  
    73  
    74 void BspNode::SetParent(BspInterior *parent) 
    75 { 
    76         mParent = parent; 
    77 } 
    78  
    79  
    8062bool BspNode::IsSibling(BspNode *n) const 
    8163{ 
     
    127109} 
    128110 
    129 bool BspInterior::IsLeaf() const 
    130 {  
    131         return false;  
    132 } 
    133  
    134 BspNode *BspInterior::GetBack()  
    135 { 
    136         return mBack; 
    137 } 
    138  
    139 BspNode *BspInterior::GetFront()  
    140 { 
    141         return mFront; 
    142 } 
    143  
    144 Plane3 BspInterior::GetPlane() const 
    145 { 
    146         return mPlane; 
    147 } 
    148  
    149 void BspInterior::ReplaceChildLink(BspNode *oldChild, BspNode *newChild)  
    150 { 
    151         if (mBack == oldChild) 
    152                 mBack = newChild; 
    153         else 
    154                 mFront = newChild; 
    155 } 
    156111 
    157112void BspInterior::SetupChildLinks(BspNode *b, BspNode *f)  
     
    193148BspNode(parent), mViewCell(viewCell), mPvs(NULL) 
    194149{ 
    195 } 
    196  
    197 ViewCellLeaf *BspLeaf::GetViewCell() const 
    198 { 
    199         return mViewCell; 
    200 } 
    201  
    202 void BspLeaf::SetViewCell(ViewCellLeaf *viewCell) 
    203 { 
    204         mViewCell = viewCell; 
    205 } 
    206  
    207  
    208 bool BspLeaf::IsLeaf() const  
    209 {  
    210         return true;  
    211150} 
    212151 
     
    1010949                // generate new view cell for each leaf 
    1011950                if (mGenerateViewCells) 
     951                { 
    1012952                        viewCell = new BspViewCell(); 
     953                } 
    1013954                else 
     955                { 
    1014956                        // add view cell to leaf 
    1015957                        viewCell = dynamic_cast<BspViewCell *>(tData.mViewCell); 
    1016                  
     958                } 
     959 
    1017960                leaf->SetViewCell(viewCell); 
    1018961                viewCell->mLeaf = leaf; 
     
    1036979                } 
    1037980 
    1038                 EvaluateLeafStats(tData); 
     981                if (1) 
     982                        EvaluateLeafStats(tData); 
    1039983                 
    1040984                //-- clean up 
     
    1045989                CLEAR_CONTAINER(*tData.mRays); 
    1046990 
    1047                 DEL_PTR(tData.mPolygons); 
    1048                 DEL_PTR(tData.mRays); 
    1049                 DEL_PTR(tData.mGeometry); 
     991                delete tData.mPolygons; 
     992                delete tData.mRays; 
     993                delete tData.mGeometry; 
    1050994 
    1051995                return leaf; 
Note: See TracChangeset for help on using the changeset viewer.