Changeset 1999 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsParser.cpp
- Timestamp:
- 01/20/07 00:14:25 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsParser.cpp
r1928 r1999 883 883 884 884 Debug << "exchanging boxes" << endl; 885 int i = 0;885 int i = 0; 886 886 // remove view cells and exchange them with the 887 887 // view cells specialized for the current hierarchy node type … … 910 910 } 911 911 912 // delete old view cell 912 913 DEL_PTR(vc); 914 913 915 // (*vit).second = bspVc; 914 916 (*vit) = bspVc; … … 924 926 mVspTree->mBoundingBox = mViewSpaceBox; 925 927 926 // ViewCellsMap::iterator vit, vit_end = mViewCells.end(); 927 ViewCellContainer::iterator vit, vit_end = mViewCells.end(); 928 // ViewCellsMap::iterator vit, vit_end = mViewCells.end(); 929 ViewCellContainer::iterator vit, vit_end = mViewCells.end(); 930 928 931 // reset view cells using the current node type 929 932 for (vit = mViewCells.begin(); vit != vit_end; ++ vit) 930 933 { 931 934 //ViewCell *vc = (*vit).second; 932 ViewCell *vc = (*vit); 935 ViewCell *vc = (*vit); 936 937 if (!vc->IsLeaf()) // exchange only leaves 938 continue; 939 933 940 VspViewCell *vspVc = new VspViewCell(); 941 934 942 vspVc->SetPvs(vc->GetPvs()); 935 943 vspVc->SetId(vc->GetId()); 936 937 if (!vc->IsLeaf()) // exchange only leaves938 continue;939 944 940 945 if (vc->IsRoot()) … … 947 952 } 948 953 949 //DEL_PTR(vc); 954 // exchange view cell with new one 955 DEL_PTR(vc); 956 950 957 //(*vit).second = vspVc; 951 958 (*vit) = vspVc;
Note: See TracChangeset
for help on using the changeset viewer.