Atoms Crowd  4.1.0
PointsLayoutGenerator.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  AtomsCore::Matrix PointsLayoutGenerator::matrix()
12  {
13 
14  return m_matrix;
15  }
16 
17  void PointsLayoutGenerator::setMatrix(const AtomsCore::Matrix& mtx)
18  {
19  m_matrix = mtx;
20  }
21 
22  std::vector<AtomsCore::Vector3>& PointsLayoutGenerator::positions()
23  {
24  return m_positions;
25  }
26 
27  void PointsLayoutGenerator::setPositions(const std::vector<AtomsCore::Vector3>& pos)
28  {
29  m_positions = pos;
30  }
31 
32  std::vector<AtomsCore::Vector3>& PointsLayoutGenerator::directions()
33  {
34  return m_directions;
35  }
36 
37  void PointsLayoutGenerator::setDirections(const std::vector<AtomsCore::Vector3>& dir)
38  {
39  m_directions = dir;
40  }
41 
42  std::vector<AtomsCore::Vector3>& PointsLayoutGenerator::upVectors()
43  {
44  return m_upVectors;
45  }
46 
47  void PointsLayoutGenerator::setUpVectors(const std::vector<AtomsCore::Vector3>& dir)
48  {
49  m_upVectors = dir;
50  }
51 
52  std::vector<std::string>& PointsLayoutGenerator::agentTypes()
53  {
54  return m_agentTypes;
55  }
56 
57  void PointsLayoutGenerator::setAgentTypes(const std::vector<std::string>& aTypes)
58  {
59  m_agentTypes = aTypes;
60  }
61 
62  std::vector<int>& PointsLayoutGenerator::ids()
63  {
64  return m_ids;
65  }
66 
67  void PointsLayoutGenerator::setIds(const std::vector<int>& id)
68  {
69  m_ids = id;
70  }
71 }
AtomsCore::Matrix
AtomsMath::Matrix Matrix
Matrix class.
Definition: AtomsMath.h:63
Atoms
Atoms namespace.
Definition: Agent.h:28