[65] | 1 | #include "DummyQueryManager.h" |
---|
| 2 | |
---|
| 3 | |
---|
| 4 | namespace GtpVisibility { |
---|
| 5 | |
---|
| 6 | /** |
---|
| 7 | Uses explicit camera to execute the visibility query |
---|
| 8 | */ |
---|
| 9 | void |
---|
| 10 | DummyQueryManager::ComputeCameraVisibility(const Camera &camera, |
---|
| 11 | InfoContainer<NodeInfo> *visibleNodes, |
---|
| 12 | InfoContainer<MeshInfo> *visibleGeometry, |
---|
[159] | 13 | InfoContainer<GtpVisibility::PatchInfo> *visiblePatches, |
---|
[144] | 14 | bool relativeVisibility) |
---|
[65] | 15 | { |
---|
[155] | 16 | visibleNodes->push_back(NodeInfo(mHierarchyInterface->GetHierarchyRoot(), 0, 0)); |
---|
[65] | 17 | |
---|
| 18 | // HierarchyInterface::MeshIterator *mi = |
---|
| 19 | // hierarchyInterface->GetMeshIterator(hierarchyInterface->GetRoot()); |
---|
| 20 | |
---|
| 21 | // for (; mi(); mi++) |
---|
| 22 | // visibleGeometry.push_back(MeshInfo(*mi, 1.0f)); |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | /** |
---|
| 26 | Uses the specified point to execute the visibility query in all directions |
---|
| 27 | */ |
---|
| 28 | void |
---|
| 29 | DummyQueryManager::ComputeFromPointVisibility(const Vector3 &point, |
---|
| 30 | InfoContainer<NodeInfo> *visibleNodes, |
---|
| 31 | InfoContainer<MeshInfo> *visibleGeometry, |
---|
[159] | 32 | InfoContainer<GtpVisibility::PatchInfo> *visiblePatches, |
---|
[144] | 33 | bool relativeVisibility) |
---|
[65] | 34 | { |
---|
[155] | 35 | visibleNodes->push_back(NodeInfo(mHierarchyInterface->GetHierarchyRoot(), 0, 0)); |
---|
[65] | 36 | |
---|
| 37 | // HierarchyInterface::MeshIterator *mi = |
---|
| 38 | // hierarchyInterface->GetMeshIterator(hierarchyInterface->GetRoot()); |
---|
| 39 | |
---|
| 40 | // for (; mi(); mi++) |
---|
| 41 | // visibleGeometry.push_back(MeshInfo(*mi, 1.0f)); |
---|
| 42 | } |
---|
| 43 | |
---|
| 44 | }; |
---|