Atoms Crowd  4.1.0
AgentBehaviourNetwork.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 {
12  {
13  return m_network;
14  }
15 
17  {
18  return m_buildPoseNode;
19  }
20 
22  {
23  m_buildPoseNode = node;
24  }
25 
27  {
28  m_prePoseNodes.push_back(node);
29  }
30 
32  {
33  m_postPoseNodes.push_back(node);
34  }
35 
36  std::list<AtomsGraph::Node*>& AgentBehaviourNetwork::preBuildPoseNodes()
37  {
38  return m_prePoseNodes;
39  }
40 
41  std::list<AtomsGraph::Node*>& AgentBehaviourNetwork::postBuildPoseNodes()
42  {
43  return m_postPoseNodes;
44  }
45 
47  {
48  m_prePoseNodes.clear();
49  }
50 
52  {
53  m_postPoseNodes.clear();
54  }
55 
57  {
58  return m_timeNode;
59  }
60 
62  {
63  return m_globalTimeNode;
64  }
65 
67  {
68  m_computeData = computeData;
69  }
70 }
Atoms::AgentBehaviourNetwork::manager
AtomsGraph::NetworkManager & manager()
Get network manager.
Definition: AgentBehaviourNetwork.impl.h:11
Atoms::AgentBehaviourNetwork::cleanPostBuildPoseNodes
void cleanPostBuildPoseNodes()
Clean the post build pose list.
Definition: AgentBehaviourNetwork.impl.h:51
Atoms::AgentBehaviourNetwork::timeNode
AtomsGraph::TimeNode * timeNode()
Get time node, the time node gets the global time value and converts it using the frame rate of the c...
Definition: AgentBehaviourNetwork.impl.h:56
AtomsGraph::Node
Definition: Node.h:31
AtomsGraph::NetworkManager
Network manager class.
Definition: NetworkManager.h:27
AtomsGraph::TimeNode
Definition: utilsNodes.h:69
Atoms::AgentBehaviourNetwork::postBuildPoseNodes
std::list< AtomsGraph::Node * > & postBuildPoseNodes()
Get the post build pose node list.
Definition: AgentBehaviourNetwork.impl.h:41
Atoms::AgentBehaviourNetwork::preBuildPoseNodes
std::list< AtomsGraph::Node * > & preBuildPoseNodes()
Get the pre build pose node list.
Definition: AgentBehaviourNetwork.impl.h:36
Atoms::AgentBehaviourNetwork::setBuildPoseNode
void setBuildPoseNode(Operator *node)
Set the node to be called during the build pose phase.
Definition: AgentBehaviourNetwork.impl.h:21
Atoms::AgentBehaviourNetwork::buildPoseNode
Operator * buildPoseNode()
Get the build pose operator.
Definition: AgentBehaviourNetwork.impl.h:16
Atoms::AgentBehaviourNetwork::globalTimeNode
AtomsGraph::BufferDouble * globalTimeNode()
Get global time node, the global time node outputs the simulation time.
Definition: AgentBehaviourNetwork.impl.h:61
Atoms::AgentBehaviourNetwork::cleanPreBuildPoseNodes
void cleanPreBuildPoseNodes()
Clean the pre build pose list.
Definition: AgentBehaviourNetwork.impl.h:46
Atoms::AgentBehaviourNetwork::setComputeData
void setComputeData(const AtomsGraph::ComputeData *computeData)
Set compute data.
Definition: AgentBehaviourNetwork.impl.h:66
Atoms
Atoms namespace.
Definition: Agent.h:28
Atoms::Operator
Operator node.
Definition: Operator.h:26
Atoms::AgentBehaviourNetwork::addPostBuildPoseNode
void addPostBuildPoseNode(AtomsGraph::Node *node)
Add a node to the post build pose list.
Definition: AgentBehaviourNetwork.impl.h:31
AtomsGraph::ComputeData
Definition: Node.h:21
AtomsGraph::BufferDouble
Definition: utilsNodes.h:22
Atoms::AgentBehaviourNetwork::addPreBuildPoseNode
void addPreBuildPoseNode(AtomsGraph::Node *node)
Add a node to the pre build pose list.
Definition: AgentBehaviourNetwork.impl.h:26