Atoms Crowd  7.0.0
AddMetadataModule.h
1 #pragma once
2 // ===========================================================================
3 // Copyright (c) 2015 Toolchefs Ltd. All rights reserved.
4 //
5 // Use of this software is subject to the terms of the Toolchefs license
6 // agreement provided at the time of installation or download, or which
7 // otherwise accompanies this software in either electronic or hard copy form.
8 // ===========================================================================
9 
10 #include <Atoms/BehaviourModule.h>
11 #include <unordered_map>
12 
13 namespace AtomsModules
14 {
16  {
17  public:
19 
21 
22  void agentsCreated(const std::vector<Atoms::Agent*>& agents, Atoms::AgentGroup* agentGroup = nullptr);
23 
24  void initFrame(const std::vector<Atoms::Agent*>& agents, Atoms::AgentGroup* agentGroup = nullptr);
25 
26  void addMetadata(const std::vector<Atoms::Agent*>& agents, Atoms::AgentGroup* agentGroup, bool isCreation);
27 
28  static Atoms::BehaviourModule* creator(const std::string& parameter);
29 
30  private:
31 
32  template<class T>
33  void addMetaModuleProcessMetadataType(
34  Atoms::Agent* agent,
35  AtomsPtr<AtomsCore::Metadata>& agentMeta,
36  const std::string& metaName,
37  const std::string& groupIdStr,
39  const int groupId,
40  int jointId = -1);
41  };
42 }
Agent group.
Definition: AgentGroup.h:36
Agent.
Definition: Agent.h:44
Behaviour Module Attribute Cache.
Definition: BehaviourModuleAttributeCache.h:41
Behaviour module.
Definition: BehaviourModule.h:32
Definition: AddMetadataModule.h:16
void initFrame(const std::vector< Atoms::Agent * > &agents, Atoms::AgentGroup *agentGroup=nullptr)
Init frame.
void agentsCreated(const std::vector< Atoms::Agent * > &agents, Atoms::AgentGroup *agentGroup=nullptr)
Agents Created.