|
Blender V4.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 24 of file collada_internal.h.
| Enumerator | |
|---|---|
| None | |
| Metric | |
| Imperial | |
Definition at line 35 of file collada_internal.h.
| UnitConverter::UnitConverter | ( | ) |
Definition at line 18 of file collada_internal.cpp.
References axis_angle_to_mat4_single(), M_PI_2, and unit_m4().
| void UnitConverter::calculate_scale | ( | Scene & | sce | ) |
Definition at line 114 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(), USER_UNIT_METRIC, and USER_UNIT_NONE.
Referenced by DocumentImporter::finish().
| void UnitConverter::convertVector3 | ( | COLLADABU::Math::Vector3 & | vec, |
| float * | v ) |
Definition at line 56 of file collada_internal.cpp.
References v.
|
static |
Definition at line 65 of file collada_internal.cpp.
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 94 of file collada_internal.cpp.
Referenced by bc_match_scale().
| float(& UnitConverter::get_scale | ( | ) | )[4] |
Definition at line 109 of file collada_internal.cpp.
Referenced by bc_match_scale().
| float UnitConverter::getLinearMeter | ( | void | ) |
Definition at line 51 of file collada_internal.cpp.
References float.
Referenced by calculate_scale(), and DocumentImporter::finish().
| UnitConverter::UnitSystem UnitConverter::isMetricSystem | ( | void | ) |
Definition at line 33 of file collada_internal.cpp.
References Imperial, Metric, and None.
Referenced by DocumentImporter::finish().
Definition at line 76 of file collada_internal.cpp.
References transpose_m4_m4().
Referenced by mat4_to_dae_double().
Definition at line 81 of file collada_internal.cpp.
References mat4_to_dae().
Referenced by TransformWriter::add_joint_transform(), and TransformWriter::add_node_transform_ob().
| void UnitConverter::read_asset | ( | const COLLADAFW::FileInfo * | asset | ) |
Definition at line 27 of file collada_internal.cpp.
Referenced by DocumentImporter::writeGlobalAsset().