source: branches/VUT/DummyModules/Ogre/include/OgreVisibilityOctreeSceneManager.h @ 59

Revision 59, 1.6 KB checked in by mattausch, 20 years ago (diff)

completely changed file structure plus software design

Line 
1#ifndef _VisibilityOctreeSceneManager_H__
2#define _VisibilityOctreeSceneManager_H__
3
4#include <OgreSceneNode.h>
5#include <OgreOctreeSceneManager.h>
6#include <OgreOctreeNode.h>
7#include <OgreOctreeCamera.h>
8#include <OgrePrerequisites.h>
9
10#include "OgreOctreeHierarchyInterface.h"
11#include "VisibilityManager.h"
12
13namespace Ogre {
14
15/**
16        This class extends the octree scene manager, using
17        occlusion queries for visibility culling.
18*/
19class VisibilityOctreeSceneManager: public OctreeSceneManager
20{
21public:
22        VisibilityOctreeSceneManager(GtpVisibility::VisibilityManager *visManager);
23        ~VisibilityOctreeSceneManager();
24
25        void _renderVisibleObjects();
26        void _findVisibleObjects(Camera* cam, bool onlyShadowCasters);
27        void _updateSceneGraph(Camera* cam );
28
29        /** Sets the given option for the SceneManager
30                            @remarks
31                Options are:
32                "Algorithm", int *;                     
33        */
34       
35        virtual bool setOption(const String &, const void *);
36        /** Gets the given option for the Scene VisibilityManager.
37            @remarks
38                See setOption
39        */
40        virtual bool getOption(const String &, void *);
41
42        bool getOptionValues(const String & key, StringVector &refValueList);
43        bool getOptionKeys(StringVector &refKeys);
44
45        /** Sets the visibility manager.
46                @param visManager the visibility manager
47        */
48        void setVisibilityManager(GtpVisibility::VisibilityManager *visManager);
49        /** See set.
50        */
51        GtpVisibility::VisibilityManager *getVisibilityManager( void );
52
53protected:
54       
55        OctreeHierarchyInterface *mHierarchyInterface;
56        GtpVisibility::VisibilityManager *mVisibilityManager;
57};
58
59} // namespace Ogre
60
61#endif // VisibilityOctreeSceneManager_H
Note: See TracBrowser for help on using the repository browser.