Blender V2.61 - r43446
|
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 190 of file collada_internal.cpp.
void clear_global_id_map | ( | ) |
Definition at line 193 of file collada_internal.cpp.
References global_id_map.
Referenced by DocumentExporter::exportCurrentScene().
std::string get_camera_id | ( | Object * | ob | ) |
Definition at line 269 of file collada_internal.cpp.
References id_name(), and translate_id().
Referenced by AnimationExporter::dae_animation(), and CamerasExporter::operator()().
std::string get_geometry_id | ( | Object * | ob | ) |
Definition at line 254 of file collada_internal.cpp.
References Object::data, id_name(), and translate_id().
Referenced by GeometryExporter::operator()().
Definition at line 264 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 259 of file collada_internal.cpp.
References id_name(), and translate_id().
Referenced by AnimationExporter::dae_animation(), and LightsExporter::operator()().
std::string get_material_id | ( | Material * | mat | ) |
Definition at line 274 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 279 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 249 of file collada_internal.cpp.
Referenced by InstanceWriter::add_material_bindings(), GeometryExporter::createPolylist(), EffectsExporter::createTexture(), AnimationExporter::dae_animation(), AnimationExporter::dae_baked_animation(), DocumentExporter::exportCurrentScene(), SceneExporter::exportScene(), GroupExporter::exportScene(), get_camera_id(), get_geometry_id(), get_light_id(), get_material_id(), AnimationExporter::getObjectBoneName(), ForEachMaterialFunctor< Functor >::operator()(), MaterialsExporter::operator()(), LightsExporter::operator()(), ImagesExporter::operator()(), EffectsExporter::operator()(), CamerasExporter::operator()(), and AnimationExporter::sample_and_write_bone_animation().
std::string translate_id | ( | const std::string & | id | ) |
Look at documentation of translate_map
Definition at line 199 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_baked_animation(), AnimationExporter::dae_bone_animation(), DocumentExporter::exportCurrentScene(), SceneExporter::exportScene(), GroupExporter::exportScene(), get_camera_id(), get_geometry_id(), get_joint_id(), get_light_id(), get_material_id(), ForEachMaterialFunctor< Functor >::operator()(), MaterialsExporter::operator()(), ImagesExporter::operator()(), and EffectsExporter::operator()().
Definition at line 191 of file collada_internal.cpp.
Referenced by clear_global_id_map(), and translate_id().
const unsigned char translate_name_map[256] |
Definition at line 156 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 122 of file collada_internal.cpp.
Referenced by translate_id().