Revision 316,
718 bytes
checked in by mattausch, 19 years ago
(diff) |
queries are realized as templates
|
Rev | Line | |
---|
[65] | 1 | #include "PreprocessingManager.h" |
---|
| 2 | |
---|
| 3 | namespace GtpVisibility { |
---|
| 4 | |
---|
[71] | 5 | PreprocessingManager::PreprocessingManager(HierarchyInterface *hierarchyInterface) |
---|
| 6 | { |
---|
| 7 | } |
---|
| 8 | |
---|
| 9 | PreprocessingManager::~PreprocessingManager() |
---|
| 10 | { |
---|
| 11 | } |
---|
| 12 | |
---|
| 13 | bool PreprocessingManager::GetPVS(const Vector3 ¢er, |
---|
| 14 | const float radius, |
---|
[316] | 15 | NodeInfoContainer *visibleNodes, |
---|
| 16 | MeshInfoContainer *visibleMeshes) |
---|
[71] | 17 | { |
---|
[65] | 18 | vector<int> viewCellIds; |
---|
[71] | 19 | if (LocateViewCellIds(center, radius, &viewCellIds)) |
---|
| 20 | { |
---|
| 21 | for (vector<int>::iterator ci = viewCellIds.begin(); ci != viewCellIds.end(); ci++) |
---|
| 22 | { |
---|
| 23 | AddViewCellPVS(*ci, visibleNodes, visibleMeshes ); |
---|
| 24 | // remove duplicates of the PVS entries if any? |
---|
| 25 | } |
---|
| 26 | return true; |
---|
[65] | 27 | } |
---|
| 28 | return false; |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.