Blender V2.61 - r43446
Classes | Public Member Functions

AnimationImporter Class Reference

#include <AnimationImporter.h>

Inheritance diagram for AnimationImporter:
Inheritance graph
[legend]

List of all members.

Classes

struct  AnimMix

Public Member Functions

 AnimationImporter (UnitConverter *conv, ArmatureImporter *arm, Scene *scene)
 ~AnimationImporter ()
bool write_animation (const COLLADAFW::Animation *anim)
bool write_animation_list (const COLLADAFW::AnimationList *animlist)
void read_node_transform (COLLADAFW::Node *node, Object *ob)
void translate_Animations (COLLADAFW::Node *Node, std::map< COLLADAFW::UniqueId, COLLADAFW::Node * > &root_map, std::map< COLLADAFW::UniqueId, Object * > &object_map, std::map< COLLADAFW::UniqueId, const COLLADAFW::Object * > FW_object_map)
AnimMix * get_animation_type (const COLLADAFW::Node *node, std::map< COLLADAFW::UniqueId, const COLLADAFW::Object * > FW_object_map)
void apply_matrix_curves (Object *ob, std::vector< FCurve * > &animcurves, COLLADAFW::Node *root, COLLADAFW::Node *node, COLLADAFW::Transformation *tm)
void Assign_transform_animations (COLLADAFW::Transformation *transform, const COLLADAFW::AnimationList::AnimationBinding *binding, std::vector< FCurve * > *curves, bool is_joint, char *joint_path)
void Assign_color_animations (const COLLADAFW::UniqueId &listid, ListBase *AnimCurves, const char *anim_type)
void Assign_float_animations (const COLLADAFW::UniqueId &listid, ListBase *AnimCurves, const char *anim_type)
int setAnimType (const COLLADAFW::Animatable *prop, int type, int addition)
void modify_fcurve (std::vector< FCurve * > *curves, const char *rna_path, int array_index)
Objecttranslate_animation_OLD (COLLADAFW::Node *node, std::map< COLLADAFW::UniqueId, Object * > &object_map, std::map< COLLADAFW::UniqueId, COLLADAFW::Node * > &root_map, COLLADAFW::Transformation::TransformationType tm_type, Object *par_job=NULL)
void find_frames (std::vector< float > *frames, std::vector< FCurve * > *curves)
void find_frames_old (std::vector< float > *frames, COLLADAFW::Node *node, COLLADAFW::Transformation::TransformationType tm_type)
void evaluate_transform_at_frame (float mat[4][4], COLLADAFW::Node *node, float fra)
bool evaluate_animation (COLLADAFW::Transformation *tm, float mat[4][4], float fra, const char *node_id)
void get_joint_rest_mat (float mat[4][4], COLLADAFW::Node *root, COLLADAFW::Node *node)
bool calc_joint_parent_mat_rest (float mat[4][4], float par[4][4], COLLADAFW::Node *node, COLLADAFW::Node *end)
void add_bone_fcurve (Object *ob, COLLADAFW::Node *node, FCurve *fcu)
void add_bezt (FCurve *fcu, float fra, float value)
void extra_data_importer (std::string elementName)

Detailed Description

Definition at line 63 of file AnimationImporter.h.


Constructor & Destructor Documentation

AnimationImporter::AnimationImporter ( UnitConverter conv,
ArmatureImporter arm,
Scene scene 
)

Definition at line 243 of file AnimationImporter.cpp.

AnimationImporter::~AnimationImporter ( )

Definition at line 246 of file AnimationImporter.cpp.

References free_fcurve().


Member Function Documentation

void AnimationImporter::add_bezt ( FCurve fcu,
float  fra,
float  value 
)
void AnimationImporter::add_bone_fcurve ( Object ob,
COLLADAFW::Node node,
FCurve fcu 
)
void AnimationImporter::apply_matrix_curves ( Object ob,
std::vector< FCurve * > &  animcurves,
COLLADAFW::Node root,
COLLADAFW::Node node,
COLLADAFW::Transformation *  tm 
)
void AnimationImporter::Assign_color_animations ( const COLLADAFW::UniqueId &  listid,
ListBase AnimCurves,
const char *  anim_type 
)

Definition at line 567 of file AnimationImporter.cpp.

References BLI_addtail(), BLI_strncpy(), and modify_fcurve().

Referenced by translate_Animations().

void AnimationImporter::Assign_float_animations ( const COLLADAFW::UniqueId &  listid,
ListBase AnimCurves,
const char *  anim_type 
)

Definition at line 610 of file AnimationImporter.cpp.

References BLI_addtail(), BLI_strncpy(), and modify_fcurve().

Referenced by translate_Animations().

void AnimationImporter::Assign_transform_animations ( COLLADAFW::Transformation *  transform,
const COLLADAFW::AnimationList::AnimationBinding *  binding,
std::vector< FCurve * > *  curves,
bool  is_joint,
char *  joint_path 
)

Definition at line 460 of file AnimationImporter.cpp.

References BLI_snprintf(), BLI_strncpy(), modify_fcurve(), ROTATE, Rotate, and TRANSLATE.

Referenced by translate_Animations().

bool AnimationImporter::calc_joint_parent_mat_rest ( float  mat[4][4],
float  par[4][4],
COLLADAFW::Node node,
COLLADAFW::Node end 
)
bool AnimationImporter::evaluate_animation ( COLLADAFW::Transformation *  tm,
float  mat[4][4],
float  fra,
const char *  node_id 
)
void AnimationImporter::evaluate_transform_at_frame ( float  mat[4][4],
COLLADAFW::Node node,
float  fra 
)
void AnimationImporter::extra_data_importer ( std::string  elementName)
void AnimationImporter::find_frames ( std::vector< float > *  frames,
std::vector< FCurve * > *  curves 
)

Definition at line 442 of file AnimationImporter.cpp.

References FCurve::bezt, find(), FCurve::totvert, and BezTriple::vec.

Referenced by apply_matrix_curves().

void AnimationImporter::find_frames_old ( std::vector< float > *  frames,
COLLADAFW::Node node,
COLLADAFW::Transformation::TransformationType  tm_type 
)
AnimationImporter::AnimMix * AnimationImporter::get_animation_type ( const COLLADAFW::Node node,
std::map< COLLADAFW::UniqueId, const COLLADAFW::Object * >  FW_object_map 
)

Definition at line 997 of file AnimationImporter.cpp.

References i, NULL, setAnimType(), transform(), and types.

Referenced by translate_Animations().

void AnimationImporter::get_joint_rest_mat ( float  mat[4][4],
COLLADAFW::Node root,
COLLADAFW::Node node 
)
void AnimationImporter::modify_fcurve ( std::vector< FCurve * > *  curves,
const char *  rna_path,
int  array_index 
)
void AnimationImporter::read_node_transform ( COLLADAFW::Node node,
Object ob 
)
int AnimationImporter::setAnimType ( const COLLADAFW::Animatable *  prop,
int  type,
int  addition 
)

Definition at line 1070 of file AnimationImporter.cpp.

References types.

Referenced by get_animation_type().

Object * AnimationImporter::translate_animation_OLD ( COLLADAFW::Node node,
std::map< COLLADAFW::UniqueId, Object * > &  object_map,
std::map< COLLADAFW::UniqueId, COLLADAFW::Node * > &  root_map,
COLLADAFW::Transformation::TransformationType  tm_type,
Object par_job = NULL 
)
void AnimationImporter::translate_Animations ( COLLADAFW::Node Node,
std::map< COLLADAFW::UniqueId, COLLADAFW::Node * > &  root_map,
std::map< COLLADAFW::UniqueId, Object * > &  object_map,
std::map< COLLADAFW::UniqueId, const COLLADAFW::Object * >  FW_object_map 
)
bool AnimationImporter::write_animation ( const COLLADAFW::Animation *  anim)

Definition at line 256 of file AnimationImporter.cpp.

References interp().

Referenced by DocumentImporter::writeAnimation().

bool AnimationImporter::write_animation_list ( const COLLADAFW::AnimationList *  animlist)

Definition at line 298 of file AnimationImporter.cpp.

Referenced by DocumentImporter::writeAnimationList().


The documentation for this class was generated from the following files: