46 std::map<COLLADAFW::UniqueId, std::vector<FCurve *>> curve_map;
47 std::map<COLLADAFW::UniqueId, TransformReader::Animation> uid_animated_map;
49 std::map<COLLADAFW::UniqueId, const COLLADAFW::AnimationList *> animlist_map;
50 std::vector<FCurve *> unused_curves;
51 std::map<COLLADAFW::UniqueId, Object *> joint_objects;
53 FCurve *create_fcurve(
int array_index,
const char *rna_path);
63 void animation_to_fcurves(COLLADAFW::AnimationCurve *curve);
65 void fcurve_deg_to_rad(
FCurve *cu);
66 void fcurve_scale(
FCurve *cu,
int scale);
68 void fcurve_is_used(
FCurve *fcu);
72 std::string import_from_version;
92 MATERIAL_SHININESS = 2,
93 MATERIAL_SPEC_COLOR = 4,
94 MATERIAL_DIFF_COLOR = 1 << 3,
95 MATERIAL_TRANSPARENCY = 1 << 4,
96 MATERIAL_IOR = 1 << 5,
101 BC_NODE_TRANSFORM = 1,
135 std::map<COLLADAFW::UniqueId, COLLADAFW::Node *> &root_map,
136 std::multimap<COLLADAFW::UniqueId, Object *> &object_map,
137 std::map<COLLADAFW::UniqueId, const COLLADAFW::Object *> FW_object_map,
138 std::map<COLLADAFW::UniqueId, Material *> uid_material_map);
145 const COLLADAFW::Node *node,
146 std::map<COLLADAFW::UniqueId, const COLLADAFW::Object *> FW_object_map);
149 std::vector<FCurve *> &animcurves,
150 COLLADAFW::Node *root,
151 COLLADAFW::Node *node,
152 COLLADAFW::Transformation *tm);
159 const COLLADAFW::AnimationList::AnimationBinding *binding,
160 std::vector<FCurve *> *curves,
170 const char *anim_type);
173 const char *anim_type);
183 const char *anim_type,
186 int setAnimType(
const COLLADAFW::Animatable *prop,
int type,
int addition);
190 const char *rna_path,
195 void find_frames(std::vector<float> *frames, std::vector<FCurve *> *curves);
208 const char *node_id);
211 void get_joint_rest_mat(
float mat[4][4], COLLADAFW::Node *root, COLLADAFW::Node *node);
216 COLLADAFW::Node *node,
217 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)