|
Blender
V2.59
|
#include <AnimationImporter.h>

Public Member Functions | |
| AnimationImporter (UnitConverter *conv, ArmatureImporter *arm, Scene *scene) | |
| ~AnimationImporter () | |
| bool | write_animation (const COLLADAFW::Animation *anim) |
| bool | write_animation_list (const COLLADAFW::AnimationList *animlist) |
| void | read_node_transform (COLLADAFW::Node *node, Object *ob) |
| Object * | translate_animation (COLLADAFW::Node *node, std::map< COLLADAFW::UniqueId, Object * > &object_map, std::map< COLLADAFW::UniqueId, COLLADAFW::Node * > &root_map, COLLADAFW::Transformation::TransformationType tm_type, Object *par_job=NULL) |
| void | evaluate_transform_at_frame (float mat[4][4], COLLADAFW::Node *node, float fra) |
| bool | evaluate_animation (COLLADAFW::Transformation *tm, float mat[4][4], float fra, const char *node_id) |
| void | get_joint_rest_mat (float mat[4][4], COLLADAFW::Node *root, COLLADAFW::Node *node) |
| bool | calc_joint_parent_mat_rest (float mat[4][4], float par[4][4], COLLADAFW::Node *node, COLLADAFW::Node *end) |
| void | add_bone_fcurve (Object *ob, COLLADAFW::Node *node, FCurve *fcu) |
| void | add_bezt (FCurve *fcu, float fra, float value) |
Definition at line 58 of file AnimationImporter.h.
| AnimationImporter::AnimationImporter | ( | UnitConverter * | conv, |
| ArmatureImporter * | arm, | ||
| Scene * | scene | ||
| ) |
Definition at line 224 of file AnimationImporter.cpp.
| AnimationImporter::~AnimationImporter | ( | ) |
Definition at line 227 of file AnimationImporter.cpp.
References free_fcurve().
| void AnimationImporter::add_bezt | ( | FCurve * | fcu, |
| float | fra, | ||
| float | value | ||
| ) |
Definition at line 1152 of file AnimationImporter.cpp.
References calchandles_fcurve(), BezTriple::f1, BezTriple::f2, BezTriple::f3, BezTriple::h1, BezTriple::h2, HD_AUTO, insert_bezt_fcurve(), BezTriple::ipo, SELECT, and BezTriple::vec.
Referenced by translate_animation().
| void AnimationImporter::add_bone_fcurve | ( | Object * | ob, |
| COLLADAFW::Node * | node, | ||
| FCurve * | fcu | ||
| ) |
Definition at line 1128 of file AnimationImporter.cpp.
References AnimData::action, action_groups_add_channel(), action_groups_find_named(), Object::adt, AGRP_SELECTED, bc_get_joint_name(), BLI_addtail(), BLI_strncpy(), BLI_uniquename(), bActionGroup::flag, bAction::groups, MEM_callocN(), ImBuf::name, bActionGroup::name, and NULL.
Referenced by translate_animation().
| bool AnimationImporter::calc_joint_parent_mat_rest | ( | float | mat[4][4], |
| float | par[4][4], | ||
| COLLADAFW::Node * | node, | ||
| COLLADAFW::Node * | end | ||
| ) |
Definition at line 1019 of file AnimationImporter.cpp.
References copy_m4_m4(), ArmatureImporter::get_joint_bind_mat(), TransformReader::get_node_mat(), mul_m4_m4m4(), NULL, and unit_m4().
Referenced by get_joint_rest_mat(), and translate_animation().
| bool AnimationImporter::evaluate_animation | ( | COLLADAFW::Transformation * | tm, |
| float | mat[4][4], | ||
| float | fra, | ||
| const char * | node_id | ||
| ) |
Definition at line 859 of file AnimationImporter.cpp.
References angle(), axis_angle_to_mat4(), BLI_snprintf(), copy_v3_v3(), TransformReader::dae_matrix_to_mat4(), TransformReader::dae_scale_to_v3(), TransformReader::dae_translate_to_v3(), evaluate_fcurve(), SCALE, and size_to_mat4().
Referenced by evaluate_transform_at_frame().
| void AnimationImporter::evaluate_transform_at_frame | ( | float | mat[4][4], |
| COLLADAFW::Node * | node, | ||
| float | fra | ||
| ) |
Definition at line 818 of file AnimationImporter.cpp.
References copy_m4_m4(), TransformReader::dae_matrix_to_mat4(), TransformReader::dae_rotate_to_mat4(), TransformReader::dae_scale_to_mat4(), TransformReader::dae_translate_to_mat4(), evaluate_animation(), i, mul_m4_m4m4(), SCALE, and unit_m4().
Referenced by translate_animation().
| void AnimationImporter::get_joint_rest_mat | ( | float | mat[4][4], |
| COLLADAFW::Node * | root, | ||
| COLLADAFW::Node * | node | ||
| ) |
Definition at line 1005 of file AnimationImporter.cpp.
References calc_joint_parent_mat_rest(), ArmatureImporter::get_joint_bind_mat(), TransformReader::get_node_mat(), mul_m4_m4m4(), and NULL.
Referenced by translate_animation().
| void AnimationImporter::read_node_transform | ( | COLLADAFW::Node * | node, |
| Object * | ob | ||
| ) |
Definition at line 413 of file AnimationImporter.cpp.
References copy_m4_m4(), TransformReader::get_node_mat(), object_apply_mat4(), and Object::obmat.
Referenced by DocumentImporter::create_instance_node(), and DocumentImporter::write_node().
| Object * AnimationImporter::translate_animation | ( | COLLADAFW::Node * | node, |
| std::map< COLLADAFW::UniqueId, Object * > & | object_map, | ||
| std::map< COLLADAFW::UniqueId, COLLADAFW::Node * > & | root_map, | ||
| COLLADAFW::Transformation::TransformationType | tm_type, | ||
| Object * | par_job = NULL |
||
| ) |
Definition at line 519 of file AnimationImporter.cpp.
References AnimData::action, add_bezt(), add_bone_fcurve(), Object::adt, Bone::arm_mat, bc_get_joint_name(), FCurve::bezt, BLI_addtail(), BLI_snprintf(), calc_joint_parent_mat_rest(), copy_m4_m4(), copy_v3_v3(), bAction::curves, Object::data, evaluate_transform_at_frame(), find(), ArmatureImporter::get_armature_for_joint(), get_joint_rest_mat(), get_named_bone(), get_pose_channel(), ArmatureImporter::get_rna_path_for_joint(), i, Object::id, invert_m4(), invert_m4_m4(), mat4_to_quat(), mat4_to_size(), mul_m4_m4m4(), mul_serie_m4(), NULL, Object::pose, MakeCursor::root, ROT_MODE_QUAT, Object::rotmode, bPoseChannel::rotmode, SCALE, sort(), FCurve::totvert, unit_m4(), simple_enum_gen::val, BezTriple::vec, and verify_adt_action().
Referenced by DocumentImporter::translate_anim_recursive().
| bool AnimationImporter::write_animation | ( | const COLLADAFW::Animation * | anim | ) |
Definition at line 237 of file AnimationImporter.cpp.
Referenced by DocumentImporter::writeAnimation().
| bool AnimationImporter::write_animation_list | ( | const COLLADAFW::AnimationList * | animlist | ) |
Definition at line 278 of file AnimationImporter.cpp.
References BLI_snprintf(), BLI_strncpy(), ArmatureImporter::get_armature_for_joint(), ArmatureImporter::get_rna_path_for_joint(), i, TransformReader::Animation::node, TransformReader::Animation::ob, SCALE, and TransformReader::Animation::tm.
Referenced by DocumentImporter::writeAnimationList().