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