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

Revision 1163, 1.5 KB checked in by szydlowski, 18 years ago (diff)

Added KdTreeSceneManager? to Plugin_VisibilitySceneManager (OnlineCullingCHC)
The KdTreeSceneManager? features view frustum culling only so far, occlusion culling will be implemented soon
Also added a test application for the KdTreeSceneManager? to App/Demos/Vis?

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                // return a bounding box enclosing all objects
40                virtual AxisAlignedBox getBoundingBox() const;
41
42                //virtual void _findVisibleObjects(Camera* cam, RenderQueue* queue,
43                //      bool includeChildren = true, bool displayNodes = false, bool onlyShadowCasters = false);
44
45                // DEBUG
46                String dumpToString();
47        protected:
48                virtual void _updateBounds(void);
49
50                //AxisAlignedBox mLocalAABB;
51        };
52
53} // namespace Ogre
54
55#endif // _OgreKdTreeSceneNode_H__
Note: See TracBrowser for help on using the repository browser.