Atoms Crowd  7.0.0
GridLayoutGenerator.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 int GridLayoutGenerator::sizeX()
12  {
13  return m_sizeX;
14  }
15 
16  void GridLayoutGenerator::setSizeX(unsigned int sx)
17  {
18  m_sizeX = sx < 1 ? 1 : sx;
19  }
20 
21  unsigned int GridLayoutGenerator::sizeY()
22  {
23  return m_sizeY;
24  }
25 
26  void GridLayoutGenerator::setSizeY(unsigned int sy)
27  {
28  m_sizeY = sy < 1 ? 1 : sy;
29  }
30 
31  unsigned int GridLayoutGenerator::sizeZ()
32  {
33  return m_sizeZ;
34  }
35 
36  void GridLayoutGenerator::setSizeZ(unsigned int sz)
37  {
38  m_sizeZ = sz < 1 ? 1 : sz;
39  }
40 
41  AtomsCore::Vector3 GridLayoutGenerator::space()
42  {
43  return m_space;
44  }
45 
46  void GridLayoutGenerator::setSpace(const AtomsCore::Vector3& space)
47  {
48  m_space = space;
49  }
50 
51  AtomsCore::Vector3 GridLayoutGenerator::randomSpace()
52  {
53  return m_randomSpace;
54  }
55 
56  void GridLayoutGenerator::setRandomSpace(const AtomsCore::Vector3& space)
57  {
58  m_randomSpace = space;
59  }
60 
61  AtomsCore::Vector3 GridLayoutGenerator::randomDirection()
62  {
63  return m_randomDirection;
64  }
65 
66  void GridLayoutGenerator::setRandomDirection(const AtomsCore::Vector3& dir)
67  {
68  m_randomDirection = dir;
69  }
70 
71  AtomsCore::Matrix GridLayoutGenerator::matrix()
72  {
73 
74  return m_matrix;
75  }
76 
77  void GridLayoutGenerator::setMatrix(const AtomsCore::Matrix& mtx)
78  {
79  m_matrix = mtx;
80  }
81 
82  unsigned int GridLayoutGenerator::seed()
83  {
84  return m_seed;
85  }
86 
87  void GridLayoutGenerator::setSeed(unsigned int value)
88  {
89  m_seed = value;
90  }
91 
92  void GridLayoutGenerator::setCenterOffset(const AtomsCore::Vector3 offset)
93  {
94  m_centerOffset = offset;
95  }
96 
97 }
AtomsMath::Vector3 Vector3
Vector3 class.
Definition: AtomsMath.h:57
AtomsMath::Matrix Matrix
Matrix class.
Definition: AtomsMath.h:63
Atoms namespace.
Definition: Agent.h:29