![]() |
Atoms Crowd
7.0.0
|
#include <AgentType.h>
Classes | |
| struct | RetargetJointChainData |
Public Types | |
| enum | RetargetMethodType { kPelvisToFeet = 0 , kFootRootToFootIK , kBoundingBox , kUserValue } |
| enum | FacingDirection { kX = 0 , kY , kZ , kNegativeX , kNegativeY , kNegativeZ } |
Public Member Functions | |
| AgentType () | |
| Constructor. | |
| AgentType (unsigned int numJoints) | |
| Constructor. More... | |
| AgentType (const AtomsCore::Skeleton &skeleton) | |
| Constructor. More... | |
| ~AgentType () | |
| Destructor. | |
| AtomsCore::Skeleton & | skeleton () |
| Gets the agent type skeleton. More... | |
| const AtomsCore::Skeleton & | skeleton () const |
| Gets the agent type skeleton. More... | |
| void | setSkeleton (const AtomsCore::Skeleton &skeleton) |
| Sets the agent type skeleton. More... | |
| AtomsCore::MapMetadata & | metadata () |
| Gets the metadata map. More... | |
| const AtomsCore::MapMetadata & | metadata () const |
| Gets the metadata map. More... | |
| const std::string & | name () const |
| Get name. | |
| void | setName (const std::string &name) |
| Set name. | |
| void | setRetargetingFactorMethod (const RetargetMethodType method=kPelvisToFeet, const double userFactor=1.0) |
| set agent type retargeting method | |
| const RetargetMethodType | getRetargetingFactorMethod () const |
| get the retargeting factor method | |
| const double | getRetargetingUserFactor () const |
| get the retargeting factor provided by the user | |
| const double | evaluateRetargetingFactor (const RetargetMethodType method=kPelvisToFeet, const double userFactor=1.0) const |
| evaluates the retargeting factor | |
| const double | getRetargetingFactor () const |
| gets the retargeting factor | |
| size_t | memSize () |
| Get memory size. | |
| void | hash (AtomsCore::MurmurHash3 &h) const |
| Get hash. | |
| void | loadCharacterization () |
| Fill characterization joint chains. | |
| const std::vector< AtomsCore::JointChain > & | jointChains () const |
| Gets characterization joint chains. | |
| const std::vector< AtomsCore::Matrix > & | retargetJointRefWorldMatrix () const |
| Gets characterization joint worldMatrix in ref pose. | |
| const std::vector< AtomsCore::Quaternion > & | retargetJointOffset () const |
| Gets characterization joint rotation offset. | |
| void | initializeRetargeting (const std::string &other) |
| Fill retarget data relative to the given other agent type (other as source, this as target) | |
| const std::vector< RetargetJointChainData > & | retargetData (const std::string &other) const |
| Gets retarget data map (a key for each other agent types as source) | |
| const bool | hasRetargetData (const std::string &other) const |
| Gets if the given agent type is included in the retarget catalog. | |
| double | getPelvisHeight () const |
| Returns the distance from the first foot to the height. | |
| double | collisionRadius () const |
| Get collision radius. | |
| void | setCollisionRadius (double value) |
| Set collision radius. | |
| void | setVirtualRoot (const bool value, const AtomsCore::Vector3 &position) |
| Add virtual root. More... | |
| bool | hasVirtualRoot () const |
| Returns if this agent type has a virtual root. | |
| const AtomsCore::Vector3 & | virtualRootPosition () const |
| Get virtual root position. | |
| FacingDirection | getFacingDirection () const |
| Get facing direction. | |
| void | setFacingDirection (FacingDirection direction) |
| Set facing direction. | |
Agent type.
This class describes an agent type. An agent type contains a skeleton and a metadata map. The metadata map should have two entries for the low res and high res meshes.
| Atoms::AgentType::AgentType | ( | unsigned int | numJoints | ) |
Constructor.
| numJoints | Number fo joints |
| Atoms::AgentType::AgentType | ( | const AtomsCore::Skeleton & | skeleton | ) |
Constructor.
| skeleton | Skeleton |
|
inline |
Gets the metadata map.
|
inline |
Gets the metadata map.
| void Atoms::AgentType::setSkeleton | ( | const AtomsCore::Skeleton & | skeleton | ) |
Sets the agent type skeleton.
| skeleton | Skeleton |
| void Atoms::AgentType::setVirtualRoot | ( | const bool | value, |
| const AtomsCore::Vector3 & | position | ||
| ) |
Add virtual root.
| value | virtual root status |
| position | the position of the virtual root |
|
inline |
Gets the agent type skeleton.
|
inline |
Gets the agent type skeleton.