52 std::map<COLLADAFW::UniqueId, std::vector<FCurve *>> curve_map;
53 std::map<COLLADAFW::UniqueId, TransformReader::Animation> uid_animated_map;
55 std::map<COLLADAFW::UniqueId, const COLLADAFW::AnimationList *> animlist_map;
56 std::vector<FCurve *> unused_curves;
57 std::map<COLLADAFW::UniqueId, Object *> joint_objects;
59 FCurve *create_fcurve(
int array_index,
const char *rna_path);
69 void animation_to_fcurves(COLLADAFW::AnimationCurve *curve);
71 void fcurve_deg_to_rad(
FCurve *cu);
72 void fcurve_scale(
FCurve *cu,
int scale);
74 void fcurve_is_used(
FCurve *fcu);
78 std::string import_from_version;
98 MATERIAL_SHININESS = 2,
99 MATERIAL_SPEC_COLOR = 4,
100 MATERIAL_DIFF_COLOR = 1 << 3,
101 MATERIAL_TRANSPARENCY = 1 << 4,
102 MATERIAL_IOR = 1 << 5,
107 BC_NODE_TRANSFORM = 1,
120 :
TransformReader(conv), mContext(C), armature_importer(arm), scene(scene)
141 std::map<COLLADAFW::UniqueId, COLLADAFW::Node *> &root_map,
142 std::multimap<COLLADAFW::UniqueId, Object *> &object_map,
143 std::map<COLLADAFW::UniqueId, const COLLADAFW::Object *> FW_object_map,
144 std::map<COLLADAFW::UniqueId, Material *> uid_material_map);
151 const COLLADAFW::Node *node,
152 std::map<COLLADAFW::UniqueId, const COLLADAFW::Object *> FW_object_map);
155 std::vector<FCurve *> &animcurves,
156 COLLADAFW::Node *root,
157 COLLADAFW::Node *node,
158 COLLADAFW::Transformation *tm);
165 const COLLADAFW::AnimationList::AnimationBinding *binding,
166 std::vector<FCurve *> *curves,
176 const char *anim_type);
179 const char *anim_type);
189 const char *anim_type,
192 int setAnimType(
const COLLADAFW::Animatable *prop,
int type,
int addition);
196 const char *rna_path,
201 void find_frames(std::vector<float> *frames, std::vector<FCurve *> *curves);
214 const char *node_id);
217 void get_joint_rest_mat(
float mat[4][4], COLLADAFW::Node *root, COLLADAFW::Node *node);
222 COLLADAFW::Node *node,
223 COLLADAFW::Node *end);
void translate_Animations(COLLADAFW::Node *Node, std::map< COLLADAFW::UniqueId, COLLADAFW::Node * > &root_map, std::multimap< COLLADAFW::UniqueId, Object * > &object_map, std::map< COLLADAFW::UniqueId, const COLLADAFW::Object * > FW_object_map, std::map< COLLADAFW::UniqueId, Material * > uid_material_map)