Atoms Crowd
4.1.0
|
#include <AgentType.h>
Classes | |
struct | RetargetJointChainData |
Public Types | |
enum | RetargetMethodType { kPelvisToFeet = 0, kBoundingBox, kUserValue } |
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. | |
bool | addAgentTypeRetargeting (const std::string &agentType, const std::string &fileName, const unsigned int method=kPelvisToFeet, const double userFactor=1.0) |
add agent type retargeting | |
std::vector< std::string > | getRetargetingAgentTypes () const |
get config map number | |
AtomsPtr< const AtomsCore::MapMetadata > | getRetargetingJointMap (const std::string &agentType) const |
get config map compatible agent type | |
const unsigned int | getRetargetingMethod (const std::string &agentType) const |
const double | getRetargetingUserFactor (const std::string &agentType) const |
void | removeAgentTypeRetargeting (const std::string &agentType) |
remove config map | |
size_t | memSize () |
Get memory size. | |
void | hash (AtomsCore::MurmurHash3 &h) const |
Get hash. | |
void | loadCharacterization () |
Fill characterization joint chains. | |
double | pelvisToFeet () const |
Gets characterization pelvis to feet distance. | |
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. | |
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 |
|
inline |
Gets the agent type skeleton.
|
inline |
Gets the agent type skeleton.