24 #ifndef __GLOBALDATA_H
25 #define __GLOBALDATA_H
33 #include <selforg/plotoption.h>
34 #include <selforg/globaldatabase.h>
35 #include <selforg/backcallervector.h>
42 class AbstractObstacle;
Configurable::configurableList ConfigList
Definition: globaldata.h:47
Data structure for accessing the ODE.
Definition: odehandle.h:44
virtual void removeExpiredObjects(double time=-1)
called by Simulation to removes all expired sounds and temporary objects.
Definition: globaldata.cpp:74
std::list< std::pair< double, TmpObject * > > TmpObjectList
Definition: globaldata.h:52
PlotOptionList plotoptions
plotoptions used for new agents
Definition: globaldata.h:74
std::list< Sound > SoundList
Definition: globaldata.h:49
Interface class for graphic primitives like spheres, boxes, and meshes, which can be drawn by OSG...
Definition: osgprimitive.h:62
double time
Definition: globaldata.h:77
std::vector< AbstractObstacle * > ObstacleList
Definition: globaldata.h:44
std::vector< Configurable * > configurableList
Definition: configurable.h:119
SoundList sounds
< this is used to be able to attach objects to the static environment
Definition: globaldata.h:72
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
virtual void addTmpObject(TmpObject *i, double duration)
adds a temporary display item with given life duration in sec
Definition: globaldata.cpp:31
long int sim_step
time steps since start
Definition: globaldata.h:78
virtual AgentList & getAgents()
returns the list of all agents
Definition: globaldata.cpp:98
virtual ~GlobalData()
Definition: globaldata.h:64
The class $name holds the configurable parameters of the simulation environment.
Definition: odeconfig.h:35
std::list< PlotOption > PlotOptionList
Definition: odeagent.h:56
Definition: globaldatabase.h:39
Interface class for primitives represented in the physical and graphical world.
Definition: primitive.h:80
virtual void initializeTmpObjects(const OdeHandle &odeHandle, const OsgHandle &osgHandle)
called by Simulation to initialize tmp objects
Definition: globaldata.cpp:38
OdeConfig odeConfig
Definition: globaldata.h:66
Data structure holding all essential global information.
Definition: globaldata.h:57
this is the base-class for objects that exist temporarily like some indicator of manipulation or a me...
Definition: tmpobject.h:37
std::multimap< double, TmpObject * > TmpObjectMap
Definition: globaldata.h:51
virtual void updateTmpObjects(const OsgHandle &osgHandle)
called by Simulation to update tmp objects
Definition: globaldata.cpp:49
Abstact class for configurable objects.
Definition: configurable.h:81
GlobalData()
Definition: globaldata.h:59
BackCallerVector< OdeAgent * > OdeAgentList
Definition: globaldata.h:48
std::vector< Agent * > AgentList
Definition: globaldatabase.h:37
ObstacleList obstacles
Definition: globaldata.h:67
virtual bool removeTmpObject(TmpObject *i)
removes a particular temporary display item even if it is not yet expired
Definition: globaldata.cpp:58
Primitive * environment
Definition: globaldata.h:69
std::list< Configurable * > globalconfigurables
global configurables plotted by all agents
Definition: globaldata.h:75
OdeAgentList agents
Definition: globaldata.h:68