Blender V4.3
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 74 of file BCAnimationCurve.h.

Constructor & Destructor Documentation

◆ BCAnimationCurve() [1/4]

BCAnimationCurve::BCAnimationCurve ( )

Definition at line 9 of file BCAnimationCurve.cpp.

References BC_ANIMATION_TYPE_OBJECT, and BCCurveKey::set_object_type().

◆ BCAnimationCurve() [2/4]

BCAnimationCurve::BCAnimationCurve ( const BCAnimationCurve & other)

Definition at line 16 of file BCAnimationCurve.cpp.

References get_edit_fcurve().

◆ BCAnimationCurve() [3/4]

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

Definition at line 40 of file BCAnimationCurve.cpp.

◆ BCAnimationCurve() [4/4]

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

Definition at line 30 of file BCAnimationCurve.cpp.

◆ ~BCAnimationCurve()

BCAnimationCurve::~BCAnimationCurve ( )

Definition at line 110 of file BCAnimationCurve.cpp.

Member Function Documentation

◆ add_value()

void BCAnimationCurve::add_value ( float val,
int frame )

◆ add_value_from_matrix()

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

◆ add_value_from_rna()

◆ adjust_range()

void BCAnimationCurve::adjust_range ( int frame)

Definition at line 367 of file BCAnimationCurve.cpp.

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

◆ clean_handles()

void BCAnimationCurve::clean_handles ( )

◆ closest_index_above()

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

Definition at line 224 of file BCAnimationCurve.cpp.

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

◆ closest_index_below()

int BCAnimationCurve::closest_index_below ( float sample_frame) const

Definition at line 238 of file BCAnimationCurve.cpp.

References FCurve::bezt, float, FCurve::totvert, and BezTriple::vec.

Referenced by get_interpolation_type().

◆ get_animation_name()

◆ get_channel_index()

int BCAnimationCurve::get_channel_index ( ) const

Definition at line 201 of file BCAnimationCurve.cpp.

References BCCurveKey::get_array_index().

Referenced by operator<().

◆ get_channel_posebone()

std::string BCAnimationCurve::get_channel_posebone ( ) const

Definition at line 140 of file BCAnimationCurve.cpp.

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

◆ get_channel_target()

std::string BCAnimationCurve::get_channel_target ( ) const

◆ get_channel_type()

std::string BCAnimationCurve::get_channel_type ( ) const

◆ get_edit_fcurve()

FCurve * BCAnimationCurve::get_edit_fcurve ( )

◆ get_fcurve()

FCurve * BCAnimationCurve::get_fcurve ( ) const

Definition at line 280 of file BCAnimationCurve.cpp.

◆ get_frames()

void BCAnimationCurve::get_frames ( BCFrames & frames) const

Definition at line 507 of file BCAnimationCurve.cpp.

References FCurve::bezt, FCurve::totvert, and BezTriple::vec.

◆ 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 211 of file BCAnimationCurve.cpp.

References BCCurveKey::get_path().

◆ get_subindex()

int BCAnimationCurve::get_subindex ( ) const

Definition at line 206 of file BCAnimationCurve.cpp.

References BCCurveKey::get_subindex().

◆ get_value()

float BCAnimationCurve::get_value ( float frame)

Definition at line 344 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 493 of file BCAnimationCurve.cpp.

References FCurve::bezt, FCurve::totvert, and BezTriple::vec.

◆ get_values()

void BCAnimationCurve::get_values ( BCValues & values) const

Definition at line 518 of file BCAnimationCurve.cpp.

References FCurve::bezt, FCurve::totvert, and BezTriple::vec.

◆ is_animated()

bool BCAnimationCurve::is_animated ( )

Definition at line 529 of file BCAnimationCurve.cpp.

References fabs().

◆ is_keyframe()

bool BCAnimationCurve::is_keyframe ( int frame)

Definition at line 535 of file BCAnimationCurve.cpp.

References FCurve::bezt, FCurve::totvert, and BezTriple::vec.

◆ is_of_animation_type()

bool BCAnimationCurve::is_of_animation_type ( BC_animation_type type) const

Definition at line 119 of file BCAnimationCurve.cpp.

References BCCurveKey::get_animation_type().

◆ is_rotation_curve()

bool BCAnimationCurve::is_rotation_curve ( ) const

Definition at line 338 of file BCAnimationCurve.cpp.

References ELEM, and get_channel_type().

Referenced by is_transform_curve().

◆ is_transform_curve()

bool BCAnimationCurve::is_transform_curve ( ) const

Definition at line 332 of file BCAnimationCurve.cpp.

References get_channel_type(), and is_rotation_curve().

◆ sample_count()

int BCAnimationCurve::sample_count ( ) const

Definition at line 216 of file BCAnimationCurve.cpp.

References FCurve::totvert.


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