Blender V5.3
fcurve.cc File Reference
#include <cfloat>
#include <cmath>
#include <cstddef>
#include <cstdio>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "ANIM_action.hh"
#include "DNA_action_types.h"
#include "DNA_anim_types.h"
#include "DNA_curve_types.h"
#include "BLI_easing.hh"
#include "BLI_ghash.hh"
#include "BLI_listbase.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_math_vector_types.hh"
#include "BLI_rect.hh"
#include "BLI_sort_utils.hh"
#include "BLI_string.hh"
#include "BLI_string_utils.hh"
#include "BLI_task.hh"
#include "BLI_vector_set.hh"
#include "BLT_translation.hh"
#include "BKE_anim_data.hh"
#include "BKE_animsys.hh"
#include "BKE_context.hh"
#include "BKE_curve.hh"
#include "BKE_fcurve.hh"
#include "BKE_fcurve_driver.h"
#include "BKE_global.hh"
#include "BKE_idprop.hh"
#include "BKE_lib_query.hh"
#include "BKE_nla.hh"
#include "BLO_read_write.hh"
#include "RNA_access.hh"
#include "RNA_path.hh"
#include "CLG_log.h"

Go to the source code of this file.

Classes

struct  blender::tRetainedKeyframe

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define SMALL   -1.0e-10
#define SELECT   1

Functions

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 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::id_data_find_fcurve (ID *id, void *data, StructRNA *type, const char *prop_name, int index, bool *r_driven)
FCurve * blender::BKE_fcurve_find (ListBaseT< FCurve > *list, const char rna_path[], int array_index)
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
static int blender::BKE_fcurve_bezt_binarysearch_index_ex (const BezTriple array[], const float frame, const int arraylen, const float threshold, bool *r_replace)
int blender::BKE_fcurve_bezt_binarysearch_index (const BezTriple array[], float frame, int arraylen, bool *r_replace)
static bool blender::get_bounding_bezt_indices (const FCurve *fcu, const bool selected_keys_only, const float frame_range[2], int *r_first, int *r_last)
static void blender::calculate_bezt_bounds_x (BezTriple *bezt_array, const int index_range[2], const bool include_handles, float *r_min, float *r_max)
static void blender::calculate_bezt_bounds_y (BezTriple *bezt_array, const int index_range[2], const bool selected_keys_only, const bool include_handles, float *r_min, float *r_max)
static bool blender::calculate_bezt_bounds (const FCurve *fcu, const bool selected_keys_only, const bool include_handles, const float frame_range[2], rctf *r_bounds)
static bool blender::calculate_fpt_bounds (const FCurve *fcu, const float frame_range[2], rctf *r_bounds)
bool blender::BKE_fcurve_calc_bounds (const FCurve *fcu, bool selected_keys_only, bool include_handles, const float frame_range[2], rctf *r_bounds)
bool blender::BKE_fcurve_calc_range (const FCurve *fcu, float *r_min, float *r_max, bool selected_keys_only)
Array< float > blender::BKE_fcurves_calc_keyed_frames_ex (const Span< FCurve * > fcurve_array, const float interval)
Array< float > blender::BKE_fcurves_calc_keyed_frames (const Span< FCurve * > fcurve_array)
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_protected (const FCurve &fcu)
bool blender::BKE_fcurve_has_selected_control_points (const FCurve &fcu)
void blender::BKE_fcurve_deselect_all_keys (FCurve &fcu)
bool blender::BKE_fcurve_is_keyframable (const FCurve &fcu)
Samples Utilities
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)
static void blender::init_unbaked_bezt_data (BezTriple *bezt)
void blender::fcurve_samples_to_keyframes (FCurve *fcu, int start, int end)
eFCU_Cycle_Type blender::BKE_fcurve_get_cycle_type (const FCurve &fcu)
bool blender::BKE_fcurve_is_cyclic (const FCurve &fcu)
static BezTriple * blender::cycle_offset_triple (bool cycle, BezTriple *out, const BezTriple *in, const BezTriple *from, const BezTriple *to)
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::BKE_fcurve_handles_recalc (FCurve &fcu)
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)
F-Curve Calculations
void blender::BKE_fcurve_correct_bezpart (const float v1[2], float v2[2], float v3[2], const float v4[2])
static int blender::solve_cubic (double c0, double c1, double c2, double c3, float *o)
static int blender::findzero (float x, float q0, float q1, float q2, float q3, float *o)
static void blender::berekeny (float f1, float f2, float f3, float f4, float *o, int b)
static void blender::fcurve_bezt_free (FCurve &fcu)
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)
void blender::BKE_fcurve_delete_key (FCurve *fcu, int index)
void blender::BKE_fcurve_delete_keys (FCurve &fcu, uint2 index_range)
BezTriple * blender::BKE_bezier_array_merge (const BezTriple *a, int size_a, const BezTriple *b, int size_b, int *r_merged_size)
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)
F-Curve Evaluation
static float blender::fcurve_eval_keyframes_extrapolate (const FCurve *fcu, const BezTriple *bezts, float evaltime, int endpoint_offset, int direction_to_neighbor)
static float blender::fcurve_eval_keyframes_interpolate (const FCurve *fcu, const BezTriple *bezts, float evaltime)
static float blender::fcurve_eval_keyframes (const FCurve *fcu, const BezTriple *bezts, float evaltime)
static float blender::fcurve_eval_samples (const FCurve *fcu, const FPoint *fpts, float evaltime)
F-Curve - Evaluation
static float blender::evaluate_fcurve_ex (const FCurve *fcu, float evaltime, float cvalue)
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)

Variables

static CLG_LogRef blender::LOG = {"anim.fcurve"}

Macro Definition Documentation

◆ SELECT

#define SELECT   1

Definition at line 58 of file blenkernel/intern/fcurve.cc.

◆ SMALL

#define SMALL   -1.0e-10

Definition at line 57 of file blenkernel/intern/fcurve.cc.

Referenced by blender::solve_cubic().