Ignore:
Timestamp:
01/22/07 23:35:03 (17 years ago)
Author:
mattausch
Message:

changed to static cast

File:
1 edited

Legend:

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

    r1933 r2017  
    17241724                if (!mNode->IsLeaf()) 
    17251725                { 
    1726                         VspInterior *interior = dynamic_cast<VspInterior *>(mNode); 
     1726                        VspInterior *interior = static_cast<VspInterior *>(mNode); 
    17271727 
    17281728                        tQueue.push(new VspNodeWrapper(interior->GetFront())); 
     
    17501750                if (!mNode->IsLeaf()) 
    17511751                { 
    1752                         BvhInterior *interior = dynamic_cast<BvhInterior *>(mNode); 
     1752                        BvhInterior *interior = static_cast<BvhInterior *>(mNode); 
    17531753 
    17541754                        tQueue.push(new BvhNodeWrapper(interior->GetFront())); 
     
    17771777                if (!mViewCell->IsLeaf()) 
    17781778                { 
    1779                         ViewCellInterior *interior = dynamic_cast<ViewCellInterior *>(mViewCell); 
     1779                        ViewCellInterior *interior = static_cast<ViewCellInterior *>(mViewCell); 
    17801780 
    17811781                        ViewCellContainer::const_iterator it, it_end = interior->mChildren.end(); 
     
    18191819                        { 
    18201820                                //cout << "1"; 
    1821                                 ViewCellWrapper *viewCellWrapper = dynamic_cast<ViewCellWrapper *>(nodeWrapper); 
     1821                                ViewCellWrapper *viewCellWrapper = static_cast<ViewCellWrapper *>(nodeWrapper); 
    18221822                                viewCells.push_back(viewCellWrapper->mViewCell); 
    18231823                        } 
     
    18251825                        { 
    18261826                                //cout << "0"; 
    1827                                 BvhNodeWrapper *bvhNodeWrapper = dynamic_cast<BvhNodeWrapper *>(nodeWrapper); 
     1827                                BvhNodeWrapper *bvhNodeWrapper = static_cast<BvhNodeWrapper *>(nodeWrapper); 
    18281828                                bvhNodes.push_back(bvhNodeWrapper->mNode); 
    18291829                        } 
     
    18541854                        cout << "error " << entry.mObject->Type() << endl; 
    18551855 
    1856                 BvhNode *intersect = dynamic_cast<BvhNode *>(entry.mObject); 
     1856                BvhNode *intersect = static_cast<BvhNode *>(entry.mObject); 
    18571857                BvhNode *activeNode; 
    18581858 
     
    18611861                { 
    18621862                        activeNode =  
    1863                                 dynamic_cast<BvhLeaf *>(intersect)->GetActiveNode(); 
     1863                                static_cast<BvhLeaf *>(intersect)->GetActiveNode(); 
    18641864                } 
    18651865                else 
     
    19211921                else if (!vc->IsLeaf()) // interior cells: go down to leaf level 
    19221922                { 
    1923                         ViewCellInterior *interior = dynamic_cast<ViewCellInterior *>(vc); 
     1923                        ViewCellInterior *interior = static_cast<ViewCellInterior *>(vc); 
    19241924                        ViewCellContainer::const_iterator it, it_end = interior->mChildren.end(); 
    19251925 
     
    19581958                { 
    19591959                        //cout <<" t"; 
    1960                         ViewCellInterior *interior = dynamic_cast<ViewCellInterior *>(vc); 
     1960                        ViewCellInterior *interior = static_cast<ViewCellInterior *>(vc); 
    19611961                        ViewCellContainer::const_iterator it, it_end = interior->mChildren.end(); 
    19621962 
     
    20002000                { 
    20012001                        //cout <<" t"; 
    2002                         ViewCellInterior *interior = dynamic_cast<ViewCellInterior *>(vc); 
     2002                        ViewCellInterior *interior = static_cast<ViewCellInterior *>(vc); 
    20032003                        ViewCellContainer::const_iterator it, it_end = interior->mChildren.end(); 
    20042004 
     
    20242024        else 
    20252025        { 
    2026                 ViewCellInterior *interior = dynamic_cast<ViewCellInterior *>(vc); 
     2026                ViewCellInterior *interior = static_cast<ViewCellInterior *>(vc); 
    20272027#if 0 
    20282028                ViewCellContainer::const_iterator it, it_end = interior->mChildren.end(); 
Note: See TracChangeset for help on using the changeset viewer.