Blender V5.3
graph_slider_ops.cc File Reference
#include <cfloat>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "BLI_listbase.hh"
#include "BLI_math_base_c.hh"
#include "DEG_depsgraph.hh"
#include "DNA_anim_types.h"
#include "DNA_curve_types.h"
#include "DNA_scene_types.h"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "BLT_translation.hh"
#include "BKE_context.hh"
#include "BKE_report.hh"
#include "UI_interface.hh"
#include "ED_anim_api.hh"
#include "ED_keyframes_edit.hh"
#include "ED_numinput.hh"
#include "ED_screen.hh"
#include "ED_util.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ANIM_fcurve.hh"
#include <fmt/format.h>
#include "graph_intern.hh"

Go to the source code of this file.

Classes

struct  blender::tGraphSliderOp
struct  blender::tBeztCopyData
struct  blender::tGaussOperatorData
struct  blender::tBtwOperatorData

Namespaces

namespace  blender
 BMesh Iterators.

Macros

Internal Struct & Defines
#define OPERATOR_DATA_FILTER

Functions

Utility Functions
static void blender::apply_fcu_segment_function (bAnimContext *ac, const float factor, void(*segment_function)(FCurve *fcu, FCurveSegment *segment, const float factor))
static void blender::common_draw_status_header (bContext *C, tGraphSliderOp *gso)
static void blender::store_original_bezt_arrays (tGraphSliderOp *gso)
static void blender::reset_bezts (tGraphSliderOp *gso)
static float blender::slider_factor_get_and_remember (wmOperator *op)
Common Modal Functions
static void blender::graph_slider_exit (bContext *C, wmOperator *op)
static void blender::update_depsgraph (tGraphSliderOp *gso)
static wmOperatorStatus blender::graph_slider_modal (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::graph_slider_invoke (bContext *C, wmOperator *op, const wmEvent *event)
Blend to Neighbor Operator
static void blender::blend_to_neighbor_graph_keys (bAnimContext *ac, const float factor)
static void blender::blend_to_neighbor_modal_update (bContext *C, wmOperator *op)
static wmOperatorStatus blender::blend_to_neighbor_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::blend_to_neighbor_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_blend_to_neighbor (wmOperatorType *ot)
Breakdown Operator
static void blender::breakdown_graph_keys (bAnimContext *ac, float factor)
static void blender::breakdown_modal_update (bContext *C, wmOperator *op)
static wmOperatorStatus blender::breakdown_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::breakdown_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_breakdown (wmOperatorType *ot)
Blend to Default Value Operator
static void blender::blend_to_default_graph_keys (bAnimContext *ac, const float factor)
static void blender::blend_to_default_modal_update (bContext *C, wmOperator *op)
static wmOperatorStatus blender::blend_to_default_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::blend_to_default_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_blend_to_default (wmOperatorType *ot)
Ease Operator
static void blender::ease_graph_keys (bAnimContext *ac, const float factor, const float width)
static void blender::ease_draw_status_header (bContext *C, wmOperator *op)
static void blender::ease_modal_update (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ease_modal (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::ease_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::ease_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_ease (wmOperatorType *ot)
Blend Offset Operator
static void blender::blend_offset_graph_keys (bAnimContext *ac, const float factor)
static void blender::blend_offset_draw_status_header (bContext *C, tGraphSliderOp *gso)
static void blender::blend_offset_modal_update (bContext *C, wmOperator *op)
static wmOperatorStatus blender::blend_offset_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::blend_offset_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_blend_offset (wmOperatorType *ot)
Blend to Ease Operator
static void blender::blend_to_ease_graph_keys (bAnimContext *ac, const float factor)
static void blender::blend_to_ease_draw_status_header (bContext *C, tGraphSliderOp *gso)
static void blender::blend_to_ease_modal_update (bContext *C, wmOperator *op)
static wmOperatorStatus blender::blend_to_ease_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::blend_to_ease_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_blend_to_ease (wmOperatorType *ot)
Match Slope
static void blender::match_slope_graph_keys (bAnimContext *ac, const float factor)
static void blender::match_slope_draw_status_header (bContext *C, tGraphSliderOp *gso)
static void blender::match_slope_modal_update (bContext *C, wmOperator *op)
static wmOperatorStatus blender::match_slope_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::match_slope_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_match_slope (wmOperatorType *ot)
Time Offset
static void blender::time_offset_graph_keys (bAnimContext *ac, const float factor)
static void blender::time_offset_draw_status_header (bContext *C, tGraphSliderOp *gso)
static void blender::time_offset_modal_update (bContext *C, wmOperator *op)
static wmOperatorStatus blender::time_offset_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::time_offset_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_time_offset (wmOperatorType *ot)
Scale Average Operator
static void blender::scale_average_graph_keys (bAnimContext *ac, const float factor)
static void blender::scale_average_modal_update (bContext *C, wmOperator *op)
static wmOperatorStatus blender::scale_average_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::scale_average_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_scale_average (wmOperatorType *ot)
Gauss Smooth Operator
static float * blender::back_up_key_y_values (const FCurveSegment *segment, const FCurve *fcu)
static void blender::gaussian_smooth_allocate_operator_data (tGraphSliderOp *gso, const int filter_width, const float sigma)
static void blender::gaussian_smooth_free_operator_data (void *operator_data)
static void blender::gaussian_smooth_modal_update (bContext *C, wmOperator *op)
static wmOperatorStatus blender::gaussian_smooth_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static void blender::gaussian_smooth_graph_keys (bAnimContext *ac, const float factor, double *kernel, const int filter_width)
static wmOperatorStatus blender::gaussian_smooth_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_gaussian_smooth (wmOperatorType *ot)
Butterworth Smooth Operator
static int blender::btw_calculate_sample_count (const BezTriple *right_bezt, const BezTriple *left_bezt, const int filter_order, const int samples_per_frame)
static void blender::btw_smooth_allocate_operator_data (tGraphSliderOp *gso, const int filter_order, const int samples_per_frame)
static void blender::btw_smooth_free_operator_data (void *operator_data)
static void blender::btw_smooth_modal_update (bContext *C, wmOperator *op)
static wmOperatorStatus blender::btw_smooth_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static void blender::btw_smooth_graph_keys (bAnimContext *ac, const float factor, const int blend_in_out, float cutoff_frequency, const int filter_order, const int samples_per_frame)
static wmOperatorStatus blender::btw_smooth_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_butterworth_smooth (wmOperatorType *ot)
Push-Pull Operator
static void blender::push_pull_graph_keys (bAnimContext *ac, const float factor)
static void blender::push_pull_modal_update (bContext *C, wmOperator *op)
static wmOperatorStatus blender::push_pull_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::push_pull_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_push_pull (wmOperatorType *ot)

Decimate Keyframes Operator

enum  blender::tDecimModes { blender::DECIM_RATIO = 1 , blender::DECIM_ERROR }
static const EnumPropertyItem blender::decimate_mode_items []
static void blender::decimate_graph_keys (bAnimContext *ac, float factor, float error_sq_max)
static void blender::decimate_draw_status (bContext *C, tGraphSliderOp *gso)
static void blender::decimate_modal_update (bContext *C, wmOperator *op)
static wmOperatorStatus blender::decimate_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::decimate_exec (bContext *C, wmOperator *op)
static bool blender::decimate_poll_property (const bContext *, wmOperator *op, const PropertyRNA *prop)
static std::string blender::decimate_get_description (bContext *, wmOperatorType *, PointerRNA *ptr)
void blender::GRAPH_OT_decimate (wmOperatorType *ot)

Shear Operator

static const EnumPropertyItem blender::shear_direction_items []
static void blender::shear_graph_keys (bAnimContext *ac, const float factor, tShearDirection direction)
static void blender::shear_draw_status_header (bContext *C, tGraphSliderOp *gso, tShearDirection direction)
static void blender::shear_modal_update (bContext *C, wmOperator *op)
static wmOperatorStatus blender::shear_modal (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::shear_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::shear_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_shear (wmOperatorType *ot)

Scale from Left Operator

static const EnumPropertyItem blender::scale_anchor_items []
static void blender::scale_from_neighbor_graph_keys (bAnimContext *ac, const float factor, const FCurveSegmentAnchor anchor)
static void blender::scale_from_neighbor_draw_status_header (bContext *C, wmOperator *op)
static void blender::scale_from_neighbor_modal_update (bContext *C, wmOperator *op)
static wmOperatorStatus blender::scale_from_neighbor_modal (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::scale_from_neighbor_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::scale_from_neighbor_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_scale_from_neighbor (wmOperatorType *ot)

Detailed Description

Graph Slider Operators

This file contains a collection of operators to modify keyframes in the graph editor. All operators are modal and use a slider that allows the user to define a percentage to modify the operator.

Definition in file graph_slider_ops.cc.

Macro Definition Documentation

◆ OPERATOR_DATA_FILTER