Blender V5.3
BKE_fcurve.hh File Reference
#include "BLI_math_vector_types.hh"
#include "BLI_span.hh"
#include "BLI_string_ref.hh"
#include "DNA_curve_types.h"
#include "DNA_listBase.h"
#include "RNA_path.hh"

Go to the source code of this file.

Classes

struct  blender::bke::FCurveRuntime
struct  blender::FModifierTypeInfo
struct  blender::FModifiersStackStorage

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke

Macros

#define BEZT_BINARYSEARCH_THRESH   0.01f

Typedefs

typedef float(*) blender::FcuSampleFunc(FCurve *fcu, void *data, float evaltime)

Enumerations

enum  blender::eFMI_Action_Types { blender::FMI_TYPE_EXTRAPOLATION = 0 , blender::FMI_TYPE_INTERPOLATION , blender::FMI_TYPE_REPLACE_VALUES , blender::FMI_TYPE_GENERATE_CURVE }
enum  blender::eFMI_Requirement_Flags { blender::FMI_REQUIRES_ORIGINAL_DATA = (1 << 0) , blender::FMI_REQUIRES_NOTHING = (1 << 1) , blender::FMI_REQUIRES_RUNTIME_CHECK = (1 << 2) }
enum  blender::eFCU_Cycle_Type { blender::FCU_CYCLE_NONE = 0 , blender::FCU_CYCLE_PERFECT , blender::FCU_CYCLE_OFFSET }
enum class  blender::HandleSide { blender::LEFT , blender::RIGHT }

Functions

int blender::BKE_fcm_envelope_find_index (FCM_EnvelopeData *array, float frame, int arraylen, bool *r_exists)
Array< float > blender::BKE_fcurves_calc_keyed_frames_ex (Span< FCurve * > fcurve_array, float interval)
Array< float > blender::BKE_fcurves_calc_keyed_frames (Span< FCurve * > fcurve_array)
void blender::BKE_fcurve_keyframe_move_time_with_handles (BezTriple *keyframe, const float new_time)
void blender::BKE_fcurve_keyframe_move_value_with_handles (BezTriple *keyframe, float new_value)
F-Curve Modifier Type API

all of the f-curve modifier API functions use #fmodifiertypeinfo structs to carry out and operations that involve f-curve modifier specific code.

const FModifierTypeInfo * blender::fmodifier_get_typeinfo (const FModifier *fcm)
const FModifierTypeInfo * blender::get_fmodifier_typeinfo (int type)
F-Curve Modifier Public API
FModifier * blender::add_fmodifier (ListBaseT< FModifier > *modifiers, int type, FCurve *owner_fcu)
FModifier * blender::copy_fmodifier (const FModifier *src)
void blender::copy_fmodifiers (ListBaseT< FModifier > *dst, const ListBaseT< FModifier > *src)
bool blender::remove_fmodifier (ListBaseT< FModifier > *modifiers, FModifier *fcm)
void blender::free_fmodifiers (ListBaseT< FModifier > *modifiers)
FModifier * blender::find_active_fmodifier (ListBaseT< FModifier > *modifiers)
void blender::set_active_fmodifier (ListBaseT< FModifier > *modifiers, FModifier *fcm)
bool blender::list_has_suitable_fmodifier (const ListBaseT< FModifier > *modifiers, int mtype, short acttype)
uint blender::evaluate_fmodifiers_storage_size_per_modifier (const ListBaseT< FModifier > *modifiers)
float blender::evaluate_time_fmodifiers (FModifiersStackStorage *storage, const ListBaseT< FModifier > *modifiers, const FCurve *fcu, float cvalue, float evaltime)
void blender::evaluate_value_fmodifiers (FModifiersStackStorage *storage, const ListBaseT< FModifier > *modifiers, const FCurve *fcu, float *cvalue, float evaltime)
void blender::fcurve_bake_modifiers (FCurve *fcu, int start, int end)
F-Curve Data Create
FCurve * blender::BKE_fcurve_create ()
F-Curve Data Free
void blender::BKE_fcurve_free (FCurve *fcu)
void blender::BKE_fcurves_free (ListBaseT< FCurve > *list)
F-Curve Data Copy
FCurve * blender::BKE_fcurve_copy (const FCurve *fcu)
void blender::BKE_fcurves_copy (ListBaseT< FCurve > *dst, ListBaseT< FCurve > *src)
void blender::BKE_fmodifier_name_set (FModifier *fcm, const char *name)
void blender::BKE_fmodifier_ensure_flag (ListBaseT< FModifier > *modifiers)
void blender::BKE_fcurve_foreach_id (FCurve *fcu, LibraryForeachIDData *data)
FCurve * blender::BKE_fcurve_find (ListBaseT< FCurve > *list, const char rna_path[], int array_index)
FCurve * blender::id_data_find_fcurve (ID *id, void *data, StructRNA *type, const char *prop_name, int index, bool *r_driven)
FCurve Iteration
FCurve * blender::BKE_fcurve_iter_step (FCurve *fcu_iter, const char rna_path[])
FCurve * blender::BKE_animadata_fcurve_find_by_rna_path (AnimData *animdata, const char *rna_path, const int rna_index, bAction **r_action, bool *r_driven)
FCurve * blender::BKE_fcurve_find_by_rna (PointerRNA *ptr, PropertyRNA *prop, int rnaindex, AnimData **r_adt, bAction **r_action, bool *r_driven, bool *r_special)
FCurve * blender::BKE_fcurve_find_by_rna_context_ui (bContext *C, const PointerRNA *ptr, PropertyRNA *prop, int rnaindex, AnimData **r_animdata, bAction **r_action, bool *r_driven, bool *r_special)
Finding Keyframes/Extents
int blender::BKE_fcurve_bezt_binarysearch_index (const BezTriple array[], float frame, int arraylen, bool *r_replace)
bool blender::BKE_fcurve_calc_range (const FCurve *fcu, float *r_min, float *r_max, bool selected_keys_only)
bool blender::BKE_fcurve_calc_bounds (const FCurve *fcu, bool selected_keys_only, bool include_handles, const float frame_range[2], rctf *r_bounds)
Active Keyframe
void blender::BKE_fcurve_active_keyframe_set (FCurve *fcu, const BezTriple *active_bezt)
int blender::BKE_fcurve_active_keyframe_index (const FCurve *fcu)
Status Checks
bool blender::BKE_fcurve_are_keyframes_usable (const FCurve &fcu)
bool blender::BKE_fcurve_is_keyframable (const FCurve &fcu)
bool blender::BKE_fcurve_is_protected (const FCurve &fcu)
bool blender::BKE_fcurve_has_selected_control_points (const FCurve &fcu)
void blender::BKE_fcurve_deselect_all_keys (FCurve &fcu)
Samples Utilities
bool blender::BKE_fcurve_is_cyclic (const FCurve &fcu)
eFCU_Cycle_Type blender::BKE_fcurve_get_cycle_type (const FCurve &fcu)
void blender::BKE_fcurve_handles_recalc (FCurve &fcu)
void blender::BKE_fcurve_handles_recalc_ex (FCurve &fcu, eBezTriple_Flag handle_sel_flag)
void blender::BKE_fcurve_update_handle_flag_from_opposite (BezTriple &key, HandleSide source_side)
void blender::testhandles_fcurve (FCurve *fcu, eBezTriple_Flag sel_flag, bool use_handle)
void blender::sort_time_fcurve (FCurve &fcu)
bool blender::test_time_fcurve (FCurve &fcu)
float blender::fcurve_samplingcb_evalcurve (FCurve *fcu, void *data, float evaltime)
void blender::fcurve_store_samples (FCurve *fcu, void *data, int start, int end, FcuSampleFunc sample_cb)
void blender::fcurve_samples_to_keyframes (FCurve *fcu, int start, int end)
F-Curve Calculations
bool blender::BKE_fcurve_bezt_subdivide_handles (BezTriple *bezt, BezTriple *prev, BezTriple *next, float *r_pdelta)
void blender::BKE_fcurve_bezt_resize (FCurve &fcu, int new_totvert)
BezTriple * blender::BKE_bezier_array_merge (const BezTriple *a, int size_a, const BezTriple *b, int size_b, int *r_merged_size)
void blender::BKE_fcurve_delete_key (FCurve *fcu, int index)
void blender::BKE_fcurve_delete_keys (FCurve &fcu, uint2 index_range)
bool blender::BKE_fcurve_delete_keys_selected (FCurve &fcu)
void blender::BKE_fcurve_delete_keys_all (FCurve &fcu)
void blender::BKE_fcurve_merge_duplicate_keys (FCurve *fcu, const int sel_flag, const bool use_handle)
void blender::BKE_fcurve_deduplicate_keys (FCurve *fcu)
void blender::BKE_fcurve_correct_bezpart (const float v1[2], float v2[2], float v3[2], const float v4[2])
F-Curve - Evaluation
float blender::evaluate_fcurve (const FCurve *fcu, float evaltime)
float blender::evaluate_fcurve_only_curve (const FCurve *fcu, float evaltime)
float blender::evaluate_fcurve_unmodified (const FCurve *fcu, float evaltime)
float blender::evaluate_fcurve_driver (PathResolvedRNA *anim_rna, FCurve *fcu, ChannelDriver *driver_orig, const AnimationEvalContext *anim_eval_context)
bool blender::BKE_fcurve_is_empty (const FCurve *fcu)
float blender::calculate_fcurve (PathResolvedRNA *anim_rna, FCurve *fcu, const AnimationEvalContext *anim_eval_context)
F-Curve - .blend file API
void blender::BKE_fmodifiers_blend_write (BlendWriter *writer, ListBaseT< FModifier > *fmodifiers)
void blender::BKE_fmodifiers_blend_read_data (BlendDataReader *reader, ListBaseT< FModifier > *fmodifiers, FCurve *curve)
void blender::BKE_fcurve_blend_write_data (BlendWriter *writer, FCurve *fcu)
void blender::BKE_fcurve_blend_write_listbase (BlendWriter *writer, ListBaseT< FCurve > *fcurves)
void blender::BKE_fcurve_blend_read_data (BlendDataReader *reader, FCurve *fcu)
void blender::BKE_fcurve_blend_read_data_listbase (BlendDataReader *reader, ListBaseT< FCurve > *fcurves)

Macro Definition Documentation

◆ BEZT_BINARYSEARCH_THRESH