|
Blender V5.3
|
Public Member Functions | |
| FbxImportContext (Main *main, const ufbx_scene *fbx, const FBXImportParams ¶ms) | |
| ~FbxImportContext () | |
| void | import_globals (Scene *scene) const |
| void | import_materials () |
| void | import_meshes () |
| void | import_cameras () |
| void | import_lights () |
| void | import_empties () |
| void | import_armatures () |
| void | import_animation (double fps) |
| void | setup_hierarchy () |
Public Attributes | |
| Main * | bmain |
| const ufbx_scene & | fbx |
| const FBXImportParams & | params |
| std::string | base_dir |
| FbxElementMapping | mapping |
Definition at line 47 of file fbx_import.cc.
|
inline |
Definition at line 54 of file fbx_import.cc.
References base_dir, blender::BLI_fopen(), blender::BLI_path_split_dir_part(), bmain, fbx, FILE_MAX, blender::FBXImportParams::filepath, blender::io::fbx::FbxElementMapping::global_conv_matrix, main, and params.
|
inline |
Definition at line 74 of file fbx_import.cc.
| void blender::io::fbx::FbxImportContext::import_animation | ( | double | fps | ) |
Definition at line 286 of file fbx_import.cc.
References blender::FBXImportParams::anim_offset, bmain, fbx, blender::io::fbx::import_animations(), mapping, params, and blender::FBXImportParams::use_anim.
Referenced by blender::io::fbx::importer_main().
| void blender::io::fbx::FbxImportContext::import_armatures | ( | ) |
Definition at line 250 of file fbx_import.cc.
References bmain, fbx, blender::io::fbx::import_armatures(), mapping, and params.
Referenced by blender::io::fbx::importer_main().
| void blender::io::fbx::FbxImportContext::import_cameras | ( | ) |
Definition at line 149 of file fbx_import.cc.
References blender::BKE_camera_add(), blender::BKE_object_add_only_object(), bmain, blender::CAM_DOF_ENABLED, blender::CAM_ORTHO, blender::CAM_PERSP, blender::io::fbx::FbxElementMapping::el_to_object, fbx, blender::io::fbx::get_fbx_name(), blender::io::fbx::FbxElementMapping::imported_objects, mapping, node, blender::io::fbx::node_matrix_to_obj(), blender::OB_CAMERA, blender::OB_HIDE_VIEWPORT, params, blender::io::fbx::read_custom_properties(), blender::io::fbx::should_import_camera(), and blender::FBXImportParams::use_custom_props.
Referenced by blender::io::fbx::importer_main().
| void blender::io::fbx::FbxImportContext::import_empties | ( | ) |
Definition at line 255 of file fbx_import.cc.
References blender::BKE_object_add_only_object(), bmain, blender::io::fbx::FbxElementMapping::el_to_object, ELEM, fbx, blender::io::fbx::get_fbx_name(), blender::io::fbx::FbxElementMapping::imported_objects, mapping, node, blender::io::fbx::node_matrix_to_obj(), blender::OB_EMPTY, blender::OB_HIDE_VIEWPORT, params, blender::io::fbx::read_custom_properties(), and blender::FBXImportParams::use_custom_props.
Referenced by blender::io::fbx::importer_main().
| void blender::io::fbx::FbxImportContext::import_globals | ( | Scene * | scene | ) | const |
Definition at line 95 of file fbx_import.cc.
References fbx, blender::RenderData::frs_sec, blender::RenderData::frs_sec_base, blender::Scene::r, and roundf.
Referenced by blender::io::fbx::importer_main().
| void blender::io::fbx::FbxImportContext::import_lights | ( | ) |
Definition at line 200 of file fbx_import.cc.
References blender::BKE_light_add(), blender::BKE_object_add_only_object(), bmain, blender::eevee::LightData::color, DEG2RAD, blender::io::fbx::FbxElementMapping::el_to_object, fbx, blender::io::fbx::get_fbx_name(), blender::io::fbx::FbxElementMapping::imported_objects, blender::LA_LOCAL, blender::LA_SHADOW, blender::LA_SPOT, blender::LA_SUN, mapping, node, blender::io::fbx::node_matrix_to_obj(), blender::OB_HIDE_VIEWPORT, blender::OB_LAMP, params, blender::io::fbx::read_custom_properties(), blender::eevee::LightData::type, blender::FBXImportParams::use_custom_props, packed_float3::x, packed_float3::y, and packed_float3::z.
Referenced by blender::io::fbx::importer_main().
| void blender::io::fbx::FbxImportContext::import_materials | ( | ) |
Definition at line 103 of file fbx_import.cc.
References base_dir, blender::BKE_libblock_find_name(), bmain, fbx, blender::ID_MA, blender::io::fbx::import_material(), mapping, blender::io::fbx::FbxElementMapping::mat_to_material, blender::FBXImportParams::mtl_name_collision_mode, params, blender::io::fbx::read_custom_properties(), blender::ReferenceExisting, and blender::FBXImportParams::use_custom_props.
Referenced by blender::io::fbx::importer_main().
| void blender::io::fbx::FbxImportContext::import_meshes | ( | ) |
Definition at line 122 of file fbx_import.cc.
References bmain, fbx, blender::io::fbx::import_meshes(), mapping, and params.
Referenced by blender::io::fbx::importer_main().
| void blender::io::fbx::FbxImportContext::setup_hierarchy | ( | ) |
Definition at line 294 of file fbx_import.cc.
References blender::io::fbx::FbxElementMapping::el_to_object, ELEM, mapping, and node.
Referenced by blender::io::fbx::importer_main().
| std::string blender::io::fbx::FbxImportContext::base_dir |
Definition at line 51 of file fbx_import.cc.
Referenced by FbxImportContext(), and import_materials().
| Main* blender::io::fbx::FbxImportContext::bmain |
Definition at line 48 of file fbx_import.cc.
Referenced by FbxImportContext(), import_animation(), import_armatures(), import_cameras(), import_empties(), import_lights(), import_materials(), and import_meshes().
| const ufbx_scene& blender::io::fbx::FbxImportContext::fbx |
Definition at line 49 of file fbx_import.cc.
Referenced by FbxImportContext(), import_animation(), import_armatures(), import_cameras(), import_empties(), import_globals(), import_lights(), import_materials(), import_meshes(), and blender::io::fbx::importer_main().
| FbxElementMapping blender::io::fbx::FbxImportContext::mapping |
Definition at line 52 of file fbx_import.cc.
Referenced by import_animation(), import_armatures(), import_cameras(), import_empties(), import_lights(), import_materials(), import_meshes(), blender::io::fbx::importer_main(), and setup_hierarchy().
| const FBXImportParams& blender::io::fbx::FbxImportContext::params |
Definition at line 50 of file fbx_import.cc.
Referenced by FbxImportContext(), import_animation(), import_armatures(), import_cameras(), import_empties(), import_lights(), import_materials(), and import_meshes().