Atoms Crowd  7.0.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::randomDirection() const
62  {
63  return m_randomDirection;
64  }
65 
66  void SphereLayoutGenerator::setRandomDirection(const AtomsCore::Vector3& dir)
67  {
68  m_randomDirection = dir;
69  }
70 
71  const AtomsCore::Vector3& SphereLayoutGenerator::randomUpVector() const
72  {
73  return m_randomUpVector;
74  }
75 
76  void SphereLayoutGenerator::setRandomUpVector(const AtomsCore::Vector3& up)
77  {
78  m_randomUpVector = up;
79  }
80 
81  const AtomsCore::Matrix& SphereLayoutGenerator::matrix() const
82  {
83 
84  return m_matrix;
85  }
86 
87  void SphereLayoutGenerator::setMatrix(const AtomsCore::Matrix& mtx)
88  {
89  m_matrix = mtx;
90  }
91 
92  unsigned int SphereLayoutGenerator::seed() const
93  {
94  return m_seed;
95  }
96 
97  void SphereLayoutGenerator::setSeed(unsigned int value)
98  {
99  m_seed = value;
100  }
101 
102  void SphereLayoutGenerator::setCenterOffset(const AtomsCore::Vector3 offset)
103  {
104  m_centerOffset = offset;
105  }
106 
107 }
AtomsMath::Vector3 Vector3
Vector3 class.
Definition: AtomsMath.h:57
AtomsMath::Matrix Matrix
Matrix class.
Definition: AtomsMath.h:63
Atoms namespace.
Definition: Agent.h:29