vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
WorldBuilder.h
Go to the documentation of this file.
1 #include "ModelManager.h"
2 #include "Cache.h"
3 
4 using namespace vrecko;
5 
6 namespace ArtificialWorld
7 {
9  class WorldBuilder: public Ability
10  {
11  public:
12  WorldBuilder();
14 
15  void initialize(void) {};
16  void update(void) {};
17 
19  bool loadXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *pParametersNode);
21  void postInitialize(void);
23  unsigned long GetRootObjectID(void){return rootEOID;};
24 
25  private:
27  string worldfile;
29  bool useTimeCache, useDistanceCache, usePreloading;
31  unsigned long cacheTime, cacheDistance, cacheUpdateTime;
32  //World::AvatarView* av;
34  unsigned long rootEOID;
36  osg::Vec3 defaultAvatarPosition; // If the values are FLT_MAX, the position is invalid
37 
38  bool bRootXMLLocked;
39 
43  DECLARE_REQUEST_INPUT(GetAndLockRootXMLNode, MessageVoid, MessageXMLNode);
45  DECLARE_REQUEST_INPUT(UnlockRootXMLNode, MessageVoid, MessageVoid);
46  };
47 }
48