[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 | */ |
---|
[2255] | 12 | class DummyQueryManager: public QueryManager |
---|
[2171] | 13 | { |
---|
| 14 | public: |
---|
[65] | 15 | /** Constructor taking a scene traverser for a specific type of hierarchyInterface |
---|
[2255] | 16 | as argument. |
---|
[65] | 17 | */ |
---|
| 18 | DummyQueryManager( HierarchyInterface *hierarchyInterface ): |
---|
[174] | 19 | QueryManager(hierarchyInterface, 0) {} |
---|
[65] | 20 | |
---|
[2280] | 21 | /** @sa QueryManager::ComputeCameraVisibility() |
---|
| 22 | */ |
---|
[2255] | 23 | virtual void ComputeCameraVisibility(const Camera &camera, |
---|
| 24 | NodeInfoContainer *visibleNodes, |
---|
| 25 | MeshInfoContainer *visibleGeometry, |
---|
| 26 | PatchInfoContainer *visiblePatches, |
---|
| 27 | const bool relativeVisibility, |
---|
| 28 | const bool approximateVisibility); |
---|
[65] | 29 | |
---|
[2280] | 30 | /** @sa QueryManager::ComputeFromPointVisibility() |
---|
[2255] | 31 | */ |
---|
[2171] | 32 | virtual void ComputeFromPointVisibility(const Vector3 &point, |
---|
| 33 | NodeInfoContainer *visibleNodes, |
---|
| 34 | MeshInfoContainer *visibleGeometry, |
---|
| 35 | PatchInfoContainer *visiblePatches, |
---|
[2255] | 36 | const bool relativeVisibility, |
---|
| 37 | const bool approximateVisibility); |
---|
[65] | 38 | }; |
---|
[2171] | 39 | |
---|
| 40 | } |
---|
[65] | 41 | #endif // VisibilitySummyQueryManager |
---|