|
Blender V4.3
|
#include <cfloat>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_listbase.h"#include "BLI_string.h"#include "DEG_depsgraph.hh"#include "DNA_anim_types.h"#include "DNA_scene_types.h"#include "RNA_access.hh"#include "RNA_define.hh"#include "BLT_translation.hh"#include "BKE_context.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 "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 int | decimate_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | 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) |
| static void | shear_modal_update (bContext *C, wmOperator *op) |
| static int | shear_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | shear_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | 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 int | scale_from_neighbor_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | scale_from_neighbor_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | 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 54 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 426 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 98 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 1134 of file graph_slider_ops.cc.
References common_draw_status_header().
Referenced by blend_offset_invoke(), and blend_offset_modal_update().
|
static |
Definition at line 1170 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), blend_offset_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_blend_offset().
|
static |
Definition at line 1129 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 1152 of file graph_slider_ops.cc.
References blend_offset_draw_status_header(), blend_offset_modal_update(), 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 1139 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, blend_offset_draw_status_header(), blend_offset_graph_keys(), 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 881 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), blend_to_default_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_blend_to_default().
|
static |
Definition at line 826 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 864 of file graph_slider_ops.cc.
References blend_to_default_modal_update(), 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 850 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, blend_to_default_graph_keys(), 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 1227 of file graph_slider_ops.cc.
References common_draw_status_header().
Referenced by blend_to_ease_invoke(), and blend_to_ease_modal_update().
|
static |
Definition at line 1264 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), blend_to_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_blend_to_ease().
|
static |
Definition at line 1222 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 1245 of file graph_slider_ops.cc.
References blend_to_ease_draw_status_header(), blend_to_ease_modal_update(), 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 1232 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, blend_to_ease_draw_status_header(), blend_to_ease_graph_keys(), 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 688 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), blend_to_neighbor_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_blend_to_neighbor().
|
static |
Definition at line 650 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 670 of file graph_slider_ops.cc.
References blend_to_neighbor_modal_update(), 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 655 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, blend_to_neighbor_graph_keys(), 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 775 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), breakdown_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_breakdown().
|
static |
Definition at line 739 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 757 of file graph_slider_ops.cc.
References breakdown_modal_update(), 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 744 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, breakdown_graph_keys(), 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 2042 of file graph_slider_ops.cc.
References int, and BezTriple::vec.
Referenced by btw_smooth_allocate_operator_data(), and btw_smooth_graph_keys().
|
static |
Definition at line 2056 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_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 2231 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), blend, btw_smooth_graph_keys(), 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 2099 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_callocN, 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 2155 of file graph_slider_ops.cc.
References btw_smooth_allocate_operator_data(), btw_smooth_free_operator_data(), btw_smooth_modal_update(), common_draw_status_header(), wmOperator::customdata, ED_slider_allow_overshoot_set(), ED_slider_factor_bounds_set(), ED_slider_factor_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 2112 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), ANIM_animdata_update(), tBtwOperatorData::anim_data, ANIM_UPDATE_DEFAULT, butterworth_smooth_fcurve_segment(), 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 124 of file graph_slider_ops.cc.
References ED_slider_status_string_get(), ED_workspace_status_text(), hasNumInput(), IFACE_, tGraphSliderOp::num, NUM_STR_REP_LEN, outputNumInput(), tGraphSliderOp::scene, tGraphSliderOp::slider, SNPRINTF, STRNCPY, UI_MAX_DRAW_STR, 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 454 of file graph_slider_ops.cc.
References ED_slider_status_string_get(), ED_workspace_status_text(), hasNumInput(), IFACE_, tGraphSliderOp::num, NUM_STR_REP_LEN, outputNumInput(), tGraphSliderOp::scene, tGraphSliderOp::slider, SNPRINTF, STRNCPY, UI_MAX_DRAW_STR, and Scene::unit.
Referenced by decimate_modal_update().
|
static |
Definition at line 513 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), 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 568 of file graph_slider_ops.cc.
References DECIM_ERROR, ptr, RNA_enum_get(), and TIP_.
Referenced by GRAPH_OT_decimate().
|
static |
Definition at line 431 of file graph_slider_ops.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEFAULT, bAnimContext::data, bAnimContext::datatype, decimate_fcurve(), LISTBASE_FOREACH, OPERATOR_DATA_FILTER, RPT_WARNING, and WM_report().
Referenced by decimate_exec(), and decimate_modal_update().
|
static |
Definition at line 497 of file graph_slider_ops.cc.
References 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 478 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, 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 553 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 953 of file graph_slider_ops.cc.
References wmOperator::customdata, ED_slider_status_string_get(), ED_workspace_status_text(), tGraphSliderOp::factor_prop, hasNumInput(), IFACE_, tGraphSliderOp::num, NUM_STR_REP_LEN, outputNumInput(), RNA_property_identifier(), tGraphSliderOp::scene, tGraphSliderOp::slider, SNPRINTF, STREQ, STRNCPY, UI_MAX_DRAW_STR, and Scene::unit.
Referenced by ease_invoke(), and ease_modal_update().
|
static |
Definition at line 1068 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), 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 931 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 1048 of file graph_slider_ops.cc.
References 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 1010 of file graph_slider_ops.cc.
References 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_property_label_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_property_ui_name(), 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 987 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, 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, FCurve::bezt, BLI_addtail(), bAnimContext::data, bAnimContext::datatype, ED_ANIM_get_1d_gauss_kernel(), tFCurveSegmentLink::fcu, find_fcurve_segments(), int, tGaussOperatorData::kernel, LISTBASE_FOREACH, MEM_callocN, tGraphSliderOp::operator_data, OPERATOR_DATA_FILTER, blender::animrig::sample_fcurve_segment(), tFCurveSegmentLink::samples, tFCurveSegmentLink::segment, tGaussOperatorData::segment_links, and BezTriple::vec.
Referenced by gaussian_smooth_invoke().
|
static |
Definition at line 1960 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), ED_ANIM_get_1d_gauss_kernel(), gaussian_smooth_graph_keys(), MEM_callocN, 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 1855 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 1926 of file graph_slider_ops.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEFAULT, FCurve::bezt, BLI_freelistN(), bAnimContext::data, bAnimContext::datatype, find_fcurve_segments(), int, LISTBASE_FOREACH, MEM_callocN, 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 1901 of file graph_slider_ops.cc.
References 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 1868 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), ANIM_animdata_update(), tGaussOperatorData::anim_data, ANIM_UPDATE_DEFAULT, 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 1189 of file graph_slider_ops.cc.
References blend_offset_exec(), blend_offset_invoke(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_factor(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_blend_to_default | ( | wmOperatorType * | ot | ) |
Definition at line 899 of file graph_slider_ops.cc.
References blend_to_default_exec(), blend_to_default_invoke(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_factor(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_blend_to_ease | ( | wmOperatorType * | ot | ) |
Definition at line 1283 of file graph_slider_ops.cc.
References blend_to_ease_exec(), blend_to_ease_invoke(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_factor(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_blend_to_neighbor | ( | wmOperatorType * | ot | ) |
Definition at line 706 of file graph_slider_ops.cc.
References blend_to_neighbor_exec(), blend_to_neighbor_invoke(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_factor(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_breakdown | ( | wmOperatorType * | ot | ) |
Definition at line 793 of file graph_slider_ops.cc.
References breakdown_exec(), breakdown_invoke(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_factor(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_butterworth_smooth | ( | wmOperatorType * | ot | ) |
Definition at line 2252 of file graph_slider_ops.cc.
References btw_smooth_exec(), btw_smooth_invoke(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), RNA_def_float_factor(), RNA_def_int(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_decimate | ( | wmOperatorType * | ot | ) |
Definition at line 597 of file graph_slider_ops.cc.
References DECIM_RATIO, decimate_exec(), decimate_get_description(), decimate_invoke(), decimate_mode_items, decimate_poll_property(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::get_description, graph_slider_modal(), graphop_editable_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::poll_property, RNA_def_enum(), RNA_def_float(), RNA_def_float_factor(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_ease | ( | wmOperatorType * | ot | ) |
Definition at line 1086 of file graph_slider_ops.cc.
References wmOperatorType::description, ease_exec(), ease_invoke(), ease_modal(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, graphop_editable_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), RNA_def_float_factor(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_gaussian_smooth | ( | wmOperatorType * | ot | ) |
Definition at line 1984 of file graph_slider_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, gaussian_smooth_exec(), gaussian_smooth_invoke(), graph_slider_modal(), graphop_editable_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), RNA_def_float_factor(), RNA_def_int(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_match_slope | ( | wmOperatorType * | ot | ) |
Definition at line 1405 of file graph_slider_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, match_slope_exec(), match_slope_invoke(), wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_factor(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_push_pull | ( | wmOperatorType * | ot | ) |
Definition at line 2379 of file graph_slider_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, push_pull_exec(), push_pull_invoke(), RNA_def_float_factor(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_scale_average | ( | wmOperatorType * | ot | ) |
Definition at line 1762 of file graph_slider_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_factor(), scale_average_exec(), scale_average_invoke(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_scale_from_neighbor | ( | wmOperatorType * | ot | ) |
Definition at line 2559 of file graph_slider_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, graphop_editable_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, LEFT, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), RNA_def_float_factor(), scale_anchor_items, scale_from_neighbor_exec(), scale_from_neighbor_invoke(), scale_from_neighbor_modal(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_shear | ( | wmOperatorType * | ot | ) |
Definition at line 1667 of file graph_slider_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, graphop_editable_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), RNA_def_float_factor(), shear_direction_items, shear_exec(), SHEAR_FROM_LEFT, shear_invoke(), shear_modal(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_time_offset | ( | wmOperatorType * | ot | ) |
Definition at line 1498 of file graph_slider_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, graph_slider_modal(), graphop_editable_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_factor(), wmOperatorType::srna, time_offset_exec(), and time_offset_invoke().
Referenced by graphedit_operatortypes().
|
static |
Definition at line 252 of file graph_slider_ops.cc.
References tGraphSliderOp::area, tGraphSliderOp::bezt_arr_list, BLI_freelistN(), 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, 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, RPT_ERROR, tGraphSliderOp::scene, tGraphSliderOp::slider, store_original_bezt_arrays(), WM_CURSOR_EW_SCROLL, WM_cursor_modal_set(), WM_event_add_modal_handler(), and WM_report().
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 304 of file graph_slider_ops.cc.
References applyNumInput(), wmOperator::customdata, ED_slider_factor_set(), ED_slider_modal(), ED_slider_mode_get(), EVT_ESCKEY, EVT_PADENTER, EVT_RETKEY, EVT_TABKEY, tGraphSliderOp::factor_prop, graph_slider_exit(), handleNumInput(), hasNumInput(), KM_PRESS, 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(), tGraphSliderOp::slider, SLIDER_MODE_PERCENT, wmEvent::type, update_depsgraph(), wmEvent::val, and WM_event_add_notifier().
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 1349 of file graph_slider_ops.cc.
References common_draw_status_header().
Referenced by match_slope_invoke(), and match_slope_modal_update().
|
static |
Definition at line 1386 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), match_slope_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_match_slope().
|
static |
Definition at line 1316 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, match_slope_fcurve_segment(), OPERATOR_DATA_FILTER, RPT_WARNING, and WM_report().
Referenced by match_slope_exec(), and match_slope_modal_update().
|
static |
Definition at line 1367 of file graph_slider_ops.cc.
References 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 1354 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, 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 2360 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), 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 2324 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 2342 of file graph_slider_ops.cc.
References 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 2329 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, 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 192 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, ANIM_animdata_filter(), ANIM_animdata_freelist(), FCurve::bezt, tGraphSliderOp::bezt_arr_list, bAnimContext::data, LinkData::data, bAnimContext::datatype, ListBase::first, bAnimListElem::key_data, MEM_freeN(), MEM_mallocN, bAnimListElem::next, LinkData::next, OPERATOR_DATA_FILTER, tBeztCopyData::tot_vert, 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 1743 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), 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 1707 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 1725 of file graph_slider_ops.cc.
References 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 1712 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, 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 2441 of file graph_slider_ops.cc.
References wmOperator::customdata, ED_slider_status_string_get(), ED_workspace_status_text(), hasNumInput(), IFACE_, LEFT, tGraphSliderOp::num, NUM_STR_REP_LEN, outputNumInput(), wmOperator::ptr, RIGHT, RNA_enum_get(), tGraphSliderOp::scene, tGraphSliderOp::slider, SNPRINTF, STRNCPY, UI_MAX_DRAW_STR, and Scene::unit.
Referenced by scale_from_neighbor_invoke(), and scale_from_neighbor_modal_update().
|
static |
Definition at line 2539 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), 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 2417 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 2521 of file graph_slider_ops.cc.
References 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 2493 of file graph_slider_ops.cc.
References 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 2479 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, 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 1567 of file graph_slider_ops.cc.
References ED_slider_status_string_get(), ED_workspace_status_text(), hasNumInput(), IFACE_, tGraphSliderOp::num, NUM_STR_REP_LEN, outputNumInput(), tGraphSliderOp::scene, tGraphSliderOp::slider, SNPRINTF, STRNCPY, UI_MAX_DRAW_STR, and Scene::unit.
Referenced by shear_invoke(), and shear_modal_update().
|
static |
Definition at line 1647 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), 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 1545 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 1629 of file graph_slider_ops.cc.
References 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(), shear_draw_status_header(), shear_modal_update(), and tGraphSliderOp::slider.
Referenced by GRAPH_OT_shear().
|
static |
Definition at line 1606 of file graph_slider_ops.cc.
References 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 1591 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, 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 238 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 152 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_mallocN, OPERATOR_DATA_FILTER, and FCurve::totvert.
Referenced by graph_slider_invoke().
|
static |
Definition at line 1441 of file graph_slider_ops.cc.
References common_draw_status_header().
Referenced by time_offset_invoke(), and time_offset_modal_update().
|
static |
Definition at line 1479 of file graph_slider_ops.cc.
References ANIM_animdata_get_context(), 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 1436 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 1459 of file graph_slider_ops.cc.
References wmOperator::customdata, ED_slider_factor_bounds_set(), ED_slider_factor_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 1446 of file graph_slider_ops.cc.
References tGraphSliderOp::ac, 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 290 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 582 of file graph_slider_ops.cc.
Referenced by GRAPH_OT_decimate().
|
static |
Definition at line 2411 of file graph_slider_ops.cc.
Referenced by GRAPH_OT_scale_from_neighbor().
|
static |
Definition at line 1531 of file graph_slider_ops.cc.
Referenced by GRAPH_OT_shear().