Blender
V3.3
|
#include <collada_internal.h>
Public Types | |
enum | UnitSystem { None , Metric , Imperial } |
Public Member Functions | |
UnitConverter () | |
void | read_asset (const COLLADAFW::FileInfo *asset) |
void | convertVector3 (COLLADABU::Math::Vector3 &vec, float *v) |
UnitConverter::UnitSystem | isMetricSystem (void) |
float | getLinearMeter (void) |
float(& | get_rotation ())[4] |
float(& | get_scale ())[4] |
void | calculate_scale (Scene &sce) |
Static Public Member Functions | |
static void | dae_matrix_to_mat4_ (float out[4][4], const COLLADABU::Math::Matrix4 &in) |
static void | mat4_to_dae (float out[4][4], float in[4][4]) |
static void | mat4_to_dae_double (double out[4][4], float in[4][4]) |
Definition at line 23 of file collada_internal.h.
Enumerator | |
---|---|
None | |
Metric | |
Imperial |
Definition at line 34 of file collada_internal.h.
UnitConverter::UnitConverter | ( | ) |
Definition at line 15 of file collada_internal.cpp.
References axis_angle_to_mat4_single(), M_PI_2, and unit_m4().
Definition at line 111 of file collada_internal.cpp.
References getLinearMeter(), Scene::id, RNA_id_pointer_create(), RNA_pointer_get(), RNA_property_enum_get(), RNA_property_float_get(), RNA_struct_find_property(), size_to_mat4(), type, USER_UNIT_METRIC, and USER_UNIT_NONE.
Referenced by DocumentImporter::finish().
void UnitConverter::convertVector3 | ( | COLLADABU::Math::Vector3 & | vec, |
float * | v | ||
) |
Definition at line 53 of file collada_internal.cpp.
References v.
|
static |
Definition at line 62 of file collada_internal.cpp.
References usdtokens::out().
Referenced by SkinInfo::add_joint(), SkinInfo::borrow_skin_controller_data(), TransformReader::dae_matrix_to_mat4(), and AnimationImporter::evaluate_animation().
float(& UnitConverter::get_rotation | ( | ) | )[4] |
Definition at line 91 of file collada_internal.cpp.
Referenced by bc_match_scale().
float(& UnitConverter::get_scale | ( | ) | )[4] |
Definition at line 106 of file collada_internal.cpp.
Referenced by bc_match_scale().
Definition at line 48 of file collada_internal.cpp.
Referenced by calculate_scale(), DocumentImporter::finish(), and DocumentImporter::writeLight().
UnitConverter::UnitSystem UnitConverter::isMetricSystem | ( | void | ) |
Definition at line 30 of file collada_internal.cpp.
References Imperial, Metric, and None.
Referenced by DocumentImporter::finish().
Definition at line 73 of file collada_internal.cpp.
References usdtokens::out(), and transpose_m4_m4().
Referenced by mat4_to_dae_double().
Definition at line 78 of file collada_internal.cpp.
References mat4_to_dae(), and usdtokens::out().
Referenced by TransformWriter::add_joint_transform(), and TransformWriter::add_node_transform_ob().
void UnitConverter::read_asset | ( | const COLLADAFW::FileInfo * | asset | ) |
Definition at line 24 of file collada_internal.cpp.
Referenced by DocumentImporter::writeGlobalAsset().