[65] | 1 | #ifndef _VisibilityDummyQueryManager_H__ |
---|
| 2 | #define _VisibilityDummyQueryManager_H__ |
---|
| 3 | |
---|
| 4 | #include "VisibilityInfo.h" |
---|
| 5 | #include "QueryManager.h" |
---|
| 6 | |
---|
| 7 | namespace GtpVisibility { |
---|
| 8 | /** This implements dummy visibility queries. The queries return only the root of the |
---|
| 9 | hierarchy as visible node. |
---|
| 10 | */ |
---|
| 11 | class DummyQueryManager : public QueryManager |
---|
| 12 | { |
---|
| 13 | public: |
---|
| 14 | /** Constructor taking a scene traverser for a specific type of hierarchyInterface |
---|
| 15 | as argument. |
---|
| 16 | */ |
---|
| 17 | DummyQueryManager( HierarchyInterface *hierarchyInterface ): |
---|
[174] | 18 | QueryManager(hierarchyInterface, 0) {} |
---|
[65] | 19 | |
---|
| 20 | /** |
---|
| 21 | @sa QueryManager::ComputeCameraVisibility() |
---|
| 22 | */ |
---|
| 23 | virtual void |
---|
| 24 | ComputeCameraVisibility(const Camera &camera, |
---|
[316] | 25 | NodeInfoContainer *visibleNodes, |
---|
| 26 | MeshInfoContainer *visibleGeometry, |
---|
| 27 | PatchInfoContainer *visiblePatches, |
---|
[144] | 28 | bool relativeVisibility = false ); |
---|
[65] | 29 | |
---|
| 30 | /** |
---|
| 31 | @sa QueryManager::ComputeFromPointVisibility() |
---|
| 32 | */ |
---|
| 33 | virtual void |
---|
| 34 | ComputeFromPointVisibility(const Vector3 &point, |
---|
[316] | 35 | NodeInfoContainer *visibleNodes, |
---|
| 36 | MeshInfoContainer *visibleGeometry, |
---|
| 37 | PatchInfoContainer *visiblePatches, |
---|
[144] | 38 | bool relativeVisibility = false |
---|
[65] | 39 | ); |
---|
| 40 | |
---|
| 41 | }; |
---|
| 42 | |
---|
| 43 | }; |
---|
| 44 | #endif // VisibilitySummyQueryManager |
---|