Atoms Crowd  4.1.0
AgentType.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_skeleton;
14  }
15 
17  {
18  return m_skeleton;
19  }
20 
22  {
23  return m_metadata;
24  }
25 
27  {
28  return m_metadata;
29  }
30 
31  const std::string& AgentType::name() const
32  {
33  return m_name;
34  }
35 
36  void AgentType::setName(const std::string& name)
37  {
38  m_name = name;
39  }
40 
41  double AgentType::pelvisToFeet() const
42  {
43  return m_pelvisToFeet;
44  }
45 
46  const std::vector<AtomsCore::JointChain>& AgentType::jointChains() const
47  {
48  return m_jointChains;
49  }
50 
51  const std::vector<AtomsCore::Matrix>& AgentType::retargetJointRefWorldMatrix() const
52  {
53  return m_retargetJointRefWorldMatrix;
54  }
55 
56  const std::vector<AtomsCore::Quaternion>& AgentType::retargetJointOffset() const
57  {
58  return m_retargetJointOffset;
59  }
60 
61  const std::vector<AgentType::RetargetJointChainData>& AgentType::retargetData(const std::string &other) const
62  {
63  return m_retargetData.find(other)->second;
64  }
65 
66  const bool AgentType::hasRetargetData(const std::string &other) const
67  {
68  auto it = m_retargetData.find(other);
69  if (it == m_retargetData.end())
70  return false;
71  else
72  return true;
73  }
74 }
Atoms::AgentType::retargetData
const std::vector< RetargetJointChainData > & retargetData(const std::string &other) const
Gets retarget data map (a key for each other agent types as source)
Definition: AgentType.impl.h:61
Atoms::AgentType::name
const std::string & name() const
Get name.
Definition: AgentType.impl.h:31
Atoms::AgentType::setName
void setName(const std::string &name)
Set name.
Definition: AgentType.impl.h:36
Atoms
Atoms namespace.
Definition: Agent.h:28
Atoms::AgentType::hasRetargetData
const bool hasRetargetData(const std::string &other) const
Gets if the given agent type is included in the retarget catalog.
Definition: AgentType.impl.h:66
Atoms::AgentType::metadata
AtomsCore::MapMetadata & metadata()
Gets the metadata map.
Definition: AgentType.impl.h:21
Atoms::AgentType::retargetJointOffset
const std::vector< AtomsCore::Quaternion > & retargetJointOffset() const
Gets characterization joint rotation offset.
Definition: AgentType.impl.h:56
AtomsCore::MapMetadata
MapMetadata class.
Definition: MapMetadata.h:24
Atoms::AgentType::retargetJointRefWorldMatrix
const std::vector< AtomsCore::Matrix > & retargetJointRefWorldMatrix() const
Gets characterization joint worldMatrix in ref pose.
Definition: AgentType.impl.h:51
AtomsCore::Skeleton
Skeleton class.
Definition: Skeleton.h:68
Atoms::AgentType::jointChains
const std::vector< AtomsCore::JointChain > & jointChains() const
Gets characterization joint chains.
Definition: AgentType.impl.h:46
Atoms::AgentType::pelvisToFeet
double pelvisToFeet() const
Gets characterization pelvis to feet distance.
Definition: AgentType.impl.h:41
Atoms::AgentType::skeleton
AtomsCore::Skeleton & skeleton()
Gets the agent type skeleton.
Definition: AgentType.impl.h:11