|
Blender
V2.59
|
Go to the source code of this file.
Typedefs | |
| typedef std::map< std::string, std::vector< std::string > > | map_string_list |
Functions | |
| void | clear_global_id_map () |
| std::string | translate_id (const std::string &id) |
| std::string | id_name (void *id) |
| std::string | get_geometry_id (Object *ob) |
| std::string | get_light_id (Object *ob) |
| std::string | get_joint_id (Bone *bone, Object *ob_arm) |
| std::string | get_camera_id (Object *ob) |
| std::string | get_material_id (Material *mat) |
| bool | has_object_type (Scene *sce, short obtype) |
Variables | |
| const unsigned char | translate_start_name_map [256] |
| const unsigned char | translate_name_map [256] |
| map_string_list | global_id_map |
Definition in file collada_internal.cpp.
| typedef std::map< std::string, std::vector<std::string> > map_string_list |
Definition at line 192 of file collada_internal.cpp.
| void clear_global_id_map | ( | ) |
Definition at line 195 of file collada_internal.cpp.
References global_id_map.
Referenced by DocumentExporter::exportCurrentScene().
| std::string get_camera_id | ( | Object * | ob | ) |
Definition at line 271 of file collada_internal.cpp.
References id_name(), and translate_id().
Referenced by CamerasExporter::operator()(), and SceneExporter::writeNodes().
| std::string get_geometry_id | ( | Object * | ob | ) |
Definition at line 256 of file collada_internal.cpp.
References Object::data, id_name(), and translate_id().
Referenced by GeometryExporter::operator()(), and SceneExporter::writeNodes().
Definition at line 266 of file collada_internal.cpp.
References Bone::name, and translate_id().
Referenced by ArmatureExporter::add_instance_controller().
| std::string get_light_id | ( | Object * | ob | ) |
Definition at line 261 of file collada_internal.cpp.
References id_name(), and translate_id().
Referenced by LightsExporter::operator()(), and SceneExporter::writeNodes().
| std::string get_material_id | ( | Material * | mat | ) |
Definition at line 276 of file collada_internal.cpp.
References id_name(), and translate_id().
Referenced by InstanceWriter::add_material_bindings(), and MaterialsExporter::operator()().
| bool has_object_type | ( | Scene * | sce, |
| short | obtype | ||
| ) |
Definition at line 281 of file collada_internal.cpp.
References Scene::base, Object::data, ListBase::first, Base::next, Base::object, and Object::type.
Referenced by DocumentExporter::exportCurrentScene().
| std::string id_name | ( | void * | id | ) |
Definition at line 251 of file collada_internal.cpp.
Referenced by InstanceWriter::add_material_bindings(), GeometryExporter::createPolylist(), EffectsExporter::createTexture(), DocumentExporter::exportCurrentScene(), SceneExporter::exportScene(), get_camera_id(), get_geometry_id(), get_light_id(), get_material_id(), CamerasExporter::operator()(), LightsExporter::operator()(), ImagesExporter::operator()(), EffectsExporter::operator()(), MaterialsExporter::operator()(), ForEachMaterialFunctor< Functor >::operator()(), AnimationExporter::operator()(), AnimationExporter::sample_and_write_bone_animation(), and SceneExporter::writeNodes().
| std::string translate_id | ( | const std::string & | id | ) |
Look at documentation of translate_map
Definition at line 201 of file collada_internal.cpp.
References PixelFormat::convert(), global_id_map, i, Scene::id, size(), translate_name_map, and translate_start_name_map.
Referenced by InstanceWriter::add_material_bindings(), GeometryExporter::createPolylist(), EffectsExporter::createTexture(), AnimationExporter::dae_animation(), AnimationExporter::dae_bone_animation(), DocumentExporter::exportCurrentScene(), SceneExporter::exportScene(), get_camera_id(), get_geometry_id(), get_joint_id(), get_light_id(), get_material_id(), ImagesExporter::operator()(), EffectsExporter::operator()(), MaterialsExporter::operator()(), ForEachMaterialFunctor< Functor >::operator()(), and SceneExporter::writeNodes().
Definition at line 193 of file collada_internal.cpp.
Referenced by clear_global_id_map(), and translate_id().
| const unsigned char translate_name_map[256] |
Definition at line 158 of file collada_internal.cpp.
Referenced by translate_id().
| const unsigned char 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 124 of file collada_internal.cpp.
Referenced by translate_id().