Changeset 975 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsParser.cpp
- Timestamp:
- 05/22/06 18:32:12 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsParser.cpp
r974 r975 83 83 , mBoundingBoxConverter(bconverter) 84 84 , mEnvironment(env) 85 {Debug << "here22" << endl; 86 // mObjects = objects; 85 { 87 86 } 88 87 … … 117 116 else 118 117 { 119 if (element == "Interior")118 if (element == "Interior") 120 119 EndBspInterior(); 121 120 } … … 127 126 // go one up in the tree 128 127 if (mCurrentBspNode->GetParent()) 129 { Debug << " öaaaaaaaaaaaa]";128 { Debug << "]"; 130 129 mCurrentBspNode = mCurrentBspNode->GetParent(); 131 130 } … … 153 152 // sort view cells to help associating view cells according to their id 154 153 stable_sort(mViewCells.begin(), mViewCells.end(), vlt); 154 mParseViewCells = false; 155 155 } 156 156 … … 165 165 mBoundingBoxConverter->IdentifyObjects(mIBoundingBoxes, *mObjects); 166 166 167 Debug << "\nconverted bounding boxes to objects in "167 Debug << "\nconverted bounding boxes to objects in " 168 168 << TimeDiff(startTime, GetTime()) * 1e-3 << " secs" << endl; 169 169 } … … 210 210 void ViewCellsParseHandlers::startElement(const XMLCh* const name, 211 211 AttributeList& attributes) 212 { Debug << "here722" << endl;212 { 213 213 StrX lname(name); 214 214 string element(lname.LocalForm()); 215 215 216 // decides the used view cell hierarchy 216 217 217 if (element == "ViewCells") 218 218 { … … 221 221 } 222 222 223 if (element == "Hierarchy") 224 { 225 Debug << "parsing spatial hierarchy" << endl; 226 mParseViewCells = false; 223 // decides about the view cell hierarchy 224 if (element == "HierarchyType") 225 //if (element == "Hierarchy") 226 { 227 //Debug << "parsing spatial hierarchy" << endl; 228 //mParseViewCells = false; 227 229 StartHierarchy(attributes); 228 230 } … … 242 244 } 243 245 244 // use different methods for the given view cell hierarchy types246 245 247 if (!mParseViewCells) 246 248 { 249 //-- use different methods for the given view cell hierarchy types 247 250 if (mViewCellsManager) 248 251 { … … 262 265 else 263 266 { 267 // interiors + leaves interpreted view cells else 264 268 if (element == "Interior") 265 269 { … … 620 624 mViewCellsManager = new BspViewCellsManager(mBspTree, mEnvironment); 621 625 } 622 else if (strcmp(name, "vspBspTree") == 0) 623 { 624 Debug << "view cell type: VspBsp" << endl; 625 626 mVspBspTree = new VspBspTree(); 627 //mCurrentBspNode = mVspBspTree->GetRoot(); 628 mViewCellsManager = new VspBspViewCellsManager(mVspBspTree, mEnvironment); 629 630 mVspBspTree->mBox = mViewSpaceBox; 631 } 626 632 627 else if (strcmp(name, "vspKdTree") == 0) 633 628 { … … 637 632 mViewCellsManager = new VspKdViewCellsManager(mVspKdTree, mEnvironment); 638 633 } 639 else 640 { 641 cerr << "Wrong view cells type: " << name << endl; 642 exit(1); 634 else // vspBspTree 635 { 636 Debug << "view cell type: VspBsp" << endl; 637 638 mVspBspTree = new VspBspTree(); 639 //mCurrentBspNode = mVspBspTree->GetRoot(); 640 mViewCellsManager = new VspBspViewCellsManager(mVspBspTree, mEnvironment); 641 642 mVspBspTree->mBox = mViewSpaceBox; 643 643 } 644 644 … … 720 720 } 721 721 722 Debug << "here2" << endl;723 722 // 724 723 // Create a SAX parser object. Then, according to what we were told on … … 759 758 760 759 GzFileInputSource isource(myFilePath); 761 Debug << "here4" << endl;762 760 parser->parse(isource); 763 761
Note: See TracChangeset
for help on using the changeset viewer.