Blender V4.5
BCAnimationCurve Class Reference

#include <BCAnimationCurve.h>

Public Member Functions

 BCAnimationCurve ()
 BCAnimationCurve (const BCAnimationCurve &other)
 BCAnimationCurve (const BCCurveKey &key, Object *ob)
 BCAnimationCurve (BCCurveKey key, Object *ob, FCurve *fcu)
 ~BCAnimationCurve ()
bool is_of_animation_type (BC_animation_type type) const
int get_interpolation_type (float sample_frame) const
bool is_animated ()
bool is_transform_curve () const
bool is_rotation_curve () const
bool is_keyframe (int frame)
void adjust_range (int frame)
std::string get_animation_name (Object *ob) const
std::string get_channel_target () const
std::string get_channel_type () const
std::string get_channel_posebone () const
int get_channel_index () const
int get_subindex () const
std::string get_rna_path () const
FCurveget_fcurve () const
int sample_count () const
float get_value (float frame)
void get_values (BCValues &values) const
void get_value_map (BCValueMap &value_map)
void get_frames (BCFrames &frames) const
FCurveget_edit_fcurve ()
bool add_value_from_rna (int frame)
bool add_value_from_matrix (const BCSample &sample, int frame)
void add_value (float val, int frame)
void clean_handles ()
int closest_index_above (float sample_frame, int start_at) const
int closest_index_below (float sample_frame) const

Detailed Description

Definition at line 72 of file BCAnimationCurve.h.

Constructor & Destructor Documentation

◆ BCAnimationCurve() [1/4]

BCAnimationCurve::BCAnimationCurve ( )

Definition at line 25 of file BCAnimationCurve.cpp.

References BC_ANIMATION_TYPE_OBJECT.

Referenced by BCAnimationCurve().

◆ BCAnimationCurve() [2/4]

BCAnimationCurve::BCAnimationCurve ( const BCAnimationCurve & other)

Definition at line 32 of file BCAnimationCurve.cpp.

References BCAnimationCurve(), and get_edit_fcurve().

◆ BCAnimationCurve() [3/4]

BCAnimationCurve::BCAnimationCurve ( const BCCurveKey & key,
Object * ob )

Definition at line 56 of file BCAnimationCurve.cpp.

◆ BCAnimationCurve() [4/4]

BCAnimationCurve::BCAnimationCurve ( BCCurveKey key,
Object * ob,
FCurve * fcu )

Definition at line 46 of file BCAnimationCurve.cpp.

◆ ~BCAnimationCurve()

BCAnimationCurve::~BCAnimationCurve ( )

Definition at line 126 of file BCAnimationCurve.cpp.

Member Function Documentation

◆ add_value()

◆ add_value_from_matrix()

bool BCAnimationCurve::add_value_from_matrix ( const BCSample & sample,
int frame )

Definition at line 410 of file BCAnimationCurve.cpp.

References add_value(), get_channel_target(), and sample.

◆ add_value_from_rna()

◆ adjust_range()

void BCAnimationCurve::adjust_range ( int frame)

Definition at line 379 of file BCAnimationCurve.cpp.

References evaluate_fcurve().

◆ clean_handles()

◆ closest_index_above()

int BCAnimationCurve::closest_index_above ( float sample_frame,
int start_at ) const

Definition at line 240 of file BCAnimationCurve.cpp.

References fabs().

◆ closest_index_below()

int BCAnimationCurve::closest_index_below ( float sample_frame) const

Definition at line 254 of file BCAnimationCurve.cpp.

Referenced by get_interpolation_type().

◆ get_animation_name()

◆ get_channel_index()

int BCAnimationCurve::get_channel_index ( ) const

Definition at line 217 of file BCAnimationCurve.cpp.

Referenced by AnimationExporter::export_curve_animation(), and operator<().

◆ get_channel_posebone()

std::string BCAnimationCurve::get_channel_posebone ( ) const

Definition at line 156 of file BCAnimationCurve.cpp.

References bc_string_after(), bc_string_before(), and get_channel_target().

◆ get_channel_target()

◆ get_channel_type()

◆ get_edit_fcurve()

FCurve * BCAnimationCurve::get_edit_fcurve ( )

Definition at line 301 of file BCAnimationCurve.cpp.

Referenced by add_value(), BCAnimationCurve(), and clean_handles().

◆ get_fcurve()

FCurve * BCAnimationCurve::get_fcurve ( ) const

Definition at line 296 of file BCAnimationCurve.cpp.

Referenced by AnimationExporter::collada_tangent_from_curve().

◆ get_frames()

void BCAnimationCurve::get_frames ( BCFrames & frames) const

◆ get_interpolation_type()

int BCAnimationCurve::get_interpolation_type ( float sample_frame) const

◆ get_rna_path()

std::string BCAnimationCurve::get_rna_path ( ) const

Definition at line 227 of file BCAnimationCurve.cpp.

◆ get_subindex()

int BCAnimationCurve::get_subindex ( ) const

Definition at line 222 of file BCAnimationCurve.cpp.

Referenced by AnimationExporter::export_curve_animation().

◆ get_value()

float BCAnimationCurve::get_value ( float frame)

Definition at line 360 of file BCAnimationCurve.cpp.

References evaluate_fcurve().

Referenced by AnimationExporter::get_modified_export_curve().

◆ get_value_map()

void BCAnimationCurve::get_value_map ( BCValueMap & value_map)

Definition at line 505 of file BCAnimationCurve.cpp.

References i.

Referenced by AnimationExporter::get_modified_export_curve().

◆ get_values()

void BCAnimationCurve::get_values ( BCValues & values) const

Definition at line 530 of file BCAnimationCurve.cpp.

References i.

Referenced by AnimationExporter::export_collada_curve_animation().

◆ is_animated()

bool BCAnimationCurve::is_animated ( )

Definition at line 541 of file BCAnimationCurve.cpp.

References fabs().

Referenced by AnimationExporter::export_curve_animation_set().

◆ is_keyframe()

bool BCAnimationCurve::is_keyframe ( int frame)

Definition at line 547 of file BCAnimationCurve.cpp.

References i.

◆ is_of_animation_type()

bool BCAnimationCurve::is_of_animation_type ( BC_animation_type type) const

Definition at line 135 of file BCAnimationCurve.cpp.

Referenced by AnimationExporter::export_curve_animation().

◆ is_rotation_curve()

bool BCAnimationCurve::is_rotation_curve ( ) const

◆ is_transform_curve()

bool BCAnimationCurve::is_transform_curve ( ) const

◆ sample_count()

int BCAnimationCurve::sample_count ( ) const

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