Blender V4.5
ArmatureImporter Class Reference

#include <ArmatureImporter.h>

Inherits TransformReader.

Public Member Functions

 ArmatureImporter (UnitConverter *conv, MeshImporterBase *mesh, Main *bmain, Scene *sce, ViewLayer *view_layer, const ImportSettings *import_settings)
 ~ArmatureImporter ()
void add_root_joint (COLLADAFW::Node *node, Object *parent)
void make_armatures (bContext *C, std::vector< Object * > &objects_to_scale)
void make_shape_keys (bContext *C)
bool write_skin_controller_data (const COLLADAFW::SkinControllerData *data)
bool write_controller (const COLLADAFW::Controller *controller)
COLLADAFW::UniqueId * get_geometry_uid (const COLLADAFW::UniqueId &controller_uid)
Objectget_armature_for_joint (COLLADAFW::Node *node)
void get_rna_path_for_joint (COLLADAFW::Node *node, char *joint_path, size_t joint_path_maxncpy)
bool get_joint_bind_mat (float m[4][4], COLLADAFW::Node *joint)
void set_tags_map (TagsMap &tags_map)

Detailed Description

Definition at line 40 of file ArmatureImporter.h.

Constructor & Destructor Documentation

◆ ArmatureImporter()

ArmatureImporter::ArmatureImporter ( UnitConverter * conv,
MeshImporterBase * mesh,
Main * bmain,
Scene * sce,
ViewLayer * view_layer,
const ImportSettings * import_settings )

Definition at line 38 of file ArmatureImporter.cpp.

References nullptr, and TransformReader::TransformReader().

◆ ~ArmatureImporter()

ArmatureImporter::~ArmatureImporter ( )

Definition at line 55 of file ArmatureImporter.cpp.

Member Function Documentation

◆ add_root_joint()

void ArmatureImporter::add_root_joint ( COLLADAFW::Node * node,
Object * parent )

root - if this joint is the top joint in hierarchy, if a joint is a child of a node (not joint), root should be true since this is where we build armature bones from

Definition at line 751 of file ArmatureImporter.cpp.

◆ get_armature_for_joint()

Object * ArmatureImporter::get_armature_for_joint ( COLLADAFW::Node * node)

◆ get_geometry_uid()

COLLADAFW::UniqueId * ArmatureImporter::get_geometry_uid ( const COLLADAFW::UniqueId & controller_uid)

Definition at line 988 of file ArmatureImporter.cpp.

Referenced by make_armatures().

◆ get_joint_bind_mat()

bool ArmatureImporter::get_joint_bind_mat ( float m[4][4],
COLLADAFW::Node * joint )

Gives a world-space mat.

Definition at line 1031 of file ArmatureImporter.cpp.

References SkinInfo::get_joint_inv_bind_matrix(), and invert_m4().

◆ get_rna_path_for_joint()

void ArmatureImporter::get_rna_path_for_joint ( COLLADAFW::Node * node,
char * joint_path,
size_t joint_path_maxncpy )

◆ make_armatures()

void ArmatureImporter::make_armatures ( bContext * C,
std::vector< Object * > & objects_to_scale )

◆ make_shape_keys()

◆ set_tags_map()

void ArmatureImporter::set_tags_map ( TagsMap & tags_map)

Definition at line 1017 of file ArmatureImporter.cpp.

◆ write_controller()

bool ArmatureImporter::write_controller ( const COLLADAFW::Controller * controller)

Definition at line 903 of file ArmatureImporter.cpp.

References controller.

◆ write_skin_controller_data()

bool ArmatureImporter::write_skin_controller_data ( const COLLADAFW::SkinControllerData * data)

The documentation for this class was generated from the following files: