Atoms Crowd  7.0.0
TargetCurveModule.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 <AtomsUtils/KdTreePoint.h>
12 
13 namespace AtomsModules
14 {
16  {
17  public:
18 
20 
22 
23  void initSimulation(Atoms::AgentGroup* agentGroup);
24 
25  void agentsCreated(const std::vector<Atoms::Agent*>& agents, Atoms::AgentGroup* agentGroup = nullptr);
26 
27  void initFrame(const std::vector<Atoms::Agent*>& agents, Atoms::AgentGroup* agentGroup = nullptr);
28 
29  static Atoms::BehaviourModule* creator(const std::string& parameter);
30 
31  void buildTree();
32 
33  private:
34 
36 
37  std::vector<AtomsCore::Vector3> m_points;
38 
39  std::vector<AtomsCore::Vector3> m_tangents;
40 
41  };
42 }
43 
44 
45 
Agent group.
Definition: AgentGroup.h:36
Behaviour module.
Definition: BehaviourModule.h:32
Definition: TargetCurveModule.h:16
void initSimulation(Atoms::AgentGroup *agentGroup)
Init simulation.
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.
Definition: KdTreePoint.h:19