Blender V5.3
fmodifier.cc File Reference
#include <algorithm>
#include <cfloat>
#include <cmath>
#include <cstdio>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "CLG_log.h"
#include "DNA_anim_types.h"
#include "DNA_screen_types.h"
#include "BLT_translation.hh"
#include "BLI_listbase.hh"
#include "BLI_math_base_c.hh"
#include "BLI_noise.hh"
#include "BLI_noise_c.hh"
#include "BLI_utildefines.hh"
#include "BKE_fcurve.hh"

Go to the source code of this file.

Classes

struct  blender::tFCMED_Cycles

Namespaces

namespace  blender
 BMesh Iterators.

Functions

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)
static float blender::eval_fmodifier_influence (FModifier *fcm, float evaltime)
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)

Variables

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

F-Curve Modifier Types

#define BINARYSEARCH_FRAMEEQ_THRESH   0.0001f
static FModifierTypeInfo blender::FMI_GENERATOR
static FModifierTypeInfo blender::FMI_FN_GENERATOR
static FModifierTypeInfo blender::FMI_ENVELOPE
static FModifierTypeInfo blender::FMI_CYCLES
static FModifierTypeInfo blender::FMI_NOISE
static FModifierTypeInfo blender::FMI_LIMITS
static FModifierTypeInfo blender::FMI_STEPPED
static FModifierTypeInfo blender::FMI_SMOOTH
static void blender::fcm_generator_free (FModifier *fcm)
static void blender::fcm_generator_copy (FModifier *fcm, const FModifier *src)
static void blender::fcm_generator_new_data (void *mdata)
static void blender::fcm_generator_verify (FModifier *fcm)
static void blender::fcm_generator_evaluate (const FCurve *, const FModifier *fcm, float *cvalue, float evaltime, void *)
static void blender::fcm_fn_generator_new_data (void *mdata)
static double blender::sinc (double x)
static void blender::fcm_fn_generator_evaluate (const FCurve *, const FModifier *fcm, float *cvalue, float evaltime, void *)
static void blender::fcm_envelope_free (FModifier *fcm)
static void blender::fcm_envelope_copy (FModifier *fcm, const FModifier *src)
static void blender::fcm_envelope_new_data (void *mdata)
static void blender::fcm_envelope_verify (FModifier *fcm)
static void blender::fcm_envelope_evaluate (const FCurve *, const FModifier *fcm, float *cvalue, float evaltime, void *)
int blender::BKE_fcm_envelope_find_index (FCM_EnvelopeData array[], float frame, int arraylen, bool *r_exists)
static void blender::fcm_cycles_new_data (void *mdata)
static float blender::fcm_cycles_time (const FCurve *fcu, const FModifier *fcm, float, float evaltime, void *storage_)
static void blender::fcm_cycles_evaluate (const FCurve *, const FModifier *, float *cvalue, float, void *storage_)
static void blender::fcm_noise_new_data (void *mdata)
static void blender::fcm_noise_evaluate (const FCurve *, const FModifier *fcm, float *cvalue, float evaltime, void *)
static float blender::fcm_limits_time (const FCurve *, const FModifier *fcm, float, float evaltime, void *)
static void blender::fcm_limits_evaluate (const FCurve *, const FModifier *fcm, float *cvalue, float, void *)
static void blender::fcm_stepped_new_data (void *mdata)
static float blender::fcm_stepped_time (const FCurve *, const FModifier *fcm, float, float evaltime, void *)
static void blender::fcm_smooth_new_data (void *mdata)
static float blender::fcm_smooth_frame (const FCurve *fcu, const FModifier *fcm, const int evaltime, const float default_value)
static void blender::fcm_smooth_evaluate (const FCurve *fcu, const FModifier *fcm, float *cvalue, float evaltime, void *)

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.

static FModifierTypeInfo * blender::fmodifiersTypeInfo [FMODIFIER_NUM_TYPES]
static short blender::FMI_INIT = 1
static void blender::fmods_init_typeinfo ()
const FModifierTypeInfo * blender::get_fmodifier_typeinfo (int type)
const FModifierTypeInfo * blender::fmodifier_get_typeinfo (const FModifier *fcm)

Macro Definition Documentation

◆ BINARYSEARCH_FRAMEEQ_THRESH

#define BINARYSEARCH_FRAMEEQ_THRESH   0.0001f

Definition at line 504 of file fmodifier.cc.

Referenced by blender::BKE_fcm_envelope_find_index().