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

Revision 2280, 1.4 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 _OgreKdTreeSceneNode_H__
11#define _OgreKdTreeSceneNode_H__
12
13#include <OgreSceneNode.h>
14#include "OgreKdRenderable.h"
15
16namespace Ogre
17{
18
19        class KdTreeSceneNode : public SceneNode, public KdRenderable
20        {
21        public:
22                KdTreeSceneNode(SceneManager *creator):
23                  SceneNode(creator) {};
24
25                KdTreeSceneNode(SceneManager *creator, const String& name):
26                  SceneNode(creator, name) {};
27
28                ~KdTreeSceneNode() {};
29
30                // gather info for kd-tree creation
31                virtual void computeScene(PlaneEventList& 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 // _OgreKdTreeSceneNode_H__
Note: See TracBrowser for help on using the repository browser.