source: GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreBvHierarchySceneNode.h @ 2280

Revision 2280, 1.5 KB checked in by mattausch, 18 years ago (diff)

removed dependency on ogre in gtpvisibility

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 _OgreBvHierarchySceneNode_H__
11#define _OgreBvHierarchySceneNode_H__
12
13#include <OgreSceneNode.h>
14#include "OgreBvhRenderable.h"
15
16namespace Ogre
17{
18
19        class BvHierarchySceneNode : public SceneNode, public BvhRenderable
20        {
21        public:
22                BvHierarchySceneNode(SceneManager *creator):
23                  SceneNode(creator) {};
24
25                BvHierarchySceneNode(SceneManager *creator, const String& name):
26                  SceneNode(creator, name) {};
27
28                ~BvHierarchySceneNode() {};
29
30                // gather info for kd-tree creation
31                virtual void computeScene(BvhPlaneEventList& events, AxisAlignedBox& aabb, int& nObjects, bool includeChildren = true);
32
33                // add all contained objects to render queue
34                virtual void queueObjects(Camera* cam, RenderQueue* queue, bool onlyShadowCasters);
35
36                // place all entities in geometry queue (for CHC)
37                virtual void getGeometryList(GeometryVector *geometryList);
38
39                // return a bounding box enclosing all objects
40                virtual AxisAlignedBox getBoundingBox(void) const;
41
42                // DEBUG
43                String dumpToString(void);
44        protected:
45                virtual void _updateBounds(void);
46
47                typedef std::set<String> StringSet;
48
49                static StringSet& getExcludedMovables(void);
50        };
51
52} // namespace Ogre
53
54#endif // _OgreBvHierarchySceneNode_H__
Note: See TracBrowser for help on using the repository browser.