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 | /** |
---|
22 | @sa QueryManager::ComputeCameraVisibility() |
---|
23 | */ |
---|
24 | virtual void ComputeCameraVisibility(const Camera &camera, |
---|
25 | NodeInfoContainer *visibleNodes, |
---|
26 | MeshInfoContainer *visibleGeometry, |
---|
27 | PatchInfoContainer *visiblePatches, |
---|
28 | bool relativeVisibility = false); |
---|
29 | |
---|
30 | /** |
---|
31 | @sa QueryManager::ComputeFromPointVisibility() |
---|
32 | */ |
---|
33 | virtual void ComputeFromPointVisibility(const Vector3 &point, |
---|
34 | NodeInfoContainer *visibleNodes, |
---|
35 | MeshInfoContainer *visibleGeometry, |
---|
36 | PatchInfoContainer *visiblePatches, |
---|
37 | bool relativeVisibility = false); |
---|
38 | }; |
---|
39 | |
---|
40 | } |
---|
41 | #endif // VisibilitySummyQueryManager |
---|