Blender V2.61 - r43446
Typedefs | Functions | Variables

collada_internal.cpp File Reference

#include "COLLADABUPlatform.h"
#include "collada_internal.h"

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

Detailed Description

Definition in file collada_internal.cpp.


Typedef Documentation

typedef std::map< std::string, std::vector<std::string> > map_string_list

Definition at line 190 of file collada_internal.cpp.


Function Documentation

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)
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()().

std::string get_joint_id ( Bone bone,
Object ob_arm 
)

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)
bool has_object_type ( Scene sce,
short  obtype 
)
std::string id_name ( void *  id)
std::string translate_id ( const std::string &  id)

Variable Documentation

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().