[154] | 1 | #ifndef _OcclusionQueriesQueryManager_H__ |
---|
| 2 | #define _OcclusionQueriesQueryManager_H__ |
---|
| 3 | |
---|
| 4 | #include "OgrePlatformQueryManager.h" |
---|
| 5 | |
---|
| 6 | namespace Ogre {
|
---|
| 7 |
|
---|
| 8 | /**
|
---|
| 9 | Class which implements the QueryManager for Ogre scene queries.
|
---|
| 10 | */
|
---|
| 11 | class __declspec(dllexport) OcclusionQueriesQueryManager: public PlatformQueryManager
|
---|
| 12 | {
|
---|
| 13 | public:
|
---|
| 14 | /** Constructor taking a hierarchy interface as an argument. This allows to operate
|
---|
| 15 | onm different hierarchy types, while reusing the implementation of the query methods.
|
---|
| 16 | */
|
---|
| 17 | OcclusionQueriesQueryManager(PlatformHierarchyInterface *hierarchyInterface, Viewport *vp);
|
---|
| 18 |
|
---|
| 19 | void ComputeCameraVisibility(const Camera &camera,
|
---|
| 20 | InfoContainer<GtpVisibility::NodeInfo> *visibleNodes,
|
---|
| 21 | InfoContainer<GtpVisibility::MeshInfo> *visibleGeometry,
|
---|
| 22 | bool relativeVisibility = false);
|
---|
| 23 |
|
---|
| 24 | /**
|
---|
| 25 | Uses the specified point to execute the visibility query in all directions.
|
---|
| 26 | @sa ComputeCameraVisibility()
|
---|
| 27 | */
|
---|
| 28 | void ComputeFromPointVisibility(const Vector3 &point,
|
---|
| 29 | InfoContainer<GtpVisibility::NodeInfo> *visibleNodes,
|
---|
| 30 | InfoContainer<GtpVisibility::MeshInfo> *visibleGeometry,
|
---|
| 31 | bool relativeVisibility = false);
|
---|
| 32 |
|
---|
| 33 | bool ShootRay(const Ray &ray, std::vector<Mesh *> *visibleMeshes, bool isGlobalLine = false);
|
---|
| 34 | };
|
---|
| 35 |
|
---|
| 36 | } // namespace Ogre
|
---|
| 37 |
|
---|
| 38 | #endif // OcclusionQueriesQueryManager
|
---|