13 return m_staticGenerator;
18 m_staticGenerator = value;
26 std::atomic<size_t>& LayoutGenerator::nextFreeId()
31 const std::atomic<size_t>& LayoutGenerator::nextFreeId()
const
48 m_agentTypeAttributeCache = agentTypeAttributeCache;
53 m_applyPelvisHeightOffsetCache = offsetPelvisHeightCache;
58 m_directionAttributeCache = directionAttributeCache;
61 void LayoutGenerator::setUpVectorAttributeCache(
const BehaviourModuleAttributeCache<AtomsCore::Vector3>& upVectorAttributeCache)
63 m_upVectorAttributeCache = upVectorAttributeCache;
static AgentTypes & instance()
Singleton access for global data.
AgentTypePtr agentType(const std::string &typeName)
Gets the agent type with the given name.
const T getAttributeValue(const int groupId, const std::string &groupIdStr, class Agent *agent) const
generates a random value
Definition: BehaviourModuleAttributeCache.h:154
void setAsStaticGenerator(bool value)
Set the static state for this generator.
Definition: LayoutGenerator.impl.h:16
const std::string & name()
Get the name of this generator.
Definition: LayoutGenerator.impl.h:36
void setOffsetPelvisHeightAttributeCache(const BehaviourModuleAttributeCache< bool > &offsetPelvisHeightCache)
Sets offset pelvis height attribute cache.
Definition: LayoutGenerator.impl.h:51
void setName(const std::string &name)
Set the name of this generator.
Definition: LayoutGenerator.impl.h:41
bool isStaticGenerator() const
Get the static state for this generator.
Definition: LayoutGenerator.impl.h:11
virtual AgentTypePtr agentType(const int groupId, const std::string &groupIdStr)
Get the agent type used by this generator.
Definition: LayoutGenerator.impl.h:21
Atoms namespace.
Definition: Agent.h:29
AtomsPtr< AgentType > AgentTypePtr
Agent type pointer.
Definition: AgentType.h:17