![]() |
PeriDyno 1.2.1
|
#include <JointInfo.h>
Public Member Functions | |
JointInfo () | |
JointInfo (DArray< Mat4f > &InverseBindMatrix, DArray< Mat4f > &LocalMatrix, DArray< Mat4f > &WorldMatrix, std::vector< int > &allJoints, std::map< joint, std::vector< joint > > &jointDir, std::map< joint, Vec3f > &bindPoseTranslation, std::map< joint, Vec3f > &bindPoseScale, std::map< joint, Quat1f > &bindPoseRotation) | |
~JointInfo () | |
void | setGltfJointInfo (DArray< Mat4f > &InverseBindMatrix, std::vector< Mat4f > &LocalMatrix, DArray< Mat4f > &WorldMatrix, std::vector< int > &allJoints, std::map< joint, std::vector< joint > > &jointDir, std::map< joint, Vec3f > &bindPoseTranslation, std::map< joint, Vec3f > &bindPoseScale, std::map< joint, Quat1f > &bindPoseRotation) |
void | clear () |
void | SetJointInfo (std::vector< Mat4f > &InverseBindMatrix, std::vector< Mat4f > &LocalMatrix, std::vector< Mat4f > &WorldMatrix, std::vector< int > &allJoints, std::map< joint, std::vector< joint > > &jointDir, std::map< joint, Vec3f > &bindPoseTranslation, std::map< joint, Vec3f > &bindPoseScale, std::map< joint, Vec3f > &bindPoseRotation, std::map< joint, Vec3f > &bindPosePreRotation) |
void | setJoint (const JointInfo &j) |
bool | isEmpty () |
void | updateWorldMatrixByTransform () |
void | setJointName (const std::map< int, std::string > name) |
void | setLeftHandedCoordSystem (bool islLeft) |
void | setPose (Pose pose) |
int | findJointIndexByName (const std::string &value) |
std::vector< Mat4f > | getLocalMatrix (Pose &pose) |
![]() | |
OBase () | |
~OBase () override | |
virtual std::string | caption () |
Return the caption. | |
virtual bool | captionVisible () |
Whether to hide the caption in the GUI. | |
virtual std::string | description () |
Return a description for the node or module, override this function to support user-defined description. | |
virtual std::string | getName () |
bool | addField (FBase *data) |
Add a field to Base FieldID will be set to the name of Field by default. | |
bool | addField (FieldID name, FBase *data) |
Add a field to Base. | |
bool | addFieldAlias (FieldID name, FBase *data) |
bool | addFieldAlias (FieldID name, FBase *data, FieldMap &fieldAlias) |
bool | findField (FBase *data) |
Find a field by its pointer. | |
bool | findFieldAlias (const FieldID name) |
Find a field by its name. | |
bool | findFieldAlias (const FieldID name, FieldMap &fieldAlias) |
Find a field in fieldAlias by its name This function is typically called by other functions. | |
bool | removeField (FBase *data) |
Remove a field by its pointer. | |
bool | removeFieldAlias (const FieldID name) |
Remove a field by its name. | |
bool | removeFieldAlias (const FieldID name, FieldMap &fieldAlias) |
FBase * | getField (const FieldID name) |
Return a field by its name. | |
std::vector< FBase * > & | getAllFields () |
virtual bool | attachField (FBase *field, std::string name, std::string desc, bool autoDestroy=true) |
Attach a field to Base. | |
template<typename T> | |
T * | getField (FieldID name) |
bool | isAllFieldsReady () |
Check the completeness of all required fields. | |
std::vector< FieldID > | getFieldAlias (FBase *data) |
int | getFieldAliasCount (FBase *data) |
void | setBlockCoord (float x, float y) |
float | bx () |
float | by () |
bool | findInputField (FBase *field) |
bool | addInputField (FBase *field) |
bool | removeInputField (FBase *field) |
std::vector< FBase * > & | getInputFields () |
bool | findOutputField (FBase *field) |
bool | addOutputField (FBase *field) |
bool | addToOutput (FBase *field) |
bool | removeOutputField (FBase *field) |
bool | removeFromOutput (FBase *field) |
std::vector< FBase * > & | getOutputFields () |
bool | findParameter (FBase *field) |
bool | addParameter (FBase *field) |
bool | removeParameter (FBase *field) |
std::vector< FBase * > & | getParameters () |
![]() | |
Object () | |
virtual | ~Object () |
ObjectId | objectId () |
Public Attributes | |
std::map< int, std::string > | mJointName |
DArray< Mat4f > | mJointInverseBindMatrix |
std::vector< Mat4f > | mJointLocalMatrix |
DArray< Mat4f > | mJointWorldMatrix |
Pose | currentPose |
std::vector< Vec3f > | mBindPoseTranslation |
std::vector< Vec3f > | mBindPoseScale |
std::vector< Quat< Real > > | mBindPoseRotation |
std::vector< Vec3f > | mBindPoseRotator |
std::vector< Vec3f > | mBindPosePreRotator |
std::vector< joint > | mAllJoints |
std::map< joint, std::vector< joint > > | mJointDir |
int | mMaxJointID = -1 |
Private Types | |
typedef int | joint |
Private Attributes | |
bool | useLeftHandedCoordSystem = true |
Additional Inherited Members | |
![]() | |
typedef std::vector< FBase * > | FieldVector |
typedef std::map< FieldID, FBase * > | FieldMap |
![]() | |
static bool | registerClass (ClassInfo *ci) |
static Object * | createObject (std::string name) |
static std::map< std::string, ClassInfo * > * | getClassMap () |
static ObjectId | baseId () |
Base Id. | |
![]() | |
std::vector< FBase * > | fields_input |
std::vector< FBase * > | fields_output |
std::vector< FBase * > | fields_param |
Definition at line 57 of file JointInfo.h.
|
private |
Definition at line 59 of file JointInfo.h.
|
inline |
dyno::JointInfo::JointInfo | ( | DArray< Mat4f > & | InverseBindMatrix, |
DArray< Mat4f > & | LocalMatrix, | ||
DArray< Mat4f > & | WorldMatrix, | ||
std::vector< int > & | allJoints, | ||
std::map< joint, std::vector< joint > > & | jointDir, | ||
std::map< joint, Vec3f > & | bindPoseTranslation, | ||
std::map< joint, Vec3f > & | bindPoseScale, | ||
std::map< joint, Quat1f > & | bindPoseRotation ) |
dyno::JointInfo::~JointInfo | ( | ) |
|
inline |
Definition at line 89 of file JointInfo.h.
|
inline |
Definition at line 136 of file JointInfo.h.
Definition at line 148 of file JointInfo.h.
bool dyno::JointInfo::isEmpty | ( | ) |
void dyno::JointInfo::setGltfJointInfo | ( | DArray< Mat4f > & | InverseBindMatrix, |
std::vector< Mat4f > & | LocalMatrix, | ||
DArray< Mat4f > & | WorldMatrix, | ||
std::vector< int > & | allJoints, | ||
std::map< joint, std::vector< joint > > & | jointDir, | ||
std::map< joint, Vec3f > & | bindPoseTranslation, | ||
std::map< joint, Vec3f > & | bindPoseScale, | ||
std::map< joint, Quat1f > & | bindPoseRotation ) |
void dyno::JointInfo::setJoint | ( | const JointInfo & | j | ) |
void dyno::JointInfo::SetJointInfo | ( | std::vector< Mat4f > & | InverseBindMatrix, |
std::vector< Mat4f > & | LocalMatrix, | ||
std::vector< Mat4f > & | WorldMatrix, | ||
std::vector< int > & | allJoints, | ||
std::map< joint, std::vector< joint > > & | jointDir, | ||
std::map< joint, Vec3f > & | bindPoseTranslation, | ||
std::map< joint, Vec3f > & | bindPoseScale, | ||
std::map< joint, Vec3f > & | bindPoseRotation, | ||
std::map< joint, Vec3f > & | bindPosePreRotation ) |
|
inline |
Definition at line 125 of file JointInfo.h.
|
inline |
Definition at line 127 of file JointInfo.h.
|
inline |
void dyno::JointInfo::updateWorldMatrixByTransform | ( | ) |
Pose dyno::JointInfo::currentPose |
Definition at line 191 of file JointInfo.h.
std::vector<joint> dyno::JointInfo::mAllJoints |
Definition at line 201 of file JointInfo.h.
std::vector<Vec3f> dyno::JointInfo::mBindPosePreRotator |
Definition at line 198 of file JointInfo.h.
Definition at line 195 of file JointInfo.h.
std::vector<Vec3f> dyno::JointInfo::mBindPoseRotator |
Definition at line 196 of file JointInfo.h.
std::vector<Vec3f> dyno::JointInfo::mBindPoseScale |
Definition at line 194 of file JointInfo.h.
std::vector<Vec3f> dyno::JointInfo::mBindPoseTranslation |
Definition at line 193 of file JointInfo.h.
Definition at line 202 of file JointInfo.h.
Definition at line 185 of file JointInfo.h.
std::vector<Mat4f> dyno::JointInfo::mJointLocalMatrix |
Definition at line 186 of file JointInfo.h.
std::map<int, std::string> dyno::JointInfo::mJointName |
Definition at line 183 of file JointInfo.h.
Definition at line 187 of file JointInfo.h.
int dyno::JointInfo::mMaxJointID = -1 |
Definition at line 204 of file JointInfo.h.
|
private |
Definition at line 207 of file JointInfo.h.