Rev | Line | |
---|
[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, |
---|
[144] | 13 | bool relativeVisibility) |
---|
[65] | 14 | { |
---|
[143] | 15 | visibleNodes->push_back(NodeInfo(mHierarchyInterface->GetSceneRoot(), 0, 0)); |
---|
[65] | 16 | |
---|
| 17 | // HierarchyInterface::MeshIterator *mi = |
---|
| 18 | // hierarchyInterface->GetMeshIterator(hierarchyInterface->GetRoot()); |
---|
| 19 | |
---|
| 20 | // for (; mi(); mi++) |
---|
| 21 | // visibleGeometry.push_back(MeshInfo(*mi, 1.0f)); |
---|
| 22 | } |
---|
| 23 | |
---|
| 24 | /** |
---|
| 25 | Uses the specified point to execute the visibility query in all directions |
---|
| 26 | */ |
---|
| 27 | void |
---|
| 28 | DummyQueryManager::ComputeFromPointVisibility(const Vector3 &point, |
---|
| 29 | InfoContainer<NodeInfo> *visibleNodes, |
---|
| 30 | InfoContainer<MeshInfo> *visibleGeometry, |
---|
[144] | 31 | bool relativeVisibility) |
---|
[65] | 32 | { |
---|
[143] | 33 | visibleNodes->push_back(NodeInfo(mHierarchyInterface->GetSceneRoot(), 0, 0)); |
---|
[65] | 34 | |
---|
| 35 | // HierarchyInterface::MeshIterator *mi = |
---|
| 36 | // hierarchyInterface->GetMeshIterator(hierarchyInterface->GetRoot()); |
---|
| 37 | |
---|
| 38 | // for (; mi(); mi++) |
---|
| 39 | // visibleGeometry.push_back(MeshInfo(*mi, 1.0f)); |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.