source: GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreBvHierarchyCamera.h @ 1320

Revision 1320, 1.0 KB checked in by mattausch, 18 years ago (diff)
Line 
1/*
2-----------------------------------------------------------------------------
3This source file is part of the GameTools Project
4http://www.gametools.org
5
6Author: Martin Szydlowski
7-----------------------------------------------------------------------------
8*/
9
10#ifndef _OgreBvHierarchyCamera_H_
11#define _OgreBvHierarchyCamera_H_
12
13#include <OgreCamera.h>
14
15#define BVHCAMPTR_CAST(cam) (static_cast<BvHierarchyCamera *>(cam))
16
17namespace Ogre
18{
19
20class BvHierarchyCamera : public Camera
21{
22public:
23        enum NodeVisibility
24        {
25                BVHNV_NONE,
26                BVHNV_PART,
27                BVHNV_FULL
28        };
29
30        // default constructor
31        BvHierarchyCamera(const String& name, SceneManager *sm);
32        // default destructor
33        ~BvHierarchyCamera();
34
35        // regular visibility, like isVisible
36        NodeVisibility getVisibilitySimple(const AxisAlignedBox& box ) const;
37        // enhanced visibility
38        NodeVisibility getVisibilityEnhanced(const AxisAlignedBox& box) const;
39
40        // statistical info
41        mutable unsigned int mNumVisQueries;
42};
43
44} // namespace Ogre
45
46#endif // _OgreBvHierarchyCamera_H_
Note: See TracBrowser for help on using the repository browser.