Changeset 938 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsParser.cpp
- Timestamp:
- 05/10/06 08:05:24 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsParser.cpp
r931 r938 65 65 // StdInParseHandlers: Constructors and Destructor 66 66 // --------------------------------------------------------------------------- 67 ViewCellsParseHandlers::ViewCellsParseHandlers(ObjectContainer *objects, BoundingBoxConverter *bconverter): 67 ViewCellsParseHandlers::ViewCellsParseHandlers(ObjectContainer *objects, 68 BoundingBoxConverter *bconverter, 69 Environment *env): 68 70 mElementCount(0) 69 71 , mAttrCount(0) … … 79 81 , mObjects(objects) 80 82 , mBoundingBoxConverter(bconverter) 83 , mEnvironment(env) 81 84 { 82 85 // mObjects = objects; … … 102 105 EndViewCells(); 103 106 107 if (element == "BoundingBoxes") 108 EndBoundingBoxes(); 109 110 // inside the view cell description 104 111 if (mParseViewCells) 105 112 { … … 150 157 void ViewCellsParseHandlers::EndBoundingBoxes() 151 158 { 152 // bounding boxes gathered: associate object ids with bounding boxes 159 // all bounding boxes gathered in this step => 160 // associate object ids with bounding boxes 153 161 if (mBoundingBoxConverter) 154 162 mBoundingBoxConverter->IdentifyObjects(mIBoundingBoxes, *mObjects); … … 605 613 //mCurrentBspNode = mBspTree->GetRoot(); 606 614 607 mViewCellsManager = new BspViewCellsManager(mBspTree );615 mViewCellsManager = new BspViewCellsManager(mBspTree, mEnvironment); 608 616 } 609 617 else if (strcmp(name, "vspBspTree") == 0) … … 613 621 mVspBspTree = new VspBspTree(); 614 622 //mCurrentBspNode = mVspBspTree->GetRoot(); 615 mViewCellsManager = new VspBspViewCellsManager(mVspBspTree );623 mViewCellsManager = new VspBspViewCellsManager(mVspBspTree, mEnvironment); 616 624 617 625 mVspBspTree->mBox = mViewSpaceBox; … … 622 630 // TODO 623 631 mVspKdTree = new VspKdTree(); 624 mViewCellsManager = new VspKdViewCellsManager(mVspKdTree );632 mViewCellsManager = new VspKdViewCellsManager(mVspKdTree, mEnvironment); 625 633 } 626 634 else … … 692 700 ViewCellsManager **viewCells, 693 701 ObjectContainer *objects, 694 BoundingBoxConverter *bconverter) 702 BoundingBoxConverter *bconverter, 703 Environment *env) 695 704 { 696 705 // Initialize the XML4C system … … 724 733 // to do. 725 734 // 726 ViewCellsParseHandlers handler(objects, bconverter );735 ViewCellsParseHandlers handler(objects, bconverter, env); 727 736 parser->setDocumentHandler(&handler); 728 737 parser->setErrorHandler(&handler);
Note: See TracChangeset
for help on using the changeset viewer.