OpenLexocad  28.0
AbstractBehaviorMode.h File Reference
#include <Base/Base.h>
#include <Base/Observer.h>
#include <Core/EventInterface.h>

Go to the source code of this file.

Classes

class  Core::AbstractBehaviorMode
 
class  Core::AbstractBehaviorSubMode
 
class  Core::BehaviorModeNotification
 
class  Core::BehaviorModeFactory
 

Namespaces

 Core
 

Macros

#define ADD_BEHAVIORMODE_FACTORY(_factoryName_, _class_)
 
#define REGISTER_BEHAVIORMODE_FACTORY(_factoryName_, _class_)   Core::BehaviorModeFactory::_registry[#_class_] = (Core::BehaviorModeFactory*)new _factoryName_();
 

Typedefs

typedef std::map< std::string, bool > Core::BehaviorAttributeMap
 

Detailed Description

AbstractBehaviorMode class header.

Macro Definition Documentation

◆ ADD_BEHAVIORMODE_FACTORY

#define ADD_BEHAVIORMODE_FACTORY (   _factoryName_,
  _class_ 
)
Value:
class _factoryName_ : public Core::BehaviorModeFactory \
{ \
private: \
{ \
Core::AbstractBehaviorMode* o = new _class_; \
o->setInterfaces(vi, gi, si); \
return o; \
} \
};

◆ REGISTER_BEHAVIORMODE_FACTORY

#define REGISTER_BEHAVIORMODE_FACTORY (   _factoryName_,
  _class_ 
)    Core::BehaviorModeFactory::_registry[#_class_] = (Core::BehaviorModeFactory*)new _factoryName_();
Core::BehaviorModeFactory::createByFactory
virtual AbstractBehaviorMode * createByFactory(ViewMgrInterface *vi, GUIInterface *gi, ServiceInterface *si)=0
Core::GUIInterface
Definition: GUIInterface.h:20
Core::AbstractBehaviorMode::setInterfaces
void setInterfaces(ViewMgrInterface *vi, GUIInterface *gi, ServiceInterface *si)
Core::ServiceInterface
Definition: ServiceInterface.h:97
Core::BehaviorModeFactory
Definition: AbstractBehaviorMode.h:125
Core::AbstractBehaviorMode
Definition: AbstractBehaviorMode.h:29
Core::ViewMgrInterface
Definition: ViewInterface.h:32