14 if (jointId >= m_numJoints)
19 const auto &ms = value->get();
20 if (ms.size() != m_numFrames)
27 if (jointMapPtr ==
nullptr)
33 if (metaMap ==
nullptr)
39 metaMap->addEntry(metadataName, value);
43 const AtomsPtr<AtomsCore::TypedArrayMetadata<T>>
AtomsClip::getJointMetadata(
const unsigned int jointId,
const std::string &metadataName)
const
45 if (jointId >= m_numJoints)
48 return AtomsPtr<const AtomsCore::TypedArrayMetadata<T>>();
52 if (jointMapPtr ==
nullptr)
55 return AtomsPtr<const AtomsCore::TypedArrayMetadata<T>>();
58 if (metaMap ==
nullptr)
61 return AtomsPtr<const AtomsCore::TypedArrayMetadata<T>>();
68 if (jointId >= m_numJoints)
75 if (jointMapPtr ==
nullptr)
80 AtomsPtr<AtomsCore::MapMetadata> metaMap = jointMapPtr->getTypedEntry<
AtomsCore::MapMetadata>(JOINT_STATIC_META);
81 if (metaMap ==
nullptr)
87 metaMap->addEntry(metadataName, value);
92 if (jointId >= m_numJoints)
95 return AtomsPtr<const AtomsCore::MetadataImpl<T>>();
99 if (jointMapPtr ==
nullptr)
102 return AtomsPtr<const AtomsCore::MetadataImpl<T>>();
105 if (metaMap ==
nullptr)
108 return AtomsPtr<const AtomsCore::MetadataImpl<T>>();
115 m_inParentSpace = flag;
120 return m_inParentSpace;
void setJointStaticMetadata(const unsigned int jointId, const std::string &metadataName, const AtomsPtr< AtomsCore::MetadataImpl< T >> &value)
Sets joint static metadata.
Definition: AtomsClip.impl.h:66
void setJointMetadata(const unsigned int jointId, const std::string &metadataName, const AtomsPtr< AtomsCore::TypedArrayMetadata< T >> &value)
Sets joint metadata.
Definition: AtomsClip.impl.h:12
const AtomsPtr< AtomsCore::TypedArrayMetadata< T > > getJointMetadata(const unsigned int jointId, const std::string &metadataName) const
Gets joint metadata.
Definition: AtomsClip.impl.h:43
bool inParentSpace() const
Gets the parent space flag.
Definition: AtomsClip.impl.h:118
const AtomsPtr< AtomsCore::MetadataImpl< T > > getJointStaticMetadata(const unsigned int jointId, const std::string &metadataName) const
Get joint static metadata.
Definition: AtomsClip.impl.h:90
void setInParentSpace(bool flag)
Sets use parent space flag.
Definition: AtomsClip.impl.h:113
static LogProxy error()
Get logger proxy error.
Atoms namespace.
Definition: Agent.h:29