Atoms Crowd  4.1.0
SphereLayoutGenerator.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  const AtomsCore::Vector3& SphereLayoutGenerator::size()
12  {
13  return m_size;
14  }
15 
16  void SphereLayoutGenerator::setSize(const AtomsCore::Vector3& size)
17  {
18  m_size = size;
19  }
20 
21  double SphereLayoutGenerator::defaultRadius() const
22  {
23  return m_defaultRadius;
24  }
25 
26  void SphereLayoutGenerator::setDefaultRadius(double radius)
27  {
28  m_defaultRadius = radius;
29  }
30 
31  double SphereLayoutGenerator::maxRadius() const
32  {
33  return m_maxRadius;
34  }
35 
36  void SphereLayoutGenerator::setMaxRadius(double radius)
37  {
38  m_maxRadius = radius;
39  }
40 
41  bool SphereLayoutGenerator::randomizeRadius() const
42  {
43  return m_randomizeRadius;
44  }
45 
46  void SphereLayoutGenerator::setRandomizeRadius(bool randomize)
47  {
48  m_randomizeRadius = randomize;
49  }
50 
51  int SphereLayoutGenerator::iterations() const
52  {
53  return m_iterations;
54  }
55 
56  void SphereLayoutGenerator::setIterations(int iterations)
57  {
58  m_iterations = iterations;
59  }
60 
61  const AtomsCore::Vector3& SphereLayoutGenerator::direction() const
62  {
63  return m_direction;
64  }
65 
66  void SphereLayoutGenerator::setDirection(const AtomsCore::Vector3& dir)
67  {
68  m_direction = dir;
69  }
70 
71  const AtomsCore::Vector3& SphereLayoutGenerator::upVector() const
72  {
73  return m_upVector;
74  }
75 
76  void SphereLayoutGenerator::setUpVector(const AtomsCore::Vector3& dir)
77  {
78  m_upVector = dir;
79  }
80 
81  const AtomsCore::Vector3& SphereLayoutGenerator::randomDirection() const
82  {
83  return m_randomDirection;
84  }
85 
86  void SphereLayoutGenerator::setRandomDirection(const AtomsCore::Vector3& dir)
87  {
88  m_randomDirection = dir;
89  }
90 
91  const AtomsCore::Vector3& SphereLayoutGenerator::randomUpVector() const
92  {
93  return m_randomUpVector;
94  }
95 
96  void SphereLayoutGenerator::setRandomUpVector(const AtomsCore::Vector3& up)
97  {
98  m_randomUpVector = up;
99  }
100 
101  const AtomsCore::Matrix& SphereLayoutGenerator::matrix() const
102  {
103 
104  return m_matrix;
105  }
106 
107  void SphereLayoutGenerator::setMatrix(const AtomsCore::Matrix& mtx)
108  {
109  m_matrix = mtx;
110  }
111 
112  unsigned int SphereLayoutGenerator::seed() const
113  {
114  return m_seed;
115  }
116 
117  void SphereLayoutGenerator::setSeed(unsigned int value)
118  {
119  m_seed = value;
120  }
121 
122  const std::map<int, std::string>& SphereLayoutGenerator::agentTypeOverride() const
123  {
124  return m_agentTypeOverride;
125  }
126 
127  void SphereLayoutGenerator::setAgentTypeOverride(const std::map<int, std::string>& value)
128  {
129  m_agentTypeOverride = value;
130  }
131 
132  const std::map<int, AtomsCore::Vector3>& SphereLayoutGenerator::directionOverride() const
133  {
134  return m_directionOverride;
135  }
136 
137  void SphereLayoutGenerator::setDirectionOverride(const std::map<int, AtomsCore::Vector3>& value)
138  {
139  m_directionOverride = value;
140  }
141 
142  const std::map<int, AtomsCore::Vector3>& SphereLayoutGenerator::upVectorOverride() const
143  {
144  return m_upVectorOverride;
145  }
146 
147  void SphereLayoutGenerator::setUpVectorOverride(const std::map<int, AtomsCore::Vector3>& value)
148  {
149  m_upVectorOverride = value;
150  }
151 
152  void SphereLayoutGenerator::setCenterOffset(const AtomsCore::Vector3 offset)
153  {
154  m_centerOffset = offset;
155  }
156 
157 }
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