Changeset 419 for trunk/VUT/GtpVisibilityPreprocessor/src/Preprocessor.cpp
- Timestamp:
- 11/17/05 02:26:30 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Preprocessor.cpp
r416 r419 30 30 { 31 31 X3dParser parser; 32 int maxViewCells = 0;32 33 33 environment->GetFloatValue("ViewCells.height", parser.mViewCellHeight); 34 environment->GetIntValue("ViewCells.maxViewCells", maxViewCells); 35 36 bool loaded = parser.ParseFile(filename, mViewCells); 37 38 if (maxViewCells > 0) 39 { 40 while (mViewCells.size() > maxViewCells) 41 { 42 ViewCell *vc = mViewCells.back(); 43 DEL_PTR(vc); 44 mViewCells.pop_back(); 45 } 46 } 47 return loaded; 34 35 return parser.ParseFile(filename, mViewCells); 48 36 } 49 37 … … 121 109 } 122 110 123 bool124 Preprocessor::GenerateViewCells()125 {126 // TODO127 // HACK: derive view cells from the scene objects128 ObjectContainer objects;129 130 int maxViewCells = 0;131 environment->GetIntValue("ViewCells.maxViewCells", maxViewCells);132 133 mSceneGraph->CollectObjects(&objects);134 ViewCell::DeriveViewCells(objects, mViewCells, maxViewCells);135 136 return true;137 }138 139 111 int 140 SplitFilenames(const string str, 141 vector<string> &filenames) 112 SplitFilenames(const string str, vector<string> &filenames) 142 113 { 143 114 int pos = 0;
Note: See TracChangeset
for help on using the changeset viewer.