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 | InfoContainer<GtpVisibility::PatchInfo> *visiblePatches, |
---|
28 | bool relativeVisibility = false ); |
---|
29 | |
---|
30 | /** |
---|
31 | @sa QueryManager::ComputeFromPointVisibility() |
---|
32 | */ |
---|
33 | virtual void |
---|
34 | ComputeFromPointVisibility(const Vector3 &point, |
---|
35 | InfoContainer<NodeInfo> *visibleNodes, |
---|
36 | InfoContainer<MeshInfo> *visibleGeometry, |
---|
37 | InfoContainer<GtpVisibility::PatchInfo> *visiblePatches, |
---|
38 | bool relativeVisibility = false |
---|
39 | ); |
---|
40 | |
---|
41 | }; |
---|
42 | |
---|
43 | }; |
---|
44 | #endif // VisibilitySummyQueryManager |
---|