Atoms Crowd  7.0.0
TorusLayoutGenerator.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  double TorusLayoutGenerator::torusRadius()
12  {
13  return m_torusRadius;
14  }
15 
16  double TorusLayoutGenerator::torusSectionRadius()
17  {
18  return m_torusSectionRadius;
19  }
20 
21  void TorusLayoutGenerator::setTorusRadius(const double radius)
22  {
23  m_torusRadius = radius;
24  }
25 
26  void TorusLayoutGenerator::setTorusSectionRadius(const double sectionRadius)
27  {
28  m_torusSectionRadius = sectionRadius;
29  }
30 
31  double TorusLayoutGenerator::defaultRadius() const
32  {
33  return m_defaultRadius;
34  }
35 
36  void TorusLayoutGenerator::setDefaultRadius(double radius)
37  {
38  m_defaultRadius = radius;
39  }
40 
41  double TorusLayoutGenerator::maxRadius() const
42  {
43  return m_maxRadius;
44  }
45 
46  void TorusLayoutGenerator::setMaxRadius(double radius)
47  {
48  m_maxRadius = radius;
49  }
50 
51  bool TorusLayoutGenerator::randomizeRadius() const
52  {
53  return m_randomizeRadius;
54  }
55 
56  void TorusLayoutGenerator::setRandomizeRadius(bool randomize)
57  {
58  m_randomizeRadius = randomize;
59  }
60 
61  int TorusLayoutGenerator::iterations() const
62  {
63  return m_iterations;
64  }
65 
66  void TorusLayoutGenerator::setIterations(int iterations)
67  {
68  m_iterations = iterations;
69  }
70 
71  const AtomsCore::Vector3& TorusLayoutGenerator::randomDirection() const
72  {
73  return m_randomDirection;
74  }
75 
76  void TorusLayoutGenerator::setRandomDirection(const AtomsCore::Vector3& dir)
77  {
78  m_randomDirection = dir;
79  }
80 
81  const AtomsCore::Vector3& TorusLayoutGenerator::randomUpVector() const
82  {
83  return m_randomUpVector;
84  }
85 
86  void TorusLayoutGenerator::setRandomUpVector(const AtomsCore::Vector3& up)
87  {
88  m_randomUpVector = up;
89  }
90 
91  const AtomsCore::Matrix& TorusLayoutGenerator::matrix() const
92  {
93 
94  return m_matrix;
95  }
96 
97  void TorusLayoutGenerator::setMatrix(const AtomsCore::Matrix& mtx)
98  {
99  m_matrix = mtx;
100  }
101 
102  unsigned int TorusLayoutGenerator::seed() const
103  {
104  return m_seed;
105  }
106 
107  void TorusLayoutGenerator::setSeed(unsigned int value)
108  {
109  m_seed = value;
110  }
111 
112  void TorusLayoutGenerator::setCenterOffset(const AtomsCore::Vector3 offset)
113  {
114  m_centerOffset = offset;
115  }
116 
117 }
AtomsMath::Vector3 Vector3
Vector3 class.
Definition: AtomsMath.h:57
AtomsMath::Matrix Matrix
Matrix class.
Definition: AtomsMath.h:63
Atoms namespace.
Definition: Agent.h:29