Atoms Crowd  7.0.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::randomDirection()
94  {
95  return m_randomDirection;
96  }
97 
98  void StadiumLayoutGenerator::setRandomDirection(const AtomsCore::Vector3& dir)
99  {
100  m_randomDirection = dir;
101  }
102 
103  AtomsCore::Matrix StadiumLayoutGenerator::matrix()
104  {
105 
106  return m_matrix;
107  }
108 
109  void StadiumLayoutGenerator::setMatrix(const AtomsCore::Matrix& mtx)
110  {
111  m_matrix = mtx;
112  }
113 
114  unsigned int StadiumLayoutGenerator::seed()
115  {
116  return m_seed;
117  }
118 
119  void StadiumLayoutGenerator::setSeed(unsigned int value)
120  {
121  m_seed = value;
122  }
123 
124  void StadiumLayoutGenerator::setCenterOffset(const AtomsCore::Vector3 offset)
125  {
126  m_centerOffset = offset;
127  }
128 }
AtomsMath::Vector2 Vector2
Vector2 class.
Definition: AtomsMath.h:54
AtomsMath::Vector3 Vector3
Vector3 class.
Definition: AtomsMath.h:57
AtomsMath::Matrix Matrix
Matrix class.
Definition: AtomsMath.h:63
Atoms namespace.
Definition: Agent.h:29