|
Blender
V2.93
|
#include <SkinInfo.h>
Public Member Functions | |
| SkinInfo () | |
| SkinInfo (const SkinInfo &skin) | |
| SkinInfo (UnitConverter *conv) | |
| template<typename T > | |
| void | transfer_array_data (T &src, T &dest) |
| void | transfer_int_array_data_const (const COLLADAFW::IntValuesArray &src, COLLADAFW::IntValuesArray &dest) |
| void | transfer_uint_array_data_const (const COLLADAFW::UIntValuesArray &src, COLLADAFW::UIntValuesArray &dest) |
| void | borrow_skin_controller_data (const COLLADAFW::SkinControllerData *skin) |
| void | free () |
| void | add_joint (const COLLADABU::Math::Matrix4 &matrix) |
| void | set_controller (const COLLADAFW::SkinController *co) |
| Object * | create_armature (Main *bmain, Scene *scene, ViewLayer *view_layer) |
| Object * | set_armature (Object *ob_arm) |
| bool | get_joint_inv_bind_matrix (float inv_bind_mat[4][4], COLLADAFW::Node *node) |
| Object * | BKE_armature_from_object () |
| const COLLADAFW::UniqueId & | get_controller_uid () |
| bool | uses_joint_or_descendant (COLLADAFW::Node *node) |
| void | link_armature (bContext *C, Object *ob, std::map< COLLADAFW::UniqueId, COLLADAFW::Node * > &joint_by_uid, TransformReader *tm) |
| bPoseChannel * | get_pose_channel_from_node (COLLADAFW::Node *node) |
| void | set_parent (Object *_parent) |
| Object * | get_parent () |
| void | find_root_joints (const std::vector< COLLADAFW::Node * > &root_joints, std::map< COLLADAFW::UniqueId, COLLADAFW::Node * > &joint_by_uid, std::vector< COLLADAFW::Node * > &result) |
| bool | find_node_in_tree (COLLADAFW::Node *node, COLLADAFW::Node *tree_root) |
Definition at line 41 of file SkinInfo.h.
|
default |
| SkinInfo::SkinInfo | ( | const SkinInfo & | skin | ) |
Definition at line 60 of file SkinInfo.cpp.
References copy_m4_m4(), transfer_int_array_data_const(), and transfer_uint_array_data_const().
| SkinInfo::SkinInfo | ( | UnitConverter * | conv | ) |
Definition at line 75 of file SkinInfo.cpp.
| void SkinInfo::add_joint | ( | const COLLADABU::Math::Matrix4 & | matrix | ) |
Definition at line 129 of file SkinInfo.cpp.
References UnitConverter::dae_matrix_to_mat4_().
Referenced by ArmatureImporter::write_skin_controller_data().
| Object * SkinInfo::BKE_armature_from_object | ( | ) |
Definition at line 185 of file SkinInfo.cpp.
Referenced by ArmatureImporter::get_armature_for_joint(), and ArmatureImporter::make_armatures().
| void SkinInfo::borrow_skin_controller_data | ( | const COLLADAFW::SkinControllerData * | skin | ) |
Definition at line 102 of file SkinInfo.cpp.
References bc_get_float_value(), UnitConverter::dae_matrix_to_mat4_(), and transfer_array_data().
Referenced by ArmatureImporter::write_skin_controller_data().
Definition at line 155 of file SkinInfo.cpp.
References bc_add_object(), OB_ARMATURE, and scene.
| bool SkinInfo::find_node_in_tree | ( | COLLADAFW::Node * | node, |
| COLLADAFW::Node * | tree_root | ||
| ) |
| void SkinInfo::find_root_joints | ( | const std::vector< COLLADAFW::Node * > & | root_joints, |
| std::map< COLLADAFW::UniqueId, COLLADAFW::Node * > & | joint_by_uid, | ||
| std::vector< COLLADAFW::Node * > & | result | ||
| ) |
Definition at line 315 of file SkinInfo.cpp.
References find_node_in_tree(), and result.
| void SkinInfo::free | ( | ) |
Definition at line 118 of file SkinInfo.cpp.
Referenced by ArmatureImporter::make_armatures().
| const COLLADAFW::UniqueId & SkinInfo::get_controller_uid | ( | ) |
Definition at line 190 of file SkinInfo.cpp.
Referenced by ArmatureImporter::make_armatures().
| bool SkinInfo::get_joint_inv_bind_matrix | ( | float | inv_bind_mat[4][4], |
| COLLADAFW::Node * | node | ||
| ) |
Definition at line 171 of file SkinInfo.cpp.
References copy_m4_m4(), and node.
Referenced by ArmatureImporter::get_joint_bind_mat().
| Object * SkinInfo::get_parent | ( | ) |
Definition at line 310 of file SkinInfo.cpp.
Referenced by ArmatureImporter::make_armatures().
| bPoseChannel * SkinInfo::get_pose_channel_from_node | ( | COLLADAFW::Node * | node | ) |
Definition at line 300 of file SkinInfo.cpp.
References bc_get_joint_name(), BKE_pose_channel_find_name(), node, and Object::pose.
| void SkinInfo::link_armature | ( | bContext * | C, |
| Object * | ob, | ||
| std::map< COLLADAFW::UniqueId, COLLADAFW::Node * > & | joint_by_uid, | ||
| TransformReader * | tm | ||
| ) |
Definition at line 220 of file SkinInfo.cpp.
References ARM_DEF_VGROUP, bc_get_joint_name(), bc_set_parent(), BKE_object_apply_mat4(), BKE_object_defgroup_add_name(), BKE_object_is_child_recursive(), BKE_object_workob_calc_parent(), BLI_findlink(), C, copy_m4_m4(), CTX_data_main(), CTX_data_scene(), Object::defbase, ArmatureModifierData::deformflag, DEG_id_tag_update(), ED_object_modifier_add(), ED_vgroup_vert_add(), eModifierType_Armature, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, invert_m4_m4(), ArmatureModifierData::object, Object::obmat, Object::parent, Object::parentinv, PAROBJECT, Object::partype, scene, and WEIGHT_REPLACE.
Referenced by ArmatureImporter::make_armatures().
Definition at line 161 of file SkinInfo.cpp.
| void SkinInfo::set_controller | ( | const COLLADAFW::SkinController * | co | ) |
Definition at line 136 of file SkinInfo.cpp.
| void SkinInfo::set_parent | ( | Object * | _parent | ) |
Definition at line 305 of file SkinInfo.cpp.
Definition at line 80 of file SkinInfo.cpp.
Referenced by borrow_skin_controller_data().
| void SkinInfo::transfer_int_array_data_const | ( | const COLLADAFW::IntValuesArray & | src, |
| COLLADAFW::IntValuesArray & | dest | ||
| ) |
Definition at line 88 of file SkinInfo.cpp.
Referenced by SkinInfo().
| void SkinInfo::transfer_uint_array_data_const | ( | const COLLADAFW::UIntValuesArray & | src, |
| COLLADAFW::UIntValuesArray & | dest | ||
| ) |
Definition at line 95 of file SkinInfo.cpp.
Referenced by SkinInfo().
| bool SkinInfo::uses_joint_or_descendant | ( | COLLADAFW::Node * | node | ) |
Definition at line 200 of file SkinInfo.cpp.
References node.
Referenced by ArmatureImporter::get_armature_for_joint().