Changeset 2547 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 08/22/07 14:27:41 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r2544 r2547 1021 1021 if (!Debug.is_open()) Debug.open("debug.log"); 1022 1022 1023 // give just an empty container as parameter: 1024 // this loading function is used in the engine, thus it 1025 // does not need to load the entities the preprocessor works on 1026 ObjectContainer preprocessorObjects; 1027 1028 return LoadViewCells(filename, 1029 pvsObjects, 1030 preprocessorObjects, 1031 finalizeViewCells, 1032 bconverter); 1033 } 1034 1023 1024 if (strstr(filename.c_str(), ".bn")) 1025 { 1026 Debug << "binary view cells format detected" << endl; 1027 1028 return LoadViewCellsBinary(filename, 1029 pvsObjects, 1030 finalizeViewCells, 1031 bconverter); 1032 } 1033 else 1034 { 1035 Debug << "xml view cells format detected" << endl; 1036 1037 // give just an empty container as parameter: 1038 // this loading function is used in the engine, thus it 1039 // does not need to load the entities the preprocessor works on 1040 ObjectContainer preprocessorObjects; 1041 1042 return LoadViewCells(filename, 1043 pvsObjects, 1044 preprocessorObjects, 1045 finalizeViewCells, 1046 bconverter); 1047 } 1048 } 1035 1049 1036 1050 void ViewCellsManager::LoadIndexedBoundingBoxesBinary(IN_STREAM &stream, IndexedBoundingBoxContainer &iboxes) … … 7110 7124 7111 7125 7112 7113 ViewCellsManager *LoadViewCellsBinary(const string &filename, 7114 ObjectContainer &pvsObjects, 7115 bool finalizeViewCells, 7116 BoundingBoxConverter *bconverter) 7117 { 7118 if (!Debug.is_open()) Debug.open("debug.log"); 7119 7126 ViewCellsManager *ViewCellsManager::LoadViewCellsBinary(const string &filename, 7127 ObjectContainer &pvsObjects, 7128 bool finalizeViewCells, 7129 BoundingBoxConverter *bconverter) 7130 { 7120 7131 IN_STREAM stream(filename.c_str()); 7121 7132 … … 7142 7153 } 7143 7154 7144 // sort objects by id7145 //sort(pvsObjects.begin(), pvsObjects.end(), ilt);7146 7147 7155 7148 7156 ObjectContainer pvsLookup; … … 7188 7196 7189 7197 Debug << "loading the view space partition tree" << endl; 7190 VspTree *vspTree = new VspTree(); 7191 7192 vspTree->mBoundingBox = viewSpaceBox; 7198 VspTree *vspTree = new VspTree(viewSpaceBox); 7193 7199 7194 7200 if (!vspTree->ImportBinary(stream))
Note: See TracChangeset
for help on using the changeset viewer.