|
Blender V4.3
|
#include "COLLADABUPlatform.h"#include "collada_utils.h"#include "BLI_linklist.h"#include "BLI_math_matrix.h"#include "BKE_armature.hh"Go to the source code of this file.
Typedefs | |
| using | map_string_list = std::map<std::string, std::vector<std::string>> |
Functions | |
| void | clear_global_id_map () |
| std::string | translate_id (const char *idString) |
| std::string | translate_id (const std::string &id) |
| std::string | id_name (void *id) |
| std::string | encode_xml (const std::string &xml) |
| std::string | get_geometry_id (Object *ob) |
| std::string | get_geometry_id (Object *ob, bool use_instantiation) |
| std::string | get_light_id (Object *ob) |
| std::string | get_joint_sid (Bone *bone) |
| static std::string | get_joint_sid (EditBone *bone) |
| std::string | get_camera_id (Object *ob) |
| std::string | get_effect_id (Material *mat) |
| std::string | get_material_id (Material *mat) |
| std::string | get_morph_id (Object *ob) |
Variables | |
| const uchar | translate_start_name_map [256] |
| const uchar | translate_name_map [256] |
| map_string_list | global_id_map |
| using map_string_list = std::map<std::string, std::vector<std::string>> |
Definition at line 197 of file collada_internal.cpp.
| void clear_global_id_map | ( | ) |
Definition at line 200 of file collada_internal.cpp.
References global_id_map.
Referenced by DocumentExporter::exportCurrentScene().
| std::string encode_xml | ( | const std::string & | xml | ) |
Definition at line 263 of file collada_internal.cpp.
Referenced by AnimationExporter::export_bone_animation(), AnimationExporter::export_curve_animation(), AnimationExporter::export_matrix_animation(), SceneExporter::exportScene(), AnimationExporter::open_animation_container(), GeometryExporter::operator()(), and MaterialsExporter::operator()().
| std::string get_camera_id | ( | Object * | ob | ) |
Definition at line 310 of file collada_internal.cpp.
References id_name(), and translate_id().
Referenced by CamerasExporter::operator()().
| std::string get_effect_id | ( | Material * | mat | ) |
Definition at line 315 of file collada_internal.cpp.
References id_name(), and translate_id().
Referenced by EffectsExporter::operator()(), and MaterialsExporter::operator()().
| std::string get_geometry_id | ( | Object * | ob | ) |
Definition at line 284 of file collada_internal.cpp.
References Object::data, id_name(), and translate_id().
Referenced by GeometryExporter::export_key_mesh(), and GeometryExporter::operator()().
| std::string get_geometry_id | ( | Object * | ob, |
| bool | use_instantiation ) |
Definition at line 289 of file collada_internal.cpp.
References Object::data, id_name(), and translate_id().
| std::string get_joint_sid | ( | Bone * | bone | ) |
Definition at line 301 of file collada_internal.cpp.
References Bone::name, and translate_id().
|
static |
Definition at line 305 of file collada_internal.cpp.
References EditBone::name, and translate_id().
| std::string get_light_id | ( | Object * | ob | ) |
Definition at line 296 of file collada_internal.cpp.
References id_name(), and translate_id().
Referenced by LightsExporter::operator()().
| std::string get_material_id | ( | Material * | mat | ) |
Definition at line 320 of file collada_internal.cpp.
References id_name(), and translate_id().
Referenced by InstanceWriter::add_material_bindings(), GeometryExporter::create_mesh_primitive_list(), and MaterialsExporter::operator()().
| std::string get_morph_id | ( | Object * | ob | ) |
Definition at line 325 of file collada_internal.cpp.
References id_name(), and translate_id().
| std::string id_name | ( | void * | id | ) |
Definition at line 258 of file collada_internal.cpp.
Referenced by absolute_convert_foreach_path_cb(), BKE_blendfile_link_append_context_item_idtypes_from_library_add(), BKE_mask_clipboard_paste_to_layer(), GeometryExporter::create_mesh_primitive_list(), EffectsExporter::createTexture(), AnimationExporter::export_bone_animation(), AnimationExporter::export_curve_animation(), AnimationExporter::export_matrix_animation(), DocumentExporter::exportCurrentScene(), ImagesExporter::exportImages(), SceneExporter::exportScene(), blender::ed::geometry::gather_input_ids(), BCAnimationCurve::get_animation_name(), get_camera_id(), get_effect_id(), get_geometry_id(), get_geometry_id(), get_light_id(), get_material_id(), get_morph_id(), icon_source_edit_cb(), blender::bke::blendfile::PartialWriteContext::id_create(), blender::deg::RNAPathKey::identifier(), blender::bke::bake::load_materials(), main_namemap_validate_and_fix(), AnimationExporter::open_animation_container(), CamerasExporter::operator()(), EffectsExporter::operator()(), ForEachMaterialFunctor< Functor >::operator()(), GeometryExporter::operator()(), LightsExporter::operator()(), MaterialsExporter::operator()(), prepare(), relative_convert_foreach_path_cb(), unpack_menu(), WM_file_append_datablock(), wm_file_link_append_datablock_ex(), and WM_file_link_datablock().
| std::string translate_id | ( | const char * | idString | ) |
Look at documentation of translate_map
Definition at line 205 of file collada_internal.cpp.
References translate_id().
Referenced by InstanceWriter::add_material_bindings(), bc_get_action_id(), GeometryExporter::create_mesh_primitive_list(), EffectsExporter::createTexture(), AnimationExporter::export_bone_animation(), AnimationExporter::export_curve_animation(), GeometryExporter::export_key_mesh(), AnimationExporter::export_matrix_animation(), DocumentExporter::exportCurrentScene(), ImagesExporter::exportImages(), SceneExporter::exportScene(), get_camera_id(), get_effect_id(), get_geometry_id(), get_geometry_id(), get_joint_sid(), get_joint_sid(), get_light_id(), get_material_id(), get_morph_id(), AnimationExporter::open_animation_container(), AnimationExporter::openAnimationWithClip(), EffectsExporter::operator()(), ForEachMaterialFunctor< Functor >::operator()(), and translate_id().
| std::string translate_id | ( | const std::string & | id | ) |
Look at documentation of translate_map
Definition at line 211 of file collada_internal.cpp.
References global_id_map, translate_name_map, and translate_start_name_map.
| map_string_list global_id_map |
Definition at line 198 of file collada_internal.cpp.
Referenced by clear_global_id_map(), and translate_id().
| const uchar translate_name_map[256] |
Definition at line 178 of file collada_internal.cpp.
Referenced by translate_id().
| const uchar translate_start_name_map[256] |
Translation map. Used to translate every COLLADA id to a valid id, no matter what "wrong" letters may be included. Look at the IDREF XSD declaration for more. Follows strictly the COLLADA XSD declaration which explicitly allows non-English chars, like special chars (e.g. micro sign), umlauts and so on. The COLLADA spec also allows additional chars for member access ('.'), these must obviously be removed too, otherwise they would be heavily misinterpreted.
Definition at line 159 of file collada_internal.cpp.
Referenced by translate_id().