Blender  V2.59
Public Member Functions | Protected Member Functions
AnimationExporter Class Reference

List of all members.

Public Member Functions

 AnimationExporter (COLLADASW::StreamWriter *sw)
void exportAnimations (Scene *sce)
void operator() (Object *ob)

Protected Member Functions

void dae_animation (FCurve *fcu, std::string ob_name)
void write_bone_animation (Object *ob_arm, Bone *bone)
void sample_and_write_bone_animation (Object *ob_arm, Bone *bone, int transform_type)
void sample_animation (float *v, std::vector< float > &frames, int type, Bone *bone, Object *ob_arm)
void dae_bone_animation (std::vector< float > &fra, float *v, int tm_type, int axis, std::string ob_name, std::string bone_name)
float convert_time (float frame)
float convert_angle (float angle)
std::string get_semantic_suffix (COLLADASW::InputSemantic::Semantics semantic)
void add_source_parameters (COLLADASW::SourceBase::ParameterNameList &param, COLLADASW::InputSemantic::Semantics semantic, bool is_rot, const char *axis)
void get_source_values (BezTriple *bezt, COLLADASW::InputSemantic::Semantics semantic, bool rotation, float *values, int *length)
std::string create_source_from_fcurve (COLLADASW::InputSemantic::Semantics semantic, FCurve *fcu, const std::string &anim_id, const char *axis_name)
std::string create_source_from_array (COLLADASW::InputSemantic::Semantics semantic, float *v, int tot, bool is_rot, const std::string &anim_id, const char *axis_name)
std::string create_source_from_vector (COLLADASW::InputSemantic::Semantics semantic, std::vector< float > &fra, bool is_rot, const std::string &anim_id, const char *axis_name)
std::string create_xyz_source (float *v, int tot, const std::string &anim_id)
std::string create_interpolation_source (int tot, const std::string &anim_id, const char *axis_name)
std::string get_transform_sid (char *rna_path, int tm_type, const char *axis_name, bool append_axis)
char * extract_transform_name (char *rna_path)
void find_frames (Object *ob, std::vector< float > &fra, const char *prefix, const char *tm_name)
void find_rotation_frames (Object *ob, std::vector< float > &fra, const char *prefix, int rotmode)
void enable_fcurves (bAction *act, char *bone_name)
bool hasAnimations (Scene *sce)

Detailed Description

Definition at line 304 of file DocumentExporter.cpp.


Constructor & Destructor Documentation

AnimationExporter::AnimationExporter ( COLLADASW::StreamWriter *  sw) [inline]

Definition at line 311 of file DocumentExporter.cpp.


Member Function Documentation

void AnimationExporter::add_source_parameters ( COLLADASW::SourceBase::ParameterNameList &  param,
COLLADASW::InputSemantic::Semantics  semantic,
bool  is_rot,
const char *  axis 
) [inline, protected]
float AnimationExporter::convert_angle ( float  angle) [inline, protected]
float AnimationExporter::convert_time ( float  frame) [inline, protected]
std::string AnimationExporter::create_interpolation_source ( int  tot,
const std::string &  anim_id,
const char *  axis_name 
) [inline, protected]

Definition at line 788 of file DocumentExporter.cpp.

References get_semantic_suffix(), and i.

Referenced by dae_animation(), and dae_bone_animation().

std::string AnimationExporter::create_source_from_array ( COLLADASW::InputSemantic::Semantics  semantic,
float *  v,
int  tot,
bool  is_rot,
const std::string &  anim_id,
const char *  axis_name 
) [inline, protected]
std::string AnimationExporter::create_source_from_fcurve ( COLLADASW::InputSemantic::Semantics  semantic,
FCurve fcu,
const std::string &  anim_id,
const char *  axis_name 
) [inline, protected]
std::string AnimationExporter::create_source_from_vector ( COLLADASW::InputSemantic::Semantics  semantic,
std::vector< float > &  fra,
bool  is_rot,
const std::string &  anim_id,
const char *  axis_name 
) [inline, protected]
std::string AnimationExporter::create_xyz_source ( float *  v,
int  tot,
const std::string &  anim_id 
) [inline, protected]

Definition at line 762 of file DocumentExporter.cpp.

References add_source_parameters(), get_semantic_suffix(), i, NULL, and OUTPUT.

Referenced by dae_bone_animation().

void AnimationExporter::dae_animation ( FCurve fcu,
std::string  ob_name 
) [inline, protected]
void AnimationExporter::dae_bone_animation ( std::vector< float > &  fra,
float *  v,
int  tm_type,
int  axis,
std::string  ob_name,
std::string  bone_name 
) [inline, protected]
void AnimationExporter::enable_fcurves ( bAction act,
char *  bone_name 
) [inline, protected]
void AnimationExporter::exportAnimations ( Scene sce) [inline]

Definition at line 315 of file DocumentExporter.cpp.

References forEachObjectInScene(), and hasAnimations().

Referenced by DocumentExporter::exportCurrentScene().

char* AnimationExporter::extract_transform_name ( char *  rna_path) [inline, protected]

Definition at line 855 of file DocumentExporter.cpp.

References dot().

Referenced by find_frames(), and get_transform_sid().

void AnimationExporter::find_frames ( Object ob,
std::vector< float > &  fra,
const char *  prefix,
const char *  tm_name 
) [inline, protected]
void AnimationExporter::find_rotation_frames ( Object ob,
std::vector< float > &  fra,
const char *  prefix,
int  rotmode 
) [inline, protected]

Definition at line 883 of file DocumentExporter.cpp.

References find_frames(), and ROT_MODE_QUAT.

Referenced by sample_and_write_bone_animation().

std::string AnimationExporter::get_semantic_suffix ( COLLADASW::InputSemantic::Semantics  semantic) [inline, protected]
void AnimationExporter::get_source_values ( BezTriple bezt,
COLLADASW::InputSemantic::Semantics  semantic,
bool  rotation,
float *  values,
int *  length 
) [inline, protected]

Definition at line 641 of file DocumentExporter.cpp.

References convert_angle(), convert_time(), OUTPUT, and BezTriple::vec.

Referenced by create_source_from_fcurve().

std::string AnimationExporter::get_transform_sid ( char *  rna_path,
int  tm_type,
const char *  axis_name,
bool  append_axis 
) [inline, protected]

Definition at line 813 of file DocumentExporter.cpp.

References extract_transform_name().

Referenced by dae_animation(), and dae_bone_animation().

bool AnimationExporter::hasAnimations ( Scene sce) [inline, protected]
void AnimationExporter::operator() ( Object ob) [inline]
void AnimationExporter::sample_and_write_bone_animation ( Object ob_arm,
Bone bone,
int  transform_type 
) [inline, protected]
void AnimationExporter::sample_animation ( float *  v,
std::vector< float > &  frames,
int  type,
Bone bone,
Object ob_arm 
) [inline, protected]
void AnimationExporter::write_bone_animation ( Object ob_arm,
Bone bone 
) [inline, protected]

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