Atoms Crowd  7.0.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 }
void setBuildPoseNode(Operator *node)
Set the node to be called during the build pose phase.
Definition: AgentBehaviourNetwork.impl.h:21
std::list< AtomsGraph::Node * > & preBuildPoseNodes()
Get the pre build pose node list.
Definition: AgentBehaviourNetwork.impl.h:36
void addPostBuildPoseNode(AtomsGraph::Node *node)
Add a node to the post build pose list.
Definition: AgentBehaviourNetwork.impl.h:31
Operator * buildPoseNode()
Get the build pose operator.
Definition: AgentBehaviourNetwork.impl.h:16
void cleanPreBuildPoseNodes()
Clean the pre build pose list.
Definition: AgentBehaviourNetwork.impl.h:46
AtomsGraph::BufferDouble * globalTimeNode()
Get global time node, the global time node outputs the simulation time.
Definition: AgentBehaviourNetwork.impl.h:61
void setComputeData(const AtomsGraph::ComputeData *computeData)
Set compute data.
Definition: AgentBehaviourNetwork.impl.h:66
AtomsGraph::NetworkManager & manager()
Get network manager.
Definition: AgentBehaviourNetwork.impl.h:11
void addPreBuildPoseNode(AtomsGraph::Node *node)
Add a node to the pre build pose list.
Definition: AgentBehaviourNetwork.impl.h:26
void cleanPostBuildPoseNodes()
Clean the post build pose list.
Definition: AgentBehaviourNetwork.impl.h:51
std::list< AtomsGraph::Node * > & postBuildPoseNodes()
Get the post build pose node list.
Definition: AgentBehaviourNetwork.impl.h:41
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
Operator node.
Definition: Operator.h:26
Definition: utilsNodes.h:22
Definition: Node.h:21
Network manager class.
Definition: NetworkManager.h:27
Definition: Node.h:31
Definition: utilsNodes.h:69
Atoms namespace.
Definition: Agent.h:29