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