source: trunk/VUT/Ogre/include/OgreVisibilityOptionsManager.h @ 130

Revision 130, 1.2 KB checked in by mattausch, 19 years ago (diff)

added visibility queries

Line 
1#ifndef _VisibilityOptionsManager_H__
2#define _VisibilityOptionsManager_H__
3
4
5#include <OgreString.h>
6#include <OgreStringVector.h>
7#include "VisibilityManager.h"
8#include "HierarchyInterface.h"
9
10
11namespace Ogre {
12       
13/**
14        Helper class for setting and getting different options directly
15        related to visibility culling.
16*/
17class VisibilityOptionsManager
18{
19public:
20        /** Contructor.
21                @param visManager current visibility manager handling
22                the culling options
23                @param hierarchInterface current hierarchy interface for
24                handling the traversal options
25        */
26        VisibilityOptionsManager(GtpVisibility::VisibilityManager *visManager,
27                                                         GtpVisibility::HierarchyInterface *hierarchyInterface);
28       
29        /** Sets the given option for the scene traverser.
30            @remarks
31                Options are:
32                "Algorithm", "Threshold";                       
33        */
34        bool setOption(const String &, const void *);
35        /** Gets the given option for the scene traverser.
36            @remarks
37            See setOption
38        */
39        bool getOption(const String &, void *);
40        bool getOptionKeys( StringVector &refKeys );
41       
42protected:
43        GtpVisibility::VisibilityManager *mVisibilityManager;
44        GtpVisibility::HierarchyInterface *mHierarchyInterface;
45};
46
47}
48#endif // VisibilityOptionsManager_H
Note: See TracBrowser for help on using the repository browser.