Changeset 971 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsParser.cpp
- Timestamp:
- 05/22/06 07:53:18 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsParser.cpp
r955 r971 30 30 #include "VspKdTree.h" 31 31 #include "ViewCellsManager.h" 32 #include "GzFileInputSource.h" 32 33 33 34 namespace GtpVisibilityPreprocessor { … … 82 83 , mBoundingBoxConverter(bconverter) 83 84 , mEnvironment(env) 84 { 85 {Debug << "here22" << endl; 85 86 // mObjects = objects; 86 87 } … … 126 127 // go one up in the tree 127 128 if (mCurrentBspNode->GetParent()) 128 { cout<< "]";129 { Debug << "]"; 129 130 mCurrentBspNode = mCurrentBspNode->GetParent(); 130 131 } … … 136 137 // go one up in the tree 137 138 if (mCurrentViewCell->GetParent()) 138 { cout<< "]";139 { Debug << "]"; 139 140 mCurrentViewCell = mCurrentViewCell->GetParent(); 140 141 } … … 195 196 if (element == "Interior") 196 197 { 197 cout<< "[";198 Debug << "["; 198 199 StartBspInterior(attributes); 199 200 } … … 201 202 if (element == "Leaf") 202 203 { 203 cout<< "l";204 Debug << "l"; 204 205 StartBspLeaf(attributes); 205 206 } … … 209 210 void ViewCellsParseHandlers::startElement(const XMLCh* const name, 210 211 AttributeList& attributes) 211 { 212 { Debug << "here722" << endl; 212 213 StrX lname(name); 213 214 string element(lname.LocalForm()); 214 215 215 216 // decides the used view cell hierarchy 216 217 if (element == "ViewCells") 217 218 { 218 cout<< "parsing view cells" << endl;219 Debug << "parsing view cells" << endl; 219 220 mParseViewCells = true; 220 221 } … … 222 223 if (element == "Hierarchy") 223 224 { 224 cout<< "parsing spatial hierarchy" << endl;225 Debug << "parsing spatial hierarchy" << endl; 225 226 mParseViewCells = false; 226 227 StartHierarchy(attributes); … … 230 231 if (element == "ViewSpaceBox") 231 232 { 232 cout<< "v";233 Debug << "v"; 233 234 StartViewSpaceBox(attributes); 234 235 } … … 237 238 if (element == "BoundingBox") 238 239 { 239 cout<< "b";240 Debug << "b"; 240 241 StartBoundingBox(attributes); 241 242 } … … 263 264 if (element == "Interior") 264 265 { 265 cout<< "[";266 Debug << "["; 266 267 StartViewCellInterior(attributes); 267 268 } … … 269 270 if (element == "Leaf") 270 271 { 271 cout<< "l";272 Debug << "l"; 272 273 StartViewCellLeaf(attributes); 273 274 } … … 719 720 } 720 721 721 722 Debug << "here2" << endl; 722 723 // 723 724 // Create a SAX parser object. Then, according to what we were told on … … 754 755 { 755 756 const unsigned long startMillis = XMLPlatformUtils::getCurrentMillis(); 757 #if ZIPPED_VIEWCELLS 758 XMLCh *myFilePath = XMLString::transcode(filename.c_str()); 759 760 GzFileInputSource isource(myFilePath); 761 Debug << "here4" << endl; 762 parser->parse(isource); 763 764 #else 756 765 parser->parse(filename.c_str()); 757 //ogzstream stream; parser->parse(stream); 766 #endif 767 758 768 const unsigned long endMillis = XMLPlatformUtils::getCurrentMillis(); 759 769 duration = endMillis - startMillis;
Note: See TracChangeset
for help on using the changeset viewer.