Atoms Crowd  4.1.0
StadiumLayoutGenerator.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 {
11  unsigned short StadiumLayoutGenerator::shapeType() const
12  {
13  return m_shapeType;
14  }
15 
16  void StadiumLayoutGenerator::setShapeType(unsigned short value)
17  {
18  m_shapeType = value;
19  }
20 
21  void StadiumLayoutGenerator::setSides(bool doTopLeft, bool doTop, bool doTopRight, bool doLeft, bool doRight, bool doBottomLeft, bool doBottom, bool doBottomRight)
22  {
23  m_doTopLeft = doTopLeft;
24  m_doTop = doTop;
25  m_doTopRight = doTopRight;
26  m_doLeft = doLeft;
27  m_doRight = doRight;
28  m_doBottomLeft = doBottomLeft;
29  m_doBottom = doBottom;
30  m_doBottomRight = doBottomRight;
31  }
32 
33  unsigned int StadiumLayoutGenerator::steps() const
34  {
35  return m_steps;
36  }
37 
38  void StadiumLayoutGenerator::setSteps(unsigned int value)
39  {
40  m_steps = value;
41  }
42 
43  double StadiumLayoutGenerator::stepWidth() const
44  {
45  return m_stepWidth;
46  }
47 
48  void StadiumLayoutGenerator::setStepWidth(double value)
49  {
50  m_stepWidth = value;
51  }
52 
53  double StadiumLayoutGenerator::stepDepth() const
54  {
55  return m_stepDepth;
56  }
57 
58  void StadiumLayoutGenerator::setStepDepth(double value)
59  {
60  m_stepDepth = value;
61  }
62 
63  double StadiumLayoutGenerator::stepHeight() const
64  {
65  return m_stepHeight;
66  }
67 
68  void StadiumLayoutGenerator::setStepHeight(double value)
69  {
70  m_stepHeight = value;
71  }
72 
73  const AtomsCore::Vector2& StadiumLayoutGenerator::size() const
74  {
75  return m_size;
76  }
77 
78  void StadiumLayoutGenerator::setSize(const AtomsCore::Vector2& value)
79  {
80  m_size = value;
81  }
82 
83  const double StadiumLayoutGenerator::cornerRadius() const
84  {
85  return m_cornerRadius;
86  }
87 
88  void StadiumLayoutGenerator::setCornerRadius(double cornerRadius)
89  {
90  m_cornerRadius = cornerRadius;
91  }
92 
93  AtomsCore::Vector3 StadiumLayoutGenerator::upVector()
94  {
95  return m_upVector;
96  }
97 
98  void StadiumLayoutGenerator::setUpVector(const AtomsCore::Vector3& dir)
99  {
100  m_upVector = dir;
101  }
102 
103  AtomsCore::Vector3 StadiumLayoutGenerator::randomDirection()
104  {
105  return m_randomDirection;
106  }
107 
108  void StadiumLayoutGenerator::setRandomDirection(const AtomsCore::Vector3& dir)
109  {
110  m_randomDirection = dir;
111  }
112 
113  AtomsCore::Matrix StadiumLayoutGenerator::matrix()
114  {
115 
116  return m_matrix;
117  }
118 
119  void StadiumLayoutGenerator::setMatrix(const AtomsCore::Matrix& mtx)
120  {
121  m_matrix = mtx;
122  }
123 
124  unsigned int StadiumLayoutGenerator::seed()
125  {
126  return m_seed;
127  }
128 
129  void StadiumLayoutGenerator::setSeed(unsigned int value)
130  {
131  m_seed = value;
132  }
133 
134  const std::map<int, std::string>& StadiumLayoutGenerator::agentTypeOverride() const
135  {
136  return m_agentTypeOverride;
137  }
138 
139  void StadiumLayoutGenerator::setAgentTypeOverride(const std::map<int, std::string>& value)
140  {
141  m_agentTypeOverride = value;
142  }
143 
144  const std::map<int, AtomsCore::Vector3>& StadiumLayoutGenerator::directionOverride() const
145  {
146  return m_directionOverride;
147  }
148 
149  void StadiumLayoutGenerator::setDirectionOverride(const std::map<int, AtomsCore::Vector3>& value)
150  {
151  m_directionOverride = value;
152  }
153 
154  const std::map<int, AtomsCore::Vector3>& StadiumLayoutGenerator::upVectorOverride() const
155  {
156  return m_upVectorOverride;
157  }
158 
159  void StadiumLayoutGenerator::setUpVectorOverride(const std::map<int, AtomsCore::Vector3>& value)
160  {
161  m_upVectorOverride = value;
162  }
163 
164  void StadiumLayoutGenerator::setCenterOffset(const AtomsCore::Vector3 offset)
165  {
166  m_centerOffset = offset;
167  }
168 }
AtomsCore::Vector2
AtomsMath::Vector2 Vector2
Vector2 class.
Definition: AtomsMath.h:54
AtomsCore::Matrix
AtomsMath::Matrix Matrix
Matrix class.
Definition: AtomsMath.h:63
AtomsCore::Vector3
AtomsMath::Vector3 Vector3
Vector3 class.
Definition: AtomsMath.h:57
Atoms
Atoms namespace.
Definition: Agent.h:28