Blender  V3.3
Public Member Functions | List of all members
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 8 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 15 of file BCAnimationCurve.cpp.

References get_edit_fcurve().

◆ BCAnimationCurve() [3/4]

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

Definition at line 39 of file BCAnimationCurve.cpp.

◆ BCAnimationCurve() [4/4]

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

Definition at line 29 of file BCAnimationCurve.cpp.

◆ ~BCAnimationCurve()

BCAnimationCurve::~BCAnimationCurve ( )

Definition at line 104 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()

bool BCAnimationCurve::add_value_from_rna ( int  frame)

◆ adjust_range()

void BCAnimationCurve::adjust_range ( int  frame)

Definition at line 359 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 218 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 232 of file BCAnimationCurve.cpp.

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

Referenced by get_interpolation_type().

◆ get_animation_name()

std::string BCAnimationCurve::get_animation_name ( Object ob) const

◆ get_channel_index()

int BCAnimationCurve::get_channel_index ( ) const

Definition at line 195 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 134 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

Definition at line 128 of file BCAnimationCurve.cpp.

References bc_string_after(), and get_channel_target().

Referenced by is_rotation_curve(), and is_transform_curve().

◆ get_edit_fcurve()

FCurve * BCAnimationCurve::get_edit_fcurve ( )

◆ get_fcurve()

FCurve * BCAnimationCurve::get_fcurve ( ) const

Definition at line 274 of file BCAnimationCurve.cpp.

◆ get_frames()

void BCAnimationCurve::get_frames ( BCFrames frames) const

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

References BCCurveKey::get_path().

◆ get_subindex()

int BCAnimationCurve::get_subindex ( ) const

Definition at line 200 of file BCAnimationCurve.cpp.

References BCCurveKey::get_subindex().

◆ get_value()

float BCAnimationCurve::get_value ( float  frame)

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

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

◆ get_values()

void BCAnimationCurve::get_values ( BCValues values) const

Definition at line 508 of file BCAnimationCurve.cpp.

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

◆ is_animated()

bool BCAnimationCurve::is_animated ( )

Definition at line 519 of file BCAnimationCurve.cpp.

References fabs().

◆ is_keyframe()

bool BCAnimationCurve::is_keyframe ( int  frame)

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

References BCCurveKey::get_animation_type(), and type.

◆ is_rotation_curve()

bool BCAnimationCurve::is_rotation_curve ( ) const

Definition at line 329 of file BCAnimationCurve.cpp.

References get_channel_type().

Referenced by is_transform_curve().

◆ is_transform_curve()

bool BCAnimationCurve::is_transform_curve ( ) const

Definition at line 323 of file BCAnimationCurve.cpp.

References get_channel_type(), and is_rotation_curve().

◆ sample_count()

int BCAnimationCurve::sample_count ( ) const

Definition at line 210 of file BCAnimationCurve.cpp.

References FCurve::totvert.


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