45 #ifndef __AGENT_INITIALIZER_H__
46 #define __AGENT_INITIALIZER_H__
137 bool parseProperties( TiXmlElement * node,
const std::string & sceneFldr );
152 virtual bool setProperties(
BaseAgent * agent );
161 virtual void setDefaults();
193 virtual bool isRelevant( const ::std::string & tagName );
209 virtual ParseResult setFromXMLAttribute( const ::std::string & paramName, const ::std::string & value );
222 bool parsePropertySpec( TiXmlElement * node );
241 virtual ParseResult processProperty( ::std::string propName, TiXmlElement * node );
282 ParseResult constFloat(
float & numValue, const ::std::string & valueStr,
float scale=1.f );
317 ParseResult constSizet(
size_t & numValue, const ::std::string & valueStr );
420 #endif // __AGENT_INITIALIZER_H__
The XML data was ignored by the function.
Definition: AgentInitializer.h:83
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
FloatGenerator * _radius
The agent's radius. See Agents::BaseAgent::_radius for details.
Definition: AgentInitializer.h:388
IntGenerator * _maxNeighbors
The number of nearby agents used to plan dynamic respones.
Definition: AgentInitializer.h:377
Generic abstract class which generates a scalar float value.
Definition: RandGenerator.h:99
Sets up the proper compiler directives for platform and dll export/import.
FloatGenerator * _neighborDist
The maximum distance at which another agent will be considered for a response.
Definition: AgentInitializer.h:383
FloatGenerator * _maxSpeed
The maximum speed the agent can take.
Definition: AgentInitializer.h:362
The definition of how preferred velocity is modified by a filter.
Class which determines the agent properties for each new agent.
Definition: AgentInitializer.h:75
FloatGenerator * _maxAngVel
The agent's maximum angular velocity (in radians/sec) – used for controlling the changes in agent or...
Definition: AgentInitializer.h:394
size_t _obstacleSet
A mask indicating which obstacles affect the agent. See Agents::BaseAgent::_obstacleSet for details...
Definition: AgentInitializer.h:400
ParseResult
Return type for parsing efforts. Helps the various derived classes coordinate their work...
Definition: AgentInitializer.h:81
The namespace for math primitives for simulation and visualization.
float _priority
The priority of each agent. See Agents::BaseAgent::_priority for details.
Definition: AgentInitializer.h:405
static bool VERBOSE
Determines if the agent properties parsing process will be verbose.
Definition: AgentInitializer.h:175
virtual AgentInitializer * copy() const
Creates a copy of this AgentInitializer instance.
Definition: AgentInitializer.h:170
Generic abstract class which generates a scalar integer value.
Definition: RandGenerator.h:486
size_t _class
The population class for this agent. See Agents::BaseAgent::_class for details.
Definition: AgentInitializer.h:410
Defines the basic agent properties and functionality that all simulation agents share.
Definition: BaseAgent.h:123
The namespace that contains the basic simulation mechanisms.
std::vector< BFSM::VelModifier * > _velModifiers
Velocity Modifiers to be applied to this class.
Definition: AgentInitializer.h:415
FloatGenerator * _maxAccel
The maximum acceleration the agent can experience (interpreted isotropically).
Definition: AgentInitializer.h:367
FloatGenerator * _prefSpeed
The preferred speed of the agent.
Definition: AgentInitializer.h:372