Atoms Crowd  4.1.0
LayoutGenerator.impl.h
1 // ===========================================================================
2 // Copyright (c) 2015 Toolchefs Ltd. All rights reserved.
3 //
4 // Use of this software is subject to the terms of the Toolchefs license
5 // agreement provided at the time of installation or download, or which
6 // otherwise accompanies this software in either electronic or hard copy form.
7 // ===========================================================================
8 
9 namespace Atoms
10 {
12  {
13  return m_staticGenerator;
14  }
15 
17  {
18  m_staticGenerator = value;
19  }
20 
22  {
23  return m_agentType;
24  }
25 
27  {
28  m_agentType = aType;
29  }
30 
31  std::atomic<size_t>& LayoutGenerator::nextFreeId()
32  {
33  return m_nextFreeId;
34  }
35 
36  const std::atomic<size_t>& LayoutGenerator::nextFreeId() const
37  {
38  return m_nextFreeId;
39  }
40 
41  const std::string &LayoutGenerator::name()
42  {
43  return m_name;
44  }
45 
46  void LayoutGenerator::setName(const std::string &name)
47  {
48  m_name = name;
49  }
50 
52  {
53  m_offsetPelvisHeight = state;
54  }
55 
56  void LayoutGenerator::setOffsetPelvisHeightOverride(const std::map<int, bool>& value)
57  {
58  m_offsetPelvisHeightOverride = value;
59  }
60 }
Atoms::LayoutGenerator::setAsStaticGenerator
void setAsStaticGenerator(bool value)
Set the static state for this generator.
Definition: LayoutGenerator.impl.h:16
Atoms::LayoutGenerator::setAgentType
void setAgentType(AgentTypePtr aType)
Set the agent type used by this generator.
Definition: LayoutGenerator.impl.h:26
Atoms::LayoutGenerator::setName
void setName(const std::string &name)
Set the name of this generator.
Definition: LayoutGenerator.impl.h:46
Atoms::LayoutGenerator::setOffsetPelvisHeight
void setOffsetPelvisHeight(bool state)
Sets the flag to offset height according to the distance between pelvis and foot.
Definition: LayoutGenerator.impl.h:51
Atoms::AgentTypePtr
AtomsPtr< AgentType > AgentTypePtr
Agent type pointer.
Definition: AgentType.h:17
Atoms::LayoutGenerator::agentType
AgentTypePtr agentType()
Get the agent type used by this generator.
Definition: LayoutGenerator.impl.h:21
Atoms::LayoutGenerator::isStaticGenerator
bool isStaticGenerator() const
Get the static state for this generator.
Definition: LayoutGenerator.impl.h:11
Atoms
Atoms namespace.
Definition: Agent.h:28
Atoms::LayoutGenerator::setOffsetPelvisHeightOverride
void setOffsetPelvisHeightOverride(const std::map< int, bool > &value)
Sets the map per agent to offset height according to the distance between pelvis and foot.
Definition: LayoutGenerator.impl.h:56
Atoms::LayoutGenerator::name
const std::string & name()
Get the name of this generator.
Definition: LayoutGenerator.impl.h:41