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