|
Blender V5.0
|
#include <cfloat>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_listbase.h"#include "BLI_math_base.h"#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 | tGraphSliderOp |
| struct | tBeztCopyData |
| struct | tGaussOperatorData |
| struct | tFCurveSegmentLink |
| struct | tBtwOperatorData |
Macros | |
Internal Struct & Defines | |
| #define | OPERATOR_DATA_FILTER |
Decimate Keyframes Operator | |
| enum | tDecimModes { DECIM_RATIO = 1 , DECIM_ERROR } |
| static const EnumPropertyItem | decimate_mode_items [] |
| static void | decimate_graph_keys (bAnimContext *ac, float factor, float error_sq_max) |
| static void | decimate_draw_status (bContext *C, tGraphSliderOp *gso) |
| static void | decimate_modal_update (bContext *C, wmOperator *op) |
| static wmOperatorStatus | decimate_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | decimate_exec (bContext *C, wmOperator *op) |
| static bool | decimate_poll_property (const bContext *, wmOperator *op, const PropertyRNA *prop) |
| static std::string | decimate_get_description (bContext *, wmOperatorType *, PointerRNA *ptr) |
| void | GRAPH_OT_decimate (wmOperatorType *ot) |
Shear Operator | |
| static const EnumPropertyItem | shear_direction_items [] |
| static void | shear_graph_keys (bAnimContext *ac, const float factor, tShearDirection direction) |
| static void | shear_draw_status_header (bContext *C, tGraphSliderOp *gso, tShearDirection direction) |
| static void | shear_modal_update (bContext *C, wmOperator *op) |
| static wmOperatorStatus | shear_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | shear_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | shear_exec (bContext *C, wmOperator *op) |
| void | GRAPH_OT_shear (wmOperatorType *ot) |
Scale from Left Operator | |
| static const EnumPropertyItem | scale_anchor_items [] |
| static void | scale_from_neighbor_graph_keys (bAnimContext *ac, const float factor, const FCurveSegmentAnchor anchor) |
| static void | scale_from_neighbor_draw_status_header (bContext *C, wmOperator *op) |
| static void | scale_from_neighbor_modal_update (bContext *C, wmOperator *op) |
| static wmOperatorStatus | scale_from_neighbor_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | scale_from_neighbor_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | scale_from_neighbor_exec (bContext *C, wmOperator *op) |
| void | GRAPH_OT_scale_from_neighbor (wmOperatorType *ot) |
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.
| #define OPERATOR_DATA_FILTER |
Definition at line 58 of file graph_slider_ops.cc.
Referenced by apply_fcu_segment_function(), blend_to_default_graph_keys(), btw_smooth_allocate_operator_data(), btw_smooth_graph_keys(), decimate_graph_keys(), ease_graph_keys(), gaussian_smooth_allocate_operator_data(), gaussian_smooth_graph_keys(), match_slope_graph_keys(), reset_bezts(), scale_from_neighbor_graph_keys(), shear_graph_keys(), store_original_bezt_arrays(), and update_depsgraph().
| enum tDecimModes |
| Enumerator | |
|---|---|
| DECIM_RATIO | |
| DECIM_ERROR | |
Definition at line 427 of file graph_slider_ops.cc.
|
static |
Helper function that iterates over all FCurves and selected segments and applies the given function.
Definition at line 102 of file graph_slider_ops.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEFAULT, BLI_freelistN(), bAnimContext::data, bAnimContext::datatype, find_fcurve_segments(), LISTBASE_FOREACH, and OPERATOR_DATA_FILTER.
Referenced by blend_offset_graph_keys(), blend_to_ease_graph_keys(), blend_to_neighbor_graph_keys(), breakdown_graph_keys(), push_pull_graph_keys(), scale_average_graph_keys(), and time_offset_graph_keys().
|
static |
Definition at line 1802 of file graph_slider_ops.cc.
References FCurve::bezt, i, MEM_calloc_arrayN(), and BezTriple::vec.
Referenced by gaussian_smooth_allocate_operator_data(), and gaussian_smooth_graph_keys().
|
static |
Definition at line 1116 of file graph_slider_ops.cc.
References C, and common_draw_status_header().
Referenced by blend_offset_invoke(), and blend_offset_modal_update().
|
static |
Definition at line 1152 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), blend_offset_graph_keys(), C, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), and WM_event_add_notifier().
Referenced by GRAPH_OT_blend_offset().
|
static |
Definition at line 1111 of file graph_slider_ops.cc.
References apply_fcu_segment_function(), and blend_offset_fcurve_segment().
Referenced by blend_offset_exec(), and blend_offset_modal_update().
|
static |
Definition at line 1134 of file graph_slider_ops.cc.
References blend_offset_draw_status_header(), blend_offset_modal_update(), C, wmOperator::customdata, ED_slider_factor_bounds_set(), ED_slider_factor_set(), tGraphSliderOp::factor_prop, graph_slider_invoke(), tGraphSliderOp::modal_update, OPERATOR_CANCELLED, wmOperator::ptr, RNA_struct_find_property(), and tGraphSliderOp::slider.
Referenced by GRAPH_OT_blend_offset().
|
static |
Definition at line 1121 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, blend_offset_draw_status_header(), blend_offset_graph_keys(), C, wmOperator::customdata, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, reset_bezts(), slider_factor_get_and_remember(), and WM_event_add_notifier().
Referenced by blend_offset_invoke().
|
static |
Definition at line 874 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), blend_to_default_graph_keys(), C, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), and WM_event_add_notifier().
Referenced by GRAPH_OT_blend_to_default().
|
static |
Definition at line 819 of file graph_slider_ops.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEFAULT, FCurve::bezt, blend_to_default_fcurve(), bAnimContext::data, bAnimContext::datatype, LISTBASE_FOREACH, OPERATOR_DATA_FILTER, RNA_id_pointer_create(), and FCurve::totvert.
Referenced by blend_to_default_exec(), and blend_to_default_modal_update().
|
static |
Definition at line 857 of file graph_slider_ops.cc.
References blend_to_default_modal_update(), C, common_draw_status_header(), wmOperator::customdata, ED_slider_factor_set(), tGraphSliderOp::factor_prop, graph_slider_invoke(), tGraphSliderOp::modal_update, OPERATOR_CANCELLED, wmOperator::ptr, RNA_struct_find_property(), and tGraphSliderOp::slider.
Referenced by GRAPH_OT_blend_to_default().
|
static |
Definition at line 843 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, blend_to_default_graph_keys(), C, common_draw_status_header(), wmOperator::customdata, ED_slider_factor_get(), tGraphSliderOp::factor_prop, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, wmOperator::ptr, reset_bezts(), RNA_property_float_set(), tGraphSliderOp::slider, and WM_event_add_notifier().
Referenced by blend_to_default_invoke().
|
static |
Definition at line 1209 of file graph_slider_ops.cc.
References C, and common_draw_status_header().
Referenced by blend_to_ease_invoke(), and blend_to_ease_modal_update().
|
static |
Definition at line 1246 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), blend_to_ease_graph_keys(), C, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), and WM_event_add_notifier().
Referenced by GRAPH_OT_blend_to_ease().
|
static |
Definition at line 1204 of file graph_slider_ops.cc.
References apply_fcu_segment_function(), and blend_to_ease_fcurve_segment().
Referenced by blend_to_ease_exec(), and blend_to_ease_modal_update().
|
static |
Definition at line 1227 of file graph_slider_ops.cc.
References blend_to_ease_draw_status_header(), blend_to_ease_modal_update(), C, wmOperator::customdata, ED_slider_allow_overshoot_set(), ED_slider_factor_bounds_set(), ED_slider_factor_set(), tGraphSliderOp::factor_prop, graph_slider_invoke(), tGraphSliderOp::modal_update, OPERATOR_CANCELLED, wmOperator::ptr, RNA_struct_find_property(), and tGraphSliderOp::slider.
Referenced by GRAPH_OT_blend_to_ease().
|
static |
Definition at line 1214 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, blend_to_ease_draw_status_header(), blend_to_ease_graph_keys(), C, wmOperator::customdata, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, reset_bezts(), slider_factor_get_and_remember(), and WM_event_add_notifier().
Referenced by blend_to_ease_invoke().
|
static |
Definition at line 681 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), blend_to_neighbor_graph_keys(), C, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), and WM_event_add_notifier().
Referenced by GRAPH_OT_blend_to_neighbor().
|
static |
Definition at line 643 of file graph_slider_ops.cc.
References apply_fcu_segment_function(), and blend_to_neighbor_fcurve_segment().
Referenced by blend_to_neighbor_exec(), and blend_to_neighbor_modal_update().
|
static |
Definition at line 663 of file graph_slider_ops.cc.
References blend_to_neighbor_modal_update(), C, common_draw_status_header(), wmOperator::customdata, ED_slider_factor_bounds_set(), ED_slider_factor_set(), tGraphSliderOp::factor_prop, graph_slider_invoke(), tGraphSliderOp::modal_update, OPERATOR_CANCELLED, wmOperator::ptr, RNA_struct_find_property(), and tGraphSliderOp::slider.
Referenced by GRAPH_OT_blend_to_neighbor().
|
static |
Definition at line 648 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, blend_to_neighbor_graph_keys(), C, common_draw_status_header(), wmOperator::customdata, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, reset_bezts(), slider_factor_get_and_remember(), and WM_event_add_notifier().
Referenced by blend_to_neighbor_invoke().
|
static |
Definition at line 768 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), breakdown_graph_keys(), C, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), and WM_event_add_notifier().
Referenced by GRAPH_OT_breakdown().
|
static |
Definition at line 732 of file graph_slider_ops.cc.
References apply_fcu_segment_function(), and breakdown_fcurve_segment().
Referenced by breakdown_exec(), and breakdown_modal_update().
|
static |
Definition at line 750 of file graph_slider_ops.cc.
References breakdown_modal_update(), C, common_draw_status_header(), wmOperator::customdata, ED_slider_factor_bounds_set(), ED_slider_factor_set(), tGraphSliderOp::factor_prop, graph_slider_invoke(), tGraphSliderOp::modal_update, OPERATOR_CANCELLED, wmOperator::ptr, RNA_struct_find_property(), and tGraphSliderOp::slider.
Referenced by GRAPH_OT_breakdown().
|
static |
Definition at line 737 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, breakdown_graph_keys(), C, common_draw_status_header(), wmOperator::customdata, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, reset_bezts(), slider_factor_get_and_remember(), and WM_event_add_notifier().
Referenced by breakdown_invoke().
|
static |
Definition at line 2044 of file graph_slider_ops.cc.
References BezTriple::vec.
Referenced by btw_smooth_allocate_operator_data(), and btw_smooth_graph_keys().
|
static |
Definition at line 2058 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, ANIM_animdata_filter(), tBtwOperatorData::anim_data, FCurve::bezt, BLI_addtail(), btw_calculate_sample_count(), tBtwOperatorData::coefficients, bAnimContext::data, bAnimContext::datatype, ED_anim_allocate_butterworth_coefficients(), tFCurveSegmentLink::fcu, find_fcurve_segments(), LISTBASE_FOREACH, MEM_calloc_arrayN(), MEM_callocN(), tGraphSliderOp::operator_data, OPERATOR_DATA_FILTER, tFCurveSegmentLink::sample_count, blender::animrig::sample_fcurve_segment(), tFCurveSegmentLink::samples, tFCurveSegmentLink::segment, tBtwOperatorData::segment_links, and BezTriple::vec.
Referenced by btw_smooth_invoke().
|
static |
Definition at line 2230 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), blend(), btw_smooth_graph_keys(), C, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), RNA_int_get(), and WM_event_add_notifier().
Referenced by GRAPH_OT_butterworth_smooth().
|
static |
Definition at line 2098 of file graph_slider_ops.cc.
References ANIM_animdata_freelist(), tBtwOperatorData::anim_data, BLI_freelistN(), tBtwOperatorData::coefficients, ED_anim_free_butterworth_coefficients(), LISTBASE_FOREACH, MEM_freeN(), and tBtwOperatorData::segment_links.
Referenced by btw_smooth_invoke().
|
static |
Definition at line 2185 of file graph_slider_ops.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEFAULT, FCurve::bezt, BLI_freelistN(), btw_calculate_sample_count(), butterworth_smooth_fcurve_segment(), bAnimContext::data, bAnimContext::datatype, ED_anim_allocate_butterworth_coefficients(), ED_anim_calculate_butterworth_coefficients(), ED_anim_free_butterworth_coefficients(), find_fcurve_segments(), float, RenderData::frs_sec, RenderData::frs_sec_base, LISTBASE_FOREACH, MEM_calloc_arrayN(), MEM_freeN(), min_ff(), OPERATOR_DATA_FILTER, Scene::r, blender::animrig::sample_fcurve_segment(), bAnimContext::scene, and BezTriple::vec.
Referenced by btw_smooth_exec().
|
static |
Definition at line 2154 of file graph_slider_ops.cc.
References btw_smooth_allocate_operator_data(), btw_smooth_free_operator_data(), btw_smooth_modal_update(), C, common_draw_status_header(), wmOperator::customdata, ED_slider_allow_overshoot_set(), ED_slider_factor_bounds_set(), ED_slider_factor_set(), ED_slider_increment_step_set(), ED_slider_mode_set(), ED_slider_unit_set(), tGraphSliderOp::factor_prop, float, tGraphSliderOp::free_operator_data, RenderData::frs_sec, RenderData::frs_sec_base, graph_slider_invoke(), tGraphSliderOp::modal_update, OPERATOR_CANCELLED, wmOperator::ptr, Scene::r, RNA_float_get(), RNA_int_get(), RNA_struct_find_property(), tGraphSliderOp::scene, tGraphSliderOp::slider, and SLIDER_MODE_FLOAT.
Referenced by GRAPH_OT_butterworth_smooth().
|
static |
Definition at line 2111 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), ANIM_animdata_update(), tBtwOperatorData::anim_data, ANIM_UPDATE_DEFAULT, butterworth_smooth_fcurve_segment(), C, tBtwOperatorData::coefficients, common_draw_status_header(), wmOperator::customdata, ED_anim_calculate_butterworth_coefficients(), float, RenderData::frs_sec, RenderData::frs_sec_base, LISTBASE_FOREACH, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, tGraphSliderOp::operator_data, wmOperator::ptr, Scene::r, RNA_int_get(), bAnimContext::scene, tBtwOperatorData::segment_links, slider_factor_get_and_remember(), and WM_event_add_notifier().
Referenced by btw_smooth_invoke().
|
static |
Definition at line 128 of file graph_slider_ops.cc.
References C, ED_slider_status_get(), hasNumInput(), IFACE_, tGraphSliderOp::num, NUM_STR_REP_LEN, outputNumInput(), tGraphSliderOp::scene, tGraphSliderOp::slider, status, and Scene::unit.
Referenced by blend_offset_draw_status_header(), blend_to_default_invoke(), blend_to_default_modal_update(), blend_to_ease_draw_status_header(), blend_to_neighbor_invoke(), blend_to_neighbor_modal_update(), breakdown_invoke(), breakdown_modal_update(), btw_smooth_invoke(), btw_smooth_modal_update(), gaussian_smooth_invoke(), gaussian_smooth_modal_update(), match_slope_draw_status_header(), push_pull_invoke(), push_pull_modal_update(), scale_average_invoke(), scale_average_modal_update(), and time_offset_draw_status_header().
|
static |
Definition at line 455 of file graph_slider_ops.cc.
References C, ED_slider_status_get(), hasNumInput(), IFACE_, tGraphSliderOp::num, NUM_STR_REP_LEN, outputNumInput(), tGraphSliderOp::scene, tGraphSliderOp::slider, status, and Scene::unit.
Referenced by decimate_modal_update().
|
static |
Definition at line 506 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), C, DECIM_ERROR, DECIM_RATIO, decimate_graph_keys(), FLT_MAX, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), and WM_event_add_notifier().
Referenced by GRAPH_OT_decimate().
|
static |
Definition at line 561 of file graph_slider_ops.cc.
References DECIM_ERROR, ptr, RNA_enum_get(), and TIP_.
Referenced by GRAPH_OT_decimate().
|
static |
Definition at line 432 of file graph_slider_ops.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEFAULT, BKE_report(), bAnimContext::data, bAnimContext::datatype, decimate_fcurve(), LISTBASE_FOREACH, OPERATOR_DATA_FILTER, bAnimContext::reports, and RPT_WARNING.
Referenced by decimate_exec(), and decimate_modal_update().
|
static |
Definition at line 490 of file graph_slider_ops.cc.
References C, wmOperator::customdata, decimate_modal_update(), ED_slider_allow_overshoot_set(), tGraphSliderOp::factor_prop, graph_slider_invoke(), tGraphSliderOp::modal_update, OPERATOR_CANCELLED, wmOperator::ptr, RNA_struct_find_property(), and tGraphSliderOp::slider.
Referenced by GRAPH_OT_decimate().
|
static |
Definition at line 471 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, C, wmOperator::customdata, decimate_draw_status(), decimate_graph_keys(), FLT_MAX, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, reset_bezts(), slider_factor_get_and_remember(), and WM_event_add_notifier().
Referenced by decimate_invoke().
|
static |
Definition at line 546 of file graph_slider_ops.cc.
References DECIM_ERROR, DECIM_RATIO, wmOperator::ptr, RNA_enum_get(), RNA_property_identifier(), and STREQ.
Referenced by GRAPH_OT_decimate().
|
static |
Definition at line 946 of file graph_slider_ops.cc.
References C, wmOperator::customdata, ED_slider_status_get(), tGraphSliderOp::factor_prop, hasNumInput(), IFACE_, tGraphSliderOp::num, NUM_STR_REP_LEN, outputNumInput(), RNA_property_identifier(), tGraphSliderOp::scene, tGraphSliderOp::slider, status, STREQ, and Scene::unit.
Referenced by ease_invoke(), and ease_modal_update().
|
static |
Definition at line 1050 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), C, ease_graph_keys(), NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), and WM_event_add_notifier().
Referenced by GRAPH_OT_ease().
|
static |
Definition at line 924 of file graph_slider_ops.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEFAULT, BLI_freelistN(), bAnimContext::data, bAnimContext::datatype, ease_fcurve_segment(), find_fcurve_segments(), LISTBASE_FOREACH, and OPERATOR_DATA_FILTER.
Referenced by ease_exec(), and ease_modal_update().
|
static |
Definition at line 1030 of file graph_slider_ops.cc.
References C, wmOperator::customdata, ease_draw_status_header(), ease_modal_update(), ED_slider_allow_overshoot_set(), ED_slider_factor_bounds_set(), ED_slider_factor_set(), ED_slider_property_label_set(), tGraphSliderOp::factor_prop, graph_slider_invoke(), tGraphSliderOp::modal_update, OPERATOR_CANCELLED, wmOperator::ptr, RNA_property_ui_name(), RNA_struct_find_property(), and tGraphSliderOp::slider.
Referenced by GRAPH_OT_ease().
|
static |
Definition at line 993 of file graph_slider_ops.cc.
References C, wmOperator::customdata, ease_modal_update(), ED_slider_allow_overshoot_set(), ED_slider_factor_bounds_set(), ED_slider_factor_set(), ED_slider_mode_set(), ED_slider_unit_set(), EVT_TABKEY, tGraphSliderOp::factor_prop, graph_slider_modal(), KM_PRESS, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_get(), RNA_property_identifier(), RNA_struct_find_property(), tGraphSliderOp::slider, SLIDER_MODE_FLOAT, SLIDER_MODE_PERCENT, STREQ, wmEvent::type, and wmEvent::val.
Referenced by GRAPH_OT_ease().
|
static |
Definition at line 970 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, C, wmOperator::customdata, ease_draw_status_header(), ease_graph_keys(), tGraphSliderOp::factor_prop, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, wmOperator::ptr, reset_bezts(), RNA_float_get(), RNA_property_identifier(), slider_factor_get_and_remember(), STREQ, and WM_event_add_notifier().
Referenced by ease_invoke(), and ease_modal().
|
static |
Definition at line 1812 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, ANIM_animdata_filter(), tGaussOperatorData::anim_data, back_up_key_y_values(), FCurve::bezt, BLI_addtail(), bAnimContext::data, bAnimContext::datatype, ED_ANIM_get_1d_gauss_kernel(), tFCurveSegmentLink::fcu, find_fcurve_segments(), tGaussOperatorData::kernel, LISTBASE_FOREACH, MEM_calloc_arrayN(), MEM_callocN(), tGraphSliderOp::operator_data, OPERATOR_DATA_FILTER, tFCurveSegmentLink::original_y_values, tFCurveSegmentLink::sample_count, blender::animrig::sample_fcurve_segment(), tFCurveSegmentLink::samples, tFCurveSegmentLink::segment, tGaussOperatorData::segment_links, and BezTriple::vec.
Referenced by gaussian_smooth_invoke().
|
static |
Definition at line 1963 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), C, ED_ANIM_get_1d_gauss_kernel(), gaussian_smooth_graph_keys(), MEM_calloc_arrayN(), MEM_freeN(), NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), RNA_int_get(), and WM_event_add_notifier().
Referenced by GRAPH_OT_gaussian_smooth().
|
static |
Definition at line 1853 of file graph_slider_ops.cc.
References ANIM_animdata_freelist(), tGaussOperatorData::anim_data, BLI_freelistN(), tGaussOperatorData::kernel, LISTBASE_FOREACH, MEM_freeN(), and tGaussOperatorData::segment_links.
Referenced by gaussian_smooth_invoke().
|
static |
Definition at line 1927 of file graph_slider_ops.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEFAULT, back_up_key_y_values(), FCurve::bezt, BLI_freelistN(), bAnimContext::data, bAnimContext::datatype, find_fcurve_segments(), LISTBASE_FOREACH, MEM_calloc_arrayN(), MEM_freeN(), OPERATOR_DATA_FILTER, blender::animrig::sample_fcurve_segment(), smooth_fcurve_segment(), and BezTriple::vec.
Referenced by gaussian_smooth_exec().
|
static |
Definition at line 1902 of file graph_slider_ops.cc.
References C, common_draw_status_header(), wmOperator::customdata, ED_slider_allow_overshoot_set(), ED_slider_factor_set(), tGraphSliderOp::factor_prop, tGraphSliderOp::free_operator_data, gaussian_smooth_allocate_operator_data(), gaussian_smooth_free_operator_data(), gaussian_smooth_modal_update(), graph_slider_invoke(), tGraphSliderOp::modal_update, OPERATOR_CANCELLED, wmOperator::ptr, RNA_float_get(), RNA_int_get(), RNA_struct_find_property(), and tGraphSliderOp::slider.
Referenced by GRAPH_OT_gaussian_smooth().
|
static |
Definition at line 1867 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), ANIM_animdata_update(), tGaussOperatorData::anim_data, ANIM_UPDATE_DEFAULT, C, common_draw_status_header(), wmOperator::customdata, tGaussOperatorData::kernel, LISTBASE_FOREACH, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, tGraphSliderOp::operator_data, wmOperator::ptr, RNA_int_get(), tGaussOperatorData::segment_links, slider_factor_get_and_remember(), smooth_fcurve_segment(), and WM_event_add_notifier().
Referenced by gaussian_smooth_invoke().
| void GRAPH_OT_blend_offset | ( | wmOperatorType * | ot | ) |
Definition at line 1171 of file graph_slider_ops.cc.
References blend_offset_exec(), blend_offset_invoke(), FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_float_factor().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_blend_to_default | ( | wmOperatorType * | ot | ) |
Definition at line 892 of file graph_slider_ops.cc.
References blend_to_default_exec(), blend_to_default_invoke(), FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_float_factor().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_blend_to_ease | ( | wmOperatorType * | ot | ) |
Definition at line 1265 of file graph_slider_ops.cc.
References blend_to_ease_exec(), blend_to_ease_invoke(), FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_float_factor().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_blend_to_neighbor | ( | wmOperatorType * | ot | ) |
Definition at line 699 of file graph_slider_ops.cc.
References blend_to_neighbor_exec(), blend_to_neighbor_invoke(), FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_float_factor().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_breakdown | ( | wmOperatorType * | ot | ) |
Definition at line 786 of file graph_slider_ops.cc.
References breakdown_exec(), breakdown_invoke(), FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_float_factor().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_butterworth_smooth | ( | wmOperatorType * | ot | ) |
Definition at line 2251 of file graph_slider_ops.cc.
References btw_smooth_exec(), btw_smooth_invoke(), FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_float(), RNA_def_float_factor(), and RNA_def_int().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_decimate | ( | wmOperatorType * | ot | ) |
Definition at line 590 of file graph_slider_ops.cc.
References DECIM_RATIO, decimate_exec(), decimate_get_description(), decimate_invoke(), decimate_mode_items, decimate_poll_property(), FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_enum(), RNA_def_float(), and RNA_def_float_factor().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_ease | ( | wmOperatorType * | ot | ) |
Definition at line 1068 of file graph_slider_ops.cc.
References ease_exec(), ease_invoke(), ease_modal(), FLT_MAX, graphop_editable_keyframes_poll(), OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_float(), and RNA_def_float_factor().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_gaussian_smooth | ( | wmOperatorType * | ot | ) |
Definition at line 1986 of file graph_slider_ops.cc.
References FLT_MAX, gaussian_smooth_exec(), gaussian_smooth_invoke(), graph_slider_modal(), graphop_editable_keyframes_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_float(), RNA_def_float_factor(), and RNA_def_int().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_match_slope | ( | wmOperatorType * | ot | ) |
Definition at line 1390 of file graph_slider_ops.cc.
References FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), match_slope_exec(), match_slope_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_float_factor().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_push_pull | ( | wmOperatorType * | ot | ) |
Definition at line 2378 of file graph_slider_ops.cc.
References FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, push_pull_exec(), push_pull_invoke(), and RNA_def_float_factor().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_scale_average | ( | wmOperatorType * | ot | ) |
Definition at line 1747 of file graph_slider_ops.cc.
References FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_float_factor(), scale_average_exec(), and scale_average_invoke().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_scale_from_neighbor | ( | wmOperatorType * | ot | ) |
Definition at line 2550 of file graph_slider_ops.cc.
References FLT_MAX, graphop_editable_keyframes_poll(), LEFT, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_enum(), RNA_def_float_factor(), scale_anchor_items, scale_from_neighbor_exec(), scale_from_neighbor_invoke(), and scale_from_neighbor_modal().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_shear | ( | wmOperatorType * | ot | ) |
Definition at line 1652 of file graph_slider_ops.cc.
References FLT_MAX, graphop_editable_keyframes_poll(), OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_enum(), RNA_def_float_factor(), shear_direction_items, shear_exec(), SHEAR_FROM_LEFT, shear_invoke(), and shear_modal().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_time_offset | ( | wmOperatorType * | ot | ) |
Definition at line 1484 of file graph_slider_ops.cc.
References FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_float_factor(), time_offset_exec(), and time_offset_invoke().
Referenced by graphedit_operatortypes().
|
static |
Definition at line 243 of file graph_slider_ops.cc.
References tGraphSliderOp::area, tGraphSliderOp::bezt_arr_list, BLI_freelistN(), C, copy(), CTX_wm_window(), wmOperator::customdata, LinkData::data, ED_area_status_text(), ED_slider_destroy(), ListBase::first, tGraphSliderOp::free_operator_data, MEM_freeN(), LinkData::next, tGraphSliderOp::operator_data, tGraphSliderOp::slider, and WM_cursor_modal_restore().
Referenced by graph_slider_invoke(), and graph_slider_modal().
|
static |
Definition at line 385 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, ANIM_animdata_get_context(), tGraphSliderOp::area, tGraphSliderOp::bezt_arr_list, BKE_report(), C, CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), CTX_wm_window(), wmOperator::customdata, ED_slider_create(), ED_slider_init(), ListBase::first, graph_slider_exit(), MEM_callocN(), OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, tGraphSliderOp::region, bAnimContext::reports, wmOperator::reports, RPT_ERROR, tGraphSliderOp::scene, tGraphSliderOp::slider, store_original_bezt_arrays(), WM_CURSOR_EW_SCROLL, WM_cursor_modal_set(), and WM_event_add_modal_handler().
Referenced by blend_offset_invoke(), blend_to_default_invoke(), blend_to_ease_invoke(), blend_to_neighbor_invoke(), breakdown_invoke(), btw_smooth_invoke(), decimate_invoke(), ease_invoke(), gaussian_smooth_invoke(), match_slope_invoke(), push_pull_invoke(), scale_average_invoke(), scale_from_neighbor_invoke(), shear_invoke(), and time_offset_invoke().
|
static |
Definition at line 295 of file graph_slider_ops.cc.
References applyNumInput(), C, wmOperator::customdata, ED_slider_factor_set(), ED_slider_modal(), ED_slider_mode_get(), ED_slider_property_label_set(), EVT_ESCKEY, EVT_PADENTER, EVT_RETKEY, EVT_TABKEY, tGraphSliderOp::factor_prop, graph_slider_exit(), handleNumInput(), hasNumInput(), ISKEYMODIFIER, KM_PRESS, KM_RELEASE, LEFTMOUSE, tGraphSliderOp::modal_update, MOUSEMOVE, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, tGraphSliderOp::num, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmOperator::ptr, reset_bezts(), RIGHTMOUSE, RNA_property_float_set(), RNA_property_ui_name(), tGraphSliderOp::slider, SLIDER_MODE_PERCENT, wmEvent::type, wmOperator::type, update_depsgraph(), wmEvent::val, WM_event_add_notifier(), and WM_operatortype_name().
Referenced by ease_modal(), GRAPH_OT_blend_offset(), GRAPH_OT_blend_to_default(), GRAPH_OT_blend_to_ease(), GRAPH_OT_blend_to_neighbor(), GRAPH_OT_breakdown(), GRAPH_OT_butterworth_smooth(), GRAPH_OT_decimate(), GRAPH_OT_gaussian_smooth(), GRAPH_OT_match_slope(), GRAPH_OT_push_pull(), GRAPH_OT_scale_average(), GRAPH_OT_time_offset(), scale_from_neighbor_modal(), and shear_modal().
|
static |
Definition at line 1333 of file graph_slider_ops.cc.
References C, and common_draw_status_header().
Referenced by match_slope_invoke(), and match_slope_modal_update().
|
static |
Definition at line 1370 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), C, match_slope_graph_keys(), NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, bAnimContext::reports, wmOperator::reports, RNA_float_get(), and WM_event_add_notifier().
Referenced by GRAPH_OT_match_slope().
|
static |
Definition at line 1298 of file graph_slider_ops.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEFAULT, BKE_report(), BLI_freelistN(), bAnimContext::data, bAnimContext::datatype, find_fcurve_segments(), LISTBASE_FOREACH, match_slope_fcurve_segment(), OPERATOR_DATA_FILTER, bAnimContext::reports, and RPT_WARNING.
Referenced by match_slope_exec(), and match_slope_modal_update().
|
static |
Definition at line 1351 of file graph_slider_ops.cc.
References C, wmOperator::customdata, ED_slider_allow_overshoot_set(), ED_slider_factor_bounds_set(), ED_slider_factor_set(), tGraphSliderOp::factor_prop, graph_slider_invoke(), match_slope_draw_status_header(), match_slope_modal_update(), tGraphSliderOp::modal_update, OPERATOR_CANCELLED, wmOperator::ptr, RNA_struct_find_property(), and tGraphSliderOp::slider.
Referenced by GRAPH_OT_match_slope().
|
static |
Definition at line 1338 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, C, wmOperator::customdata, match_slope_draw_status_header(), match_slope_graph_keys(), NA_EDITED, NC_ANIMATION, ND_KEYFRAME, reset_bezts(), slider_factor_get_and_remember(), and WM_event_add_notifier().
Referenced by match_slope_invoke().
|
static |
Definition at line 2359 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), C, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, push_pull_graph_keys(), RNA_float_get(), and WM_event_add_notifier().
Referenced by GRAPH_OT_push_pull().
|
static |
Definition at line 2323 of file graph_slider_ops.cc.
References apply_fcu_segment_function(), and push_pull_fcurve_segment().
Referenced by push_pull_exec(), and push_pull_modal_update().
|
static |
Definition at line 2341 of file graph_slider_ops.cc.
References C, common_draw_status_header(), wmOperator::customdata, ED_slider_factor_bounds_set(), ED_slider_factor_set(), tGraphSliderOp::factor_prop, graph_slider_invoke(), tGraphSliderOp::modal_update, OPERATOR_CANCELLED, wmOperator::ptr, push_pull_modal_update(), RNA_struct_find_property(), and tGraphSliderOp::slider.
Referenced by GRAPH_OT_push_pull().
|
static |
Definition at line 2328 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, C, common_draw_status_header(), wmOperator::customdata, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, push_pull_graph_keys(), reset_bezts(), slider_factor_get_and_remember(), and WM_event_add_notifier().
Referenced by push_pull_invoke().
|
static |
Definition at line 185 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, ANIM_animdata_filter(), ANIM_animdata_freelist(), FCurve::bezt, tGraphSliderOp::bezt_arr_list, bAnimContext::data, data, LinkData::data, bAnimContext::datatype, ListBase::first, bAnimListElem::key_data, MEM_freeN(), MEM_malloc_arrayN(), bAnimListElem::next, LinkData::next, OPERATOR_DATA_FILTER, and FCurve::totvert.
Referenced by blend_offset_modal_update(), blend_to_default_modal_update(), blend_to_ease_modal_update(), blend_to_neighbor_modal_update(), breakdown_modal_update(), decimate_modal_update(), ease_modal_update(), graph_slider_modal(), match_slope_modal_update(), push_pull_modal_update(), scale_average_modal_update(), scale_from_neighbor_modal_update(), shear_modal_update(), and time_offset_modal_update().
|
static |
Definition at line 1728 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), C, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), scale_average_graph_keys(), and WM_event_add_notifier().
Referenced by GRAPH_OT_scale_average().
|
static |
Definition at line 1692 of file graph_slider_ops.cc.
References apply_fcu_segment_function(), and scale_average_fcurve_segment().
Referenced by scale_average_exec(), and scale_average_modal_update().
|
static |
Definition at line 1710 of file graph_slider_ops.cc.
References C, common_draw_status_header(), wmOperator::customdata, ED_slider_factor_bounds_set(), ED_slider_factor_set(), tGraphSliderOp::factor_prop, graph_slider_invoke(), tGraphSliderOp::modal_update, OPERATOR_CANCELLED, wmOperator::ptr, RNA_struct_find_property(), scale_average_modal_update(), and tGraphSliderOp::slider.
Referenced by GRAPH_OT_scale_average().
|
static |
Definition at line 1697 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, C, common_draw_status_header(), wmOperator::customdata, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, reset_bezts(), scale_average_graph_keys(), slider_factor_get_and_remember(), and WM_event_add_notifier().
Referenced by scale_average_invoke().
|
static |
Definition at line 2440 of file graph_slider_ops.cc.
References C, wmOperator::customdata, ED_slider_status_get(), hasNumInput(), IFACE_, LEFT, tGraphSliderOp::num, NUM_STR_REP_LEN, outputNumInput(), wmOperator::ptr, RNA_enum_get(), tGraphSliderOp::scene, tGraphSliderOp::slider, status, and Scene::unit.
Referenced by scale_from_neighbor_invoke(), and scale_from_neighbor_modal_update().
|
static |
Definition at line 2530 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), C, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), scale_from_neighbor_graph_keys(), and WM_event_add_notifier().
Referenced by GRAPH_OT_scale_from_neighbor().
|
static |
Definition at line 2416 of file graph_slider_ops.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEFAULT, BLI_freelistN(), bAnimContext::data, bAnimContext::datatype, find_fcurve_segments(), LISTBASE_FOREACH, OPERATOR_DATA_FILTER, and scale_from_fcurve_segment_neighbor().
Referenced by scale_from_neighbor_exec(), and scale_from_neighbor_modal_update().
|
static |
Definition at line 2510 of file graph_slider_ops.cc.
References C, wmOperator::customdata, ED_slider_factor_bounds_set(), ED_slider_factor_set(), tGraphSliderOp::factor_prop, graph_slider_invoke(), tGraphSliderOp::modal_update, OPERATOR_CANCELLED, wmOperator::ptr, RNA_struct_find_property(), scale_from_neighbor_draw_status_header(), scale_from_neighbor_modal_update(), and tGraphSliderOp::slider.
Referenced by GRAPH_OT_scale_from_neighbor().
|
static |
Definition at line 2480 of file graph_slider_ops.cc.
References C, EVT_DKEY, graph_slider_modal(), KM_PRESS, LEFT, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RIGHT, RNA_enum_get(), RNA_enum_set(), scale_from_neighbor_modal_update(), wmEvent::type, and wmEvent::val.
Referenced by GRAPH_OT_scale_from_neighbor().
|
static |
Definition at line 2466 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, C, wmOperator::customdata, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, wmOperator::ptr, reset_bezts(), RNA_enum_get(), scale_from_neighbor_draw_status_header(), scale_from_neighbor_graph_keys(), slider_factor_get_and_remember(), and WM_event_add_notifier().
Referenced by scale_from_neighbor_invoke(), and scale_from_neighbor_modal().
|
static |
Definition at line 1553 of file graph_slider_ops.cc.
References C, ED_slider_status_get(), hasNumInput(), IFACE_, tGraphSliderOp::num, NUM_STR_REP_LEN, outputNumInput(), tGraphSliderOp::scene, SHEAR_FROM_LEFT, tGraphSliderOp::slider, status, and Scene::unit.
Referenced by shear_invoke(), and shear_modal_update().
|
static |
Definition at line 1632 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), C, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), shear_graph_keys(), and WM_event_add_notifier().
Referenced by GRAPH_OT_shear().
|
static |
Definition at line 1531 of file graph_slider_ops.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEFAULT, BLI_freelistN(), bAnimContext::data, bAnimContext::datatype, find_fcurve_segments(), LISTBASE_FOREACH, OPERATOR_DATA_FILTER, and shear_fcurve_segment().
Referenced by shear_exec(), and shear_modal_update().
|
static |
Definition at line 1612 of file graph_slider_ops.cc.
References C, wmOperator::customdata, ED_slider_factor_bounds_set(), ED_slider_factor_set(), tGraphSliderOp::factor_prop, graph_slider_invoke(), tGraphSliderOp::modal_update, OPERATOR_CANCELLED, wmOperator::ptr, RNA_enum_get(), RNA_struct_find_property(), shear_draw_status_header(), shear_modal_update(), and tGraphSliderOp::slider.
Referenced by GRAPH_OT_shear().
|
static |
Definition at line 1589 of file graph_slider_ops.cc.
References C, EVT_DKEY, graph_slider_modal(), KM_PRESS, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_enum_get(), RNA_enum_set(), SHEAR_FROM_LEFT, SHEAR_FROM_RIGHT, shear_modal_update(), wmEvent::type, and wmEvent::val.
Referenced by GRAPH_OT_shear().
|
static |
Definition at line 1574 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, C, wmOperator::customdata, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, wmOperator::ptr, reset_bezts(), RNA_enum_get(), shear_draw_status_header(), shear_graph_keys(), slider_factor_get_and_remember(), and WM_event_add_notifier().
Referenced by shear_invoke(), and shear_modal().
|
static |
Get factor value and store it in RNA property. Custom data of wmOperator needs to contain tGraphSliderOp.
Definition at line 229 of file graph_slider_ops.cc.
References wmOperator::customdata, ED_slider_factor_get(), tGraphSliderOp::factor_prop, wmOperator::ptr, RNA_property_float_set(), and tGraphSliderOp::slider.
Referenced by blend_offset_modal_update(), blend_to_ease_modal_update(), blend_to_neighbor_modal_update(), breakdown_modal_update(), btw_smooth_modal_update(), decimate_modal_update(), ease_modal_update(), gaussian_smooth_modal_update(), match_slope_modal_update(), push_pull_modal_update(), scale_average_modal_update(), scale_from_neighbor_modal_update(), shear_modal_update(), and time_offset_modal_update().
|
static |
Construct a list with the original bezt arrays so we can restore them during modal operation. The data is stored on the struct that is passed.
Definition at line 148 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, ANIM_animdata_filter(), ANIM_animdata_freelist(), FCurve::bezt, tGraphSliderOp::bezt_arr_list, BLI_addtail(), copy(), bAnimContext::data, LinkData::data, bAnimContext::datatype, LISTBASE_FOREACH, MEM_callocN(), MEM_malloc_arrayN(), MEM_mallocN(), OPERATOR_DATA_FILTER, and FCurve::totvert.
Referenced by graph_slider_invoke().
|
static |
Definition at line 1426 of file graph_slider_ops.cc.
References C, and common_draw_status_header().
Referenced by time_offset_invoke(), and time_offset_modal_update().
|
static |
Definition at line 1465 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), C, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), time_offset_graph_keys(), and WM_event_add_notifier().
Referenced by GRAPH_OT_time_offset().
|
static |
Definition at line 1421 of file graph_slider_ops.cc.
References apply_fcu_segment_function(), and time_offset_fcurve_segment().
Referenced by time_offset_exec(), and time_offset_modal_update().
|
static |
Definition at line 1444 of file graph_slider_ops.cc.
References C, wmOperator::customdata, ED_slider_factor_bounds_set(), ED_slider_factor_set(), ED_slider_increment_step_set(), ED_slider_mode_set(), ED_slider_unit_set(), tGraphSliderOp::factor_prop, graph_slider_invoke(), tGraphSliderOp::modal_update, OPERATOR_CANCELLED, wmOperator::ptr, RNA_struct_find_property(), tGraphSliderOp::slider, SLIDER_MODE_FLOAT, time_offset_draw_status_header(), and time_offset_modal_update().
Referenced by GRAPH_OT_time_offset().
|
static |
Definition at line 1431 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, C, wmOperator::customdata, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, reset_bezts(), slider_factor_get_and_remember(), time_offset_draw_status_header(), time_offset_graph_keys(), and WM_event_add_notifier().
Referenced by time_offset_invoke().
|
static |
Definition at line 281 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, ANIM_animdata_filter(), ANIM_animdata_freelist(), bAnimContext::data, bAnimContext::datatype, DEG_id_tag_update(), ID_RECALC_ANIMATION, LISTBASE_FOREACH, and OPERATOR_DATA_FILTER.
Referenced by graph_slider_modal().
|
static |
Definition at line 575 of file graph_slider_ops.cc.
Referenced by GRAPH_OT_decimate().
|
static |
Definition at line 2410 of file graph_slider_ops.cc.
Referenced by GRAPH_OT_scale_from_neighbor().
|
static |
Definition at line 1517 of file graph_slider_ops.cc.
Referenced by GRAPH_OT_shear().