ModuleInterface Class Reference

#include <ModuleInterface.h>

Inherited by ControllerManagerInterface, InteractionInterface, JointInteraction, NavigationInterface, NetworkInterface, Physics, PhysicsSoundManager, SceneGraphInterface, and Simulation2D.

List of all members.


Public Types

enum  CONFIGURATION_ORDER { CONFIGURE_BEFORE_CORECOMPONENTS, CONFIGURE_AFTER_CORECOMPONENTS }

Public Member Functions

virtual ~ModuleInterface ()
virtual bool loadConfig (std::string configFile)=0
virtual void cleanup ()
virtual void update (float dt)
virtual std::string getName ()=0
virtual CONFIGURATION_ORDER getConfigurationOrder ()
virtual EventcreateSyncEvent ()

Detailed Description

Basic interface for modules. Provides methods for initialisation and cleanup.

Member Enumeration Documentation

Enumerator:
CONFIGURE_BEFORE_CORECOMPONENTS 
CONFIGURE_AFTER_CORECOMPONENTS 


Constructor & Destructor Documentation

virtual ModuleInterface::~ModuleInterface (  )  [inline, virtual]


Member Function Documentation

virtual void ModuleInterface::cleanup (  )  [inline, virtual]

virtual Event* ModuleInterface::createSyncEvent (  )  [inline, virtual]

Todo:
write doku

Reimplemented in Simulation2D, Physics, and SceneGraphInterface.

virtual CONFIGURATION_ORDER ModuleInterface::getConfigurationOrder (  )  [inline, virtual]

Define wether the module should be configured before or after the core components are configured. By default the module is configured before the core components are configured.

virtual std::string ModuleInterface::getName (  )  [pure virtual]

virtual bool ModuleInterface::loadConfig ( std::string  configFile  )  [pure virtual]

Instruct the module to read its configuration from a file.

Returns:
true on success.
Parameters:
configFile path of the XML-file.

Implemented in ControllerManager, Simulation2D, Physics, Interaction, JointInteraction, Navigation, Network, OpenSGSceneGraphInterface, SceneGraphInterface, and PhysicsSoundManager.

virtual void ModuleInterface::update ( float  dt  )  [inline, virtual]

Updates the module every frame

Reimplemented in Physics, Interaction, InteractionInterface, and NavigationInterface.


The documentation for this class was generated from the following file:

Generated on Wed Oct 20 16:11:58 2010 for inVRs by doxygen 1.5.8