|
| | JointAnimationInfo () |
| |
| | ~JointAnimationInfo () |
| |
| void | setGLTFAnimationData (std::map< joint, std::vector< Vec3f > > &jointTranslation, std::map< joint, std::vector< Real > > &jointTimeCodeTranslation, std::map< joint, std::vector< Vec3f > > &jointScale, std::map< joint, std::vector< Real > > &jointIndexTimeCodeScale, std::map< joint, std::vector< Quat1f > > &jointRotation, std::map< joint, std::vector< Real > > &jointIndexRotation, std::shared_ptr< JointInfo > skeleton, bool loop=true) |
| |
| void | clear () |
| |
| bool | isValid () |
| |
| bool | isGltfAnimation () |
| |
| void | resizeJointsData (int size) |
| |
| std::vector< Vec3f > | getJointsTranslation (float time) |
| |
| std::vector< Quat1f > | getJointsRotation (float time) |
| |
| std::vector< Vec3f > | getJointsScale (float time) |
| |
| float | getTotalTime () |
| |
| int | findMaxSmallerIndex (const std::vector< float > &arr, float v) |
| |
| Vec3f | lerp (Vec3f v0, Vec3f v1, float weight) |
| |
| Quat< Real > | normalize (const Quat< Real > &q) |
| |
| Quat< Real > | slerp (const Quat< Real > &q1, const Quat< Real > &q2, float weight) |
| |
| Real | lerp (Real v0, Real v1, float weight) |
| |
| Quat< Real > | nlerp (const Quat< Real > &q1, const Quat< Real > &q2, float weight) |
| |
| std::vector< int > | getJointDir (int Index, std::map< int, std::vector< int > > joint_Dir) |
| |
| void | setLoop (bool loop) |
| |
| Pose | getPose (float inTime) |
| |
| void | updateAnimationPose (float inTime) |
| |
| float | getCurrentAnimationTime () |
| |
| float & | getBlendInTime () |
| |
| float & | getBlendOutTime () |
| |
| float & | getPlayRate () |
| |
| void | updateTotalTime () |
| |
| std::shared_ptr< JointInfo > & | getSkeleton () |
| |
| void | setSkeleton (std::shared_ptr< JointInfo > sk) |
| |
| | 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 () |
| |
|
| std::shared_ptr< JointInfo > | mSkeleton = NULL |
| |
| std::map< joint, std::vector< Quat1f > > | mJoint_KeyId_QuatRotation |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_tQuatRotation |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_T_X |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_tT_X |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_T_Y |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_tT_Y |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_T_Z |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_tT_Z |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_R_X |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_tR_X |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_R_Y |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_tR_Y |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_R_Z |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_tR_Z |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_S_X |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_tS_X |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_S_Y |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_tS_Y |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_S_Z |
| |
| std::map< joint, std::vector< Real > > | mJoint_KeyId_tS_Z |
| |
|
| void | updateJointsTransform (float time) |
| |
| Transform3f | updateTransform (joint jId, float time) |
| |
| Real | calculateMinTime (const std::map< joint, std::vector< Real > > &timeCodes) |
| |
| Real | calculateMaxTime (const std::map< joint, std::vector< Real > > &timeCodes) |
| |
| void | offsetTimeCodes (std::map< joint, std::vector< Real > > &timeCodes, Real offset) |
| |
| void | updateGLTFRotation (int select, Real time) |
| |
| void | updateCurrentPose (int select, Real time, std::vector< Vec3f > ¤tData, std::vector< Vec3f > &bindPoseData, std::map< joint, std::vector< Real > > &animationData, std::map< joint, std::vector< Real > > &TimeCode, int channel) |
| |
Definition at line 211 of file JointInfo.h.