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

Revision 1173, 1.7 KB checked in by szydlowski, 18 years ago (diff)

Finished kdtree hierarchy interface, started modifications to kdtree scene manager

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                // calculate all-enclosing AABB, similar to _updateBounds()
31                void forceComputeAABB(AxisAlignedBox& aabb); // OBSOLETE !!
32
33                // gather info for kd-tree creation
34                virtual void computeScene(PlaneEventList& events, AxisAlignedBox& aabb, int& nObjects, bool includeChildren = true);
35
36                // add all contained objects to render queue
37                virtual void queueObjects(Camera* cam, RenderQueue* queue, bool onlyShadowCasters);
38
39                // place all entities in geometry queue (for CHC)
40                virtual void getGeometryList(GtpVisibility::GeometryVector *geometryList);
41
42                // return a bounding box enclosing all objects
43                virtual AxisAlignedBox getBoundingBox() const;
44
45                //virtual void _findVisibleObjects(Camera* cam, RenderQueue* queue,
46                //      bool includeChildren = true, bool displayNodes = false, bool onlyShadowCasters = false);
47
48                // DEBUG
49                String dumpToString();
50        protected:
51                virtual void _updateBounds(void);
52
53                //AxisAlignedBox mLocalAABB;
54        };
55
56} // namespace Ogre
57
58#endif // _OgreKdTreeSceneNode_H__
Note: See TracBrowser for help on using the repository browser.