|
Blender V4.3
|
#include <cfloat>#include <cmath>#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_function_ref.hh"#include "BLI_lasso_2d.hh"#include "BLI_math_vector.h"#include "BLI_utildefines.h"#include "DNA_anim_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "BKE_fcurve.hh"#include "BKE_nla.hh"#include "ED_anim_api.hh"#include "ED_keyframes_edit.hh"#include "ED_markers.hh"#include "ANIM_action.hh"Go to the source code of this file.
Macros | |
| #define | ENSURE_HANDLES_MATCH(bezt) |
| #define ENSURE_HANDLES_MATCH | ( | bezt | ) |
Standard validation step for a few of these (implemented as macro for inlining without fn-call overhead): "if the handles are not of the same type, set them to type free".
Definition at line 1088 of file keyframes_edit.cc.
Referenced by set_bezier_auto(), and set_bezier_auto_clamped().
|
static |
Definition at line 209 of file keyframes_edit.cc.
References ANIM_fcurve_keyframes_loop(), bAction::curves, and LISTBASE_FOREACH.
Referenced by ANIM_animchannel_keyframes_loop(), and ANIM_animchanneldata_keyframes_loop().
|
static |
Definition at line 146 of file keyframes_edit.cc.
References ANIM_fcurve_keyframes_loop(), bActionGroup::channel_bag, bActionGroup::channels, bActionGroup::fcurve_range_length, bActionGroup::fcurve_range_start, blender::animrig::ChannelBag::fcurves(), and LISTBASE_FOREACH.
Referenced by ANIM_animchannel_keyframes_loop(), and ANIM_animchanneldata_keyframes_loop().
| short ANIM_animchannel_keyframes_loop | ( | KeyframeEditData * | ked, |
| bDopeSheet * | ads, | ||
| bAnimListElem * | ale, | ||
| KeyframeEditFunc | key_ok, | ||
| KeyframeEditFunc | key_cb, | ||
| FcuEditFunc | fcu_cb ) |
Function for working with any type (i.e. one of the known types) of animation channel.
Definition at line 408 of file keyframes_edit.cc.
References action_legacy_keyframes_loop(), bAnimListElem::adt, agrp_keyframes_loop(), ALE_ACT, ALE_ACTION_LAYERED, ALE_ACTION_SLOT, ALE_ALL, ALE_FCURVE, ALE_GPFRAME, ALE_GREASE_PENCIL_CEL, ALE_GREASE_PENCIL_DATA, ALE_GREASE_PENCIL_GROUP, ALE_GROUP, ALE_MASKLAY, ALE_NLASTRIP, ALE_NONE, ALE_OB, ALE_SCE, ANIM_fcurve_keyframes_loop(), BLI_assert, bAnimListElem::data, bAnimListElem::datatype, bAnimListElem::key_data, ob_keyframes_loop(), scene_keyframes_loop(), blender::animrig::Action::slot_for_handle(), AnimData::slot_handle, summary_keyframes_loop(), and wrap().
Referenced by actkeys_mselect_channel_only(), actkeys_mselect_single(), box_select_elem(), and region_select_elem().
| short ANIM_animchanneldata_keyframes_loop | ( | KeyframeEditData * | ked, |
| bDopeSheet * | ads, | ||
| void * | data, | ||
| int | keytype, | ||
| KeyframeEditFunc | key_ok, | ||
| KeyframeEditFunc | key_cb, | ||
| FcuEditFunc | fcu_cb ) |
Same as ANIM_animchannel_keyframes_loop, except bAnimListElem wrapper is not needed.
| keytype | is eAnim_KeyType. |
Definition at line 477 of file keyframes_edit.cc.
References action_legacy_keyframes_loop(), agrp_keyframes_loop(), ALE_ACT, ALE_ACTION_LAYERED, ALE_ACTION_SLOT, ALE_ALL, ALE_FCURVE, ALE_GROUP, ALE_OB, ALE_SCE, ANIM_fcurve_keyframes_loop(), ob_keyframes_loop(), scene_keyframes_loop(), and summary_keyframes_loop().
Referenced by nlaedit_apply_scale_exec().
| void ANIM_animdata_keyframe_callback | ( | bAnimContext * | ac, |
| eAnimFilter_Flags | filter, | ||
| KeyframeEditFunc | callback_fn ) |
Calls callback_fn() for each keyframe in each fcurve in the filtered animation context. Assumes the callback updates keys.
Definition at line 519 of file keyframes_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_fcurve_keyframes_loop(), ANIM_UPDATE_DEFAULT, BKE_fcurve_handles_recalc(), bAnimContext::data, bAnimContext::datatype, and LISTBASE_FOREACH.
Referenced by actkeys_easing_exec(), and actkeys_ipo_exec().
| KeyframeEditFunc ANIM_editkeyframes_buildselmap | ( | short | mode | ) |
Get a callback to populate the selection settings map requires: ked->custom = char[] of length fcurve->totvert.
Definition at line 1749 of file keyframes_edit.cc.
References selmap_build_bezier_less(), selmap_build_bezier_more(), SELMAP_LESS, and SELMAP_MORE.
Referenced by select_moreless_action_keys(), and select_moreless_graph_keys().
| KeyframeEditFunc ANIM_editkeyframes_easing | ( | short | mode | ) |
Definition at line 1559 of file keyframes_edit.cc.
References BEZT_IPO_EASE_IN, BEZT_IPO_EASE_IN_OUT, BEZT_IPO_EASE_OUT, set_easingtype_easeauto(), set_easingtype_easein(), set_easingtype_easeinout(), and set_easingtype_easeout().
Referenced by actkeys_easing_exec(), and seteasing_graph_keys().
| KeyframeEditFunc ANIM_editkeyframes_handles | ( | short | mode | ) |
Set all selected Bezier Handles to a single type.
Definition at line 1217 of file keyframes_edit.cc.
References bezier_isfree(), HD_ALIGN, HD_AUTO, HD_AUTO_ANIM, HD_FREE, HD_VECT, set_bezier_align(), set_bezier_auto(), set_bezier_auto_clamped(), set_bezier_free(), and set_bezier_vector().
Referenced by sethandles_action_keys(), and sethandles_graph_keys().
| KeyframeEditFunc ANIM_editkeyframes_ipo | ( | short | mode | ) |
Set the interpolation type of the selected BezTriples in each F-Curve to the specified one.
Definition at line 1413 of file keyframes_edit.cc.
References BEZT_IPO_BACK, BEZT_IPO_BOUNCE, BEZT_IPO_CIRC, BEZT_IPO_CONST, BEZT_IPO_CUBIC, BEZT_IPO_ELASTIC, BEZT_IPO_EXPO, BEZT_IPO_LIN, BEZT_IPO_QUAD, BEZT_IPO_QUART, BEZT_IPO_QUINT, BEZT_IPO_SINE, set_bezt_back(), set_bezt_bezier(), set_bezt_bounce(), set_bezt_circle(), set_bezt_constant(), set_bezt_cubic(), set_bezt_elastic(), set_bezt_expo(), set_bezt_linear(), set_bezt_quad(), set_bezt_quart(), set_bezt_quint(), and set_bezt_sine().
Referenced by actkeys_ipo_exec(), and setipo_graph_keys().
| KeyframeEditFunc ANIM_editkeyframes_keytype | ( | const eBezTriple_KeyframeType | keyframe_type | ) |
Definition at line 1499 of file keyframes_edit.cc.
References BEZT_KEYTYPE_BREAKDOWN, BEZT_KEYTYPE_EXTREME, BEZT_KEYTYPE_GENERATED, BEZT_KEYTYPE_JITTER, BEZT_KEYTYPE_KEYFRAME, BEZT_KEYTYPE_MOVEHOLD, BLI_assert_unreachable, set_keytype_breakdown(), set_keytype_extreme(), set_keytype_generated(), set_keytype_jitter(), set_keytype_keyframe(), and set_keytype_moving_hold().
Referenced by setkeytype_action_keys().
| KeyframeEditFunc ANIM_editkeyframes_mirror | ( | short | mode | ) |
Definition at line 1060 of file keyframes_edit.cc.
References mirror_bezier_cframe(), mirror_bezier_marker(), mirror_bezier_time(), mirror_bezier_value(), mirror_bezier_xaxis(), mirror_bezier_yaxis(), MIRROR_KEYS_CURFRAME, MIRROR_KEYS_MARKER, MIRROR_KEYS_TIME, MIRROR_KEYS_VALUE, MIRROR_KEYS_XAXIS, and MIRROR_KEYS_YAXIS.
Referenced by mirror_action_keys(), and mirror_graph_keys().
| KeyframeEditFunc ANIM_editkeyframes_ok | ( | short | mode | ) |
Definition at line 789 of file keyframes_edit.cc.
References BEZT_OK_CHANNEL_CIRCLE, BEZT_OK_CHANNEL_LASSO, BEZT_OK_FRAME, BEZT_OK_FRAMERANGE, BEZT_OK_REGION, BEZT_OK_REGION_CIRCLE, BEZT_OK_REGION_LASSO, BEZT_OK_SELECTED, BEZT_OK_VALUE, BEZT_OK_VALUERANGE, ok_bezier_channel_circle(), ok_bezier_channel_lasso(), ok_bezier_frame(), ok_bezier_framerange(), ok_bezier_region(), ok_bezier_region_circle(), ok_bezier_region_lasso(), ok_bezier_selected(), ok_bezier_value(), and ok_bezier_valuerange().
Referenced by actkeys_mselect_column(), actkeys_mselect_single(), actkeys_select_leftright(), actkeys_select_linked_exec(), box_select_action(), box_select_graphkeys(), columnselect_action_keys(), columnselect_graph_keys(), copy_animedit_keys(), deselect_action_keys(), deselect_graph_keys(), graphkeys_mselect_column(), graphkeys_select_leftright(), graphkeys_select_linked_exec(), markers_selectkeys_between(), markers_selectkeys_between(), region_select_action_keys(), sethandles_action_keys(), and sethandles_graph_keys().
| void ANIM_editkeyframes_refresh | ( | bAnimContext * | ac | ) |
Functions for making sure all keyframes are in good order.
Definition at line 544 of file keyframes_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIM_UPDATE_HANDLES, ANIM_UPDATE_ORDER, ANIMFILTER_DATA_VISIBLE, bAnimContext::data, bAnimContext::datatype, filter(), and LISTBASE_FOREACH.
Referenced by special_aftertrans_update__actedit(), and special_aftertrans_update__graph().
| KeyframeEditFunc ANIM_editkeyframes_select | ( | const eEditKeyframes_Select | selectmode | ) |
Definition at line 1646 of file keyframes_edit.cc.
References SELECT_ADD, select_bezier_add(), select_bezier_invert(), select_bezier_subtract(), SELECT_INVERT, and SELECT_SUBTRACT.
Referenced by actkeys_mselect_channel_only(), actkeys_mselect_column(), actkeys_mselect_single(), actkeys_select_leftright(), actkeys_select_linked_exec(), box_select_action(), box_select_graphcurves(), box_select_graphkeys(), columnselect_action_keys(), columnselect_graph_keys(), deselect_action_keys(), deselect_graph_keys(), graphkeys_mselect_column(), graphkeys_select_leftright(), graphkeys_select_linked_exec(), markers_selectkeys_between(), markers_selectkeys_between(), mouse_graph_keys(), and region_select_action_keys().
| KeyframeEditFunc ANIM_editkeyframes_snap | ( | short | mode | ) |
Definition at line 954 of file keyframes_edit.cc.
References snap_bezier_cframe(), snap_bezier_horizontal(), snap_bezier_nearest(), snap_bezier_nearestsec(), snap_bezier_nearmarker(), snap_bezier_time(), snap_bezier_value(), SNAP_KEYS_CURFRAME, SNAP_KEYS_HORIZONTAL, SNAP_KEYS_NEARFRAME, SNAP_KEYS_NEARMARKER, SNAP_KEYS_NEARSEC, SNAP_KEYS_TIME, and SNAP_KEYS_VALUE.
Referenced by snap_action_keys(), and snap_graph_keys().
| void ANIM_fcurve_equalize_keyframes_loop | ( | FCurve * | fcu, |
| eEditKeyframes_Equalize | mode, | ||
| float | handle_length, | ||
| bool | flatten ) |
Sets selected keyframes' bezier handles to an equal length and optionally makes the keyframes' handles horizontal.
| handle_length | Desired handle length, must be positive. |
| flatten | Makes the keyframes' handles the same value as the keyframe, flattening the curve at that point. |
Definition at line 1360 of file keyframes_edit.cc.
References FCurve::bezt, ELEM, EQUALIZE_HANDLES_LEFT, EQUALIZE_HANDLES_RIGHT, BezTriple::f2, BezTriple::h1, BezTriple::h2, handle_flatten(), handle_set_length(), HD_ALIGN, HD_AUTO, HD_AUTO_ANIM, HD_VECT, SELECT, FCurve::totvert, and BezTriple::vec.
Referenced by equalize_graph_keys().
| short ANIM_fcurve_keyframes_loop | ( | KeyframeEditData * | ked, |
| FCurve * | fcu, | ||
| KeyframeEditFunc | key_ok, | ||
| KeyframeEditFunc | key_cb, | ||
| FcuEditFunc | fcu_cb ) |
This function is used to loop over BezTriples in the given F-Curve, applying a given operation on them, and optionally applies an F-Curve validation function afterwards.
function for working with F-Curve data only (i.e. when filters have been chosen to explicitly use this).
Definition at line 61 of file keyframes_edit.cc.
References FCurve::bezt, KeyframeEditData::curflags, KeyframeEditData::curIndex, ELEM, KeyframeEditData::fcu, KEYFRAME_NONE, and FCurve::totvert.
Referenced by action_legacy_keyframes_loop(), actkeys_framejump_exec(), actkeys_mselect_column(), actkeys_select_leftright(), actkeys_select_linked_exec(), agrp_keyframes_loop(), ANIM_animchannel_keyframes_loop(), ANIM_animchanneldata_keyframes_loop(), ANIM_animdata_keyframe_callback(), ANIM_nla_mapping_apply_fcurve(), box_select_graphcurves(), box_select_graphkeys(), columnselect_action_keys(), columnselect_graph_keys(), copy_animedit_keys(), deselect_action_keys(), deselect_graph_keys(), graphkeys_mselect_column(), graphkeys_select_leftright(), graphkeys_select_linked_exec(), markers_selectkeys_between(), markers_selectkeys_between(), mirror_action_keys(), mirror_graph_keys(), mouse_graph_keys(), ob_keyframes_loop(), scene_keyframes_loop(), select_moreless_action_keys(), select_moreless_graph_keys(), seteasing_graph_keys(), sethandles_action_keys(), sethandles_graph_keys(), setipo_graph_keys(), setkeytype_action_keys(), snap_action_keys(), snap_graph_keys(), sum_selected_keyframes(), and summary_keyframes_loop().
|
static |
Queries if the handle should be set to 'free' or 'align'.
Definition at line 1168 of file keyframes_edit.cc.
References BezTriple::f1, BezTriple::f3, BezTriple::h1, BezTriple::h2, and SELECT.
Referenced by ANIM_editkeyframes_handles().
| short bezt_calc_average | ( | KeyframeEditData * | ked, |
| BezTriple * | bezt ) |
Used to calculate the average location of all relevant BezTriples by summing their locations.
Definition at line 831 of file keyframes_edit.cc.
References KeyframeEditData::f1, BezTriple::f2, KeyframeEditData::f2, KeyframeEditData::i1, SELECT, and BezTriple::vec.
Referenced by actkeys_framejump_exec(), and sum_selected_keyframes().
| void bezt_remap_times | ( | KeyframeEditData * | ked, |
| BezTriple * | bezt ) |
Used to remap times from one range to another. requires: ked->custom = KeyframeEditCD_Remap.
Definition at line 863 of file keyframes_edit.cc.
References KeyframeEditData::data, KeyframeEditCD_Remap::newMax, KeyframeEditCD_Remap::newMin, KeyframeEditCD_Remap::oldMax, KeyframeEditCD_Remap::oldMin, and BezTriple::vec.
| short bezt_selmap_flush | ( | KeyframeEditData * | ked, |
| BezTriple * | bezt ) |
Change the selection status of the keyframe based on the map entry for this vert requires: ked->custom = char[] of length fcurve->totvert.
Definition at line 1763 of file keyframes_edit.cc.
References BEZT_DESEL_ALL, BEZT_SEL_ALL, KeyframeEditData::curIndex, and KeyframeEditData::data.
Referenced by select_moreless_action_keys(), and select_moreless_graph_keys().
| short bezt_to_cfraelem | ( | KeyframeEditData * | ked, |
| BezTriple * | bezt ) |
Used to extract a set of cfra-elems from the keyframes.
Definition at line 850 of file keyframes_edit.cc.
References BLI_addtail(), CfraElem::cfra, BezTriple::f2, KeyframeEditData::list, MEM_callocN, SELECT, and BezTriple::vec.
Referenced by columnselect_action_keys(), and columnselect_graph_keys().
Definition at line 1343 of file keyframes_edit.cc.
References add_v2_v2v2(), and BLI_assert_msg.
Referenced by ANIM_fcurve_equalize_keyframes_loop().
Definition at line 1350 of file keyframes_edit.cc.
References add_v2_v2v2(), BLI_assert_msg, normalize_v2_length(), and sub_v2_v2v2().
Referenced by ANIM_fcurve_equalize_keyframes_loop().
|
static |
Definition at line 570 of file keyframes_edit.cc.
References BEZT_ISSEL_ANY, KeyframeEditData::iterflags, KEYFRAME_ITER_HANDLES_DEFAULT_INVISIBLE, KEYFRAME_ITER_INCL_HANDLES, KEYFRAME_OK_H1, KEYFRAME_OK_H2, and KEYFRAME_OK_KEY.
Referenced by ok_bezier_frame(), ok_bezier_framerange(), ok_bezier_region(), ok_bezier_region_circle(), ok_bezier_region_lasso(), ok_bezier_value(), and ok_bezier_valuerange().
| bool keyframe_region_circle_test | ( | const KeyframeEdit_CircleData * | data_circle, |
| const float | xy[2] ) |
Definition at line 730 of file keyframes_edit.cc.
References BLI_rctf_isect_pt_v(), BLI_rctf_transform_pt_v(), len_squared_v2(), KeyframeEdit_CircleData::mval, KeyframeEdit_CircleData::radius_squared, KeyframeEdit_CircleData::rectf_scaled, KeyframeEdit_CircleData::rectf_view, and xy.
Referenced by ED_gpencil_layer_frames_select_region(), ED_masklayer_frames_select_region(), ok_bezier_channel_circle(), ok_bezier_region_circle(), and blender::ed::greasepencil::select_frames_region().
| bool keyframe_region_lasso_test | ( | const KeyframeEdit_LassoData * | data_lasso, |
| const float | xy[2] ) |
Definition at line 671 of file keyframes_edit.cc.
References BLI_lasso_is_point_inside(), BLI_rctf_isect_pt_v(), BLI_rctf_transform_pt_v(), KeyframeEdit_LassoData::mcoords, KeyframeEdit_LassoData::rectf_scaled, KeyframeEdit_LassoData::rectf_view, and xy.
Referenced by ED_gpencil_layer_frames_select_region(), ED_masklayer_frames_select_region(), ok_bezier_channel_lasso(), ok_bezier_region_lasso(), and blender::ed::greasepencil::select_frames_region().
|
static |
Definition at line 999 of file keyframes_edit.cc.
References BezTriple::f2, mirror_bezier_xaxis_ex(), KeyframeEditData::scene, and SELECT.
Referenced by ANIM_editkeyframes_mirror().
|
static |
Definition at line 1030 of file keyframes_edit.cc.
References KeyframeEditData::f1, BezTriple::f2, mirror_bezier_xaxis_ex(), and SELECT.
Referenced by ANIM_editkeyframes_mirror().
|
static |
Definition at line 1040 of file keyframes_edit.cc.
References KeyframeEditData::f1, BezTriple::f2, mirror_bezier_xaxis_ex(), and SELECT.
Referenced by ANIM_editkeyframes_mirror().
|
static |
Definition at line 1050 of file keyframes_edit.cc.
References KeyframeEditData::f1, BezTriple::f2, mirror_bezier_yaxis_ex(), and SELECT.
Referenced by ANIM_editkeyframes_mirror().
|
static |
Definition at line 1020 of file keyframes_edit.cc.
References BezTriple::f2, mirror_bezier_yaxis_ex(), and SELECT.
Referenced by ANIM_editkeyframes_mirror().
Definition at line 979 of file keyframes_edit.cc.
References diff(), BezTriple::f1, BezTriple::f3, BezTriple::h1, BezTriple::h2, swap_v3_v3(), and BezTriple::vec.
Referenced by mirror_bezier_cframe(), mirror_bezier_marker(), mirror_bezier_time(), and mirror_bezier_yaxis().
|
static |
Definition at line 1010 of file keyframes_edit.cc.
References BezTriple::f2, mirror_bezier_xaxis_ex(), and SELECT.
Referenced by ANIM_editkeyframes_mirror().
Definition at line 991 of file keyframes_edit.cc.
References diff(), and BezTriple::vec.
Referenced by mirror_bezier_value(), and mirror_bezier_xaxis().
|
static |
Definition at line 231 of file keyframes_edit.cc.
References bAnimContext::ads, bAnimListElem::adt, Object::adt, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_fcurve_keyframes_loop(), ANIMCONT_CHANNEL, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMTYPE_OBJECT, bAnimContext::data, bAnimListElem::data, KeyframeEditData::data, bAnimContext::datatype, filter(), bAnimListElem::id, Object::id, LISTBASE_FOREACH, Base::object, ret, and bAnimListElem::type.
Referenced by ANIM_animchannel_keyframes_loop(), and ANIM_animchanneldata_keyframes_loop().
|
static |
Definition at line 761 of file keyframes_edit.cc.
References KeyframeEditData::channel_y, KeyframeEditData::data, KeyframeEditData::f1, KeyframeEditData::f2, KeyframeEditData::iterflags, KED_F1_NLA_UNMAP, KED_F2_NLA_UNMAP, KEYFRAME_OK_KEY, keyframe_region_circle_test(), KeyframeEdit_CircleData::rectf_scaled, BezTriple::vec, and rctf::xmin.
Referenced by ANIM_editkeyframes_ok().
|
static |
Definition at line 702 of file keyframes_edit.cc.
References KeyframeEditData::channel_y, KeyframeEditData::data, KeyframeEditData::f1, KeyframeEditData::f2, KeyframeEditData::iterflags, KED_F1_NLA_UNMAP, KED_F2_NLA_UNMAP, KEYFRAME_OK_KEY, keyframe_region_lasso_test(), KeyframeEdit_LassoData::rectf_scaled, BezTriple::vec, and rctf::xmin.
Referenced by ANIM_editkeyframes_ok().
|
static |
Definition at line 598 of file keyframes_edit.cc.
References KeyframeEditData::f1, IS_EQF, keyframe_ok_checks(), and BezTriple::vec.
Referenced by ANIM_editkeyframes_ok().
|
static |
Definition at line 609 of file keyframes_edit.cc.
References KeyframeEditData::f1, KeyframeEditData::f2, keyframe_ok_checks(), and BezTriple::vec.
Referenced by ANIM_editkeyframes_ok().
|
static |
Definition at line 656 of file keyframes_edit.cc.
References BLI_rctf_isect_pt_v(), KeyframeEditData::data, keyframe_ok_checks(), and BezTriple::vec.
Referenced by ANIM_editkeyframes_ok().
|
static |
Definition at line 745 of file keyframes_edit.cc.
References KeyframeEditData::data, keyframe_ok_checks(), keyframe_region_circle_test(), and BezTriple::vec.
Referenced by ANIM_editkeyframes_ok().
|
static |
Definition at line 686 of file keyframes_edit.cc.
References KeyframeEditData::data, keyframe_ok_checks(), keyframe_region_lasso_test(), and BezTriple::vec.
Referenced by ANIM_editkeyframes_ok().
|
static |
Definition at line 619 of file keyframes_edit.cc.
References BEZT_ISSEL_ANY, and KEYFRAME_OK_ALL.
Referenced by ANIM_editkeyframes_ok().
|
static |
Definition at line 630 of file keyframes_edit.cc.
References KeyframeEditData::f1, IS_EQF, keyframe_ok_checks(), and BezTriple::vec.
Referenced by ANIM_editkeyframes_ok().
|
static |
Definition at line 645 of file keyframes_edit.cc.
References KeyframeEditData::f1, KeyframeEditData::f2, keyframe_ok_checks(), and BezTriple::vec.
Referenced by ANIM_editkeyframes_ok().
|
static |
Definition at line 283 of file keyframes_edit.cc.
References bAnimContext::ads, bAnimListElem::adt, Scene::adt, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_fcurve_keyframes_loop(), ANIMCONT_CHANNEL, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMTYPE_SCENE, bAnimContext::data, bAnimListElem::data, KeyframeEditData::data, bAnimContext::datatype, filter(), bAnimListElem::id, Scene::id, LISTBASE_FOREACH, ret, and bAnimListElem::type.
Referenced by ANIM_animchannel_keyframes_loop(), and ANIM_animchanneldata_keyframes_loop().
|
static |
Definition at line 1579 of file keyframes_edit.cc.
References BEZT_ISSEL_ANY, BEZT_SEL_ALL, KeyframeEditData::curflags, BezTriple::f1, BezTriple::f2, BezTriple::f3, KeyframeEditData::iterflags, KEYFRAME_ITER_HANDLES_DEFAULT_INVISIBLE, KEYFRAME_ITER_INCL_HANDLES, KEYFRAME_OK_H1, KEYFRAME_OK_H2, KEYFRAME_OK_KEY, and SELECT.
Referenced by ANIM_editkeyframes_select().
|
static |
Definition at line 1631 of file keyframes_edit.cc.
References BezTriple::f1, BezTriple::f2, BezTriple::f3, and SELECT.
Referenced by ANIM_editkeyframes_select().
|
static |
Definition at line 1605 of file keyframes_edit.cc.
References BEZT_DESEL_ALL, BEZT_ISSEL_ANY, KeyframeEditData::curflags, BezTriple::f1, BezTriple::f2, BezTriple::f3, KeyframeEditData::iterflags, KEYFRAME_ITER_HANDLES_DEFAULT_INVISIBLE, KEYFRAME_ITER_INCL_HANDLES, KEYFRAME_OK_H1, KEYFRAME_OK_H2, and KEYFRAME_OK_KEY.
Referenced by ANIM_editkeyframes_select().
|
static |
Definition at line 1706 of file keyframes_edit.cc.
References BEZT_ISSEL_ANY, KeyframeEditData::curIndex, KeyframeEditData::data, KeyframeEditData::fcu, next, and FCurve::totvert.
Referenced by ANIM_editkeyframes_buildselmap().
|
static |
Definition at line 1671 of file keyframes_edit.cc.
References BEZT_ISSEL_ANY, KeyframeEditData::curIndex, KeyframeEditData::data, KeyframeEditData::fcu, next, and FCurve::totvert.
Referenced by ANIM_editkeyframes_buildselmap().
|
static |
Definition at line 1180 of file keyframes_edit.cc.
References BezTriple::f1, BezTriple::f2, BezTriple::f3, BezTriple::h1, BezTriple::h2, HD_ALIGN, and SELECT.
Referenced by ANIM_editkeyframes_handles().
|
static |
Definition at line 1100 of file keyframes_edit.cc.
References ENSURE_HANDLES_MATCH, BezTriple::f1, BezTriple::f2, BezTriple::f3, BezTriple::h1, BezTriple::h2, HD_AUTO, and SELECT.
Referenced by ANIM_editkeyframes_handles().
|
static |
Definition at line 1123 of file keyframes_edit.cc.
References ENSURE_HANDLES_MATCH, BezTriple::f1, BezTriple::f2, BezTriple::f3, BezTriple::h1, BezTriple::h2, HD_AUTO_ANIM, and SELECT.
Referenced by ANIM_editkeyframes_handles().
|
static |
Definition at line 1199 of file keyframes_edit.cc.
References BezTriple::f1, BezTriple::f2, BezTriple::f3, BezTriple::h1, BezTriple::h2, HD_FREE, and SELECT.
Referenced by ANIM_editkeyframes_handles().
|
static |
Definition at line 1144 of file keyframes_edit.cc.
References BezTriple::f1, BezTriple::f2, BezTriple::f3, BezTriple::h1, BezTriple::h2, HD_VECT, and SELECT.
Referenced by ANIM_editkeyframes_handles().
|
static |
Definition at line 1263 of file keyframes_edit.cc.
References BEZT_IPO_BACK, BezTriple::f2, BezTriple::ipo, and SELECT.
Referenced by ANIM_editkeyframes_ipo().
|
static |
Definition at line 1255 of file keyframes_edit.cc.
References BEZT_IPO_BEZ, BezTriple::f2, BezTriple::ipo, and SELECT.
Referenced by ANIM_editkeyframes_ipo().
|
static |
Definition at line 1271 of file keyframes_edit.cc.
References BEZT_IPO_BOUNCE, BezTriple::f2, BezTriple::ipo, and SELECT.
Referenced by ANIM_editkeyframes_ipo().
|
static |
Definition at line 1279 of file keyframes_edit.cc.
References BEZT_IPO_CIRC, BezTriple::f2, BezTriple::ipo, and SELECT.
Referenced by ANIM_editkeyframes_ipo().
|
static |
Definition at line 1239 of file keyframes_edit.cc.
References BEZT_IPO_CONST, BezTriple::f2, BezTriple::ipo, and SELECT.
Referenced by ANIM_editkeyframes_ipo().
|
static |
Definition at line 1287 of file keyframes_edit.cc.
References BEZT_IPO_CUBIC, BezTriple::f2, BezTriple::ipo, and SELECT.
Referenced by ANIM_editkeyframes_ipo().
|
static |
Definition at line 1295 of file keyframes_edit.cc.
References BEZT_IPO_ELASTIC, BezTriple::f2, BezTriple::ipo, and SELECT.
Referenced by ANIM_editkeyframes_ipo().
|
static |
Definition at line 1303 of file keyframes_edit.cc.
References BEZT_IPO_EXPO, BezTriple::f2, BezTriple::ipo, and SELECT.
Referenced by ANIM_editkeyframes_ipo().
|
static |
Definition at line 1247 of file keyframes_edit.cc.
References BEZT_IPO_LIN, BezTriple::f2, BezTriple::ipo, and SELECT.
Referenced by ANIM_editkeyframes_ipo().
|
static |
Definition at line 1311 of file keyframes_edit.cc.
References BEZT_IPO_QUAD, BezTriple::f2, BezTriple::ipo, and SELECT.
Referenced by ANIM_editkeyframes_ipo().
|
static |
Definition at line 1319 of file keyframes_edit.cc.
References BEZT_IPO_QUART, BezTriple::f2, BezTriple::ipo, and SELECT.
Referenced by ANIM_editkeyframes_ipo().
|
static |
Definition at line 1327 of file keyframes_edit.cc.
References BEZT_IPO_QUINT, BezTriple::f2, BezTriple::ipo, and SELECT.
Referenced by ANIM_editkeyframes_ipo().
|
static |
Definition at line 1335 of file keyframes_edit.cc.
References BEZT_IPO_SINE, BezTriple::f2, BezTriple::ipo, and SELECT.
Referenced by ANIM_editkeyframes_ipo().
|
static |
Definition at line 1551 of file keyframes_edit.cc.
References BEZT_IPO_EASE_AUTO, BezTriple::easing, BezTriple::f2, and SELECT.
Referenced by ANIM_editkeyframes_easing().
|
static |
Definition at line 1527 of file keyframes_edit.cc.
References BEZT_IPO_EASE_IN, BezTriple::easing, BezTriple::f2, and SELECT.
Referenced by ANIM_editkeyframes_easing().
|
static |
Definition at line 1543 of file keyframes_edit.cc.
References BEZT_IPO_EASE_IN_OUT, BezTriple::easing, BezTriple::f2, and SELECT.
Referenced by ANIM_editkeyframes_easing().
|
static |
Definition at line 1535 of file keyframes_edit.cc.
References BEZT_IPO_EASE_OUT, BezTriple::easing, BezTriple::f2, and SELECT.
Referenced by ANIM_editkeyframes_easing().
|
static |
Definition at line 1459 of file keyframes_edit.cc.
References BEZKEYTYPE_LVALUE, BEZT_KEYTYPE_BREAKDOWN, BezTriple::f2, and SELECT.
Referenced by ANIM_editkeyframes_keytype().
|
static |
Definition at line 1467 of file keyframes_edit.cc.
References BEZKEYTYPE_LVALUE, BEZT_KEYTYPE_EXTREME, BezTriple::f2, and SELECT.
Referenced by ANIM_editkeyframes_keytype().
|
static |
Definition at line 1491 of file keyframes_edit.cc.
References BEZKEYTYPE_LVALUE, BEZT_KEYTYPE_GENERATED, BezTriple::f2, and SELECT.
Referenced by ANIM_editkeyframes_keytype().
|
static |
Definition at line 1475 of file keyframes_edit.cc.
References BEZKEYTYPE_LVALUE, BEZT_KEYTYPE_JITTER, BezTriple::f2, and SELECT.
Referenced by ANIM_editkeyframes_keytype().
|
static |
Definition at line 1451 of file keyframes_edit.cc.
References BEZKEYTYPE_LVALUE, BEZT_KEYTYPE_KEYFRAME, BezTriple::f2, and SELECT.
Referenced by ANIM_editkeyframes_keytype().
|
static |
Definition at line 1483 of file keyframes_edit.cc.
References BEZKEYTYPE_LVALUE, BEZT_KEYTYPE_MOVEHOLD, BezTriple::f2, and SELECT.
Referenced by ANIM_editkeyframes_keytype().
|
static |
Definition at line 901 of file keyframes_edit.cc.
References BKE_fcurve_keyframe_move_time_with_handles(), BezTriple::f2, KeyframeEditData::scene, and SELECT.
Referenced by ANIM_editkeyframes_snap().
|
static |
Definition at line 921 of file keyframes_edit.cc.
References ELEM, BezTriple::f2, BezTriple::h1, BezTriple::h2, HD_ALIGN, HD_AUTO, HD_AUTO_ANIM, HD_VECT, SELECT, and BezTriple::vec.
Referenced by ANIM_editkeyframes_snap().
|
static |
Definition at line 880 of file keyframes_edit.cc.
References BKE_fcurve_keyframe_move_time_with_handles(), BezTriple::f2, floorf, SELECT, and BezTriple::vec.
Referenced by ANIM_editkeyframes_snap().
|
static |
Definition at line 889 of file keyframes_edit.cc.
References BKE_fcurve_keyframe_move_time_with_handles(), BezTriple::f2, float, floorf, FPS, KeyframeEditData::scene, SELECT, and BezTriple::vec.
Referenced by ANIM_editkeyframes_snap().
|
static |
Definition at line 911 of file keyframes_edit.cc.
References BKE_fcurve_keyframe_move_time_with_handles(), ED_markers_find_nearest_marker_time(), BezTriple::f2, KeyframeEditData::list, SELECT, and BezTriple::vec.
Referenced by ANIM_editkeyframes_snap().
|
static |
Definition at line 937 of file keyframes_edit.cc.
References BKE_fcurve_keyframe_move_time_with_handles(), KeyframeEditData::f1, BezTriple::f2, and SELECT.
Referenced by ANIM_editkeyframes_snap().
|
static |
Definition at line 946 of file keyframes_edit.cc.
References BKE_fcurve_keyframe_move_value_with_handles(), KeyframeEditData::f1, BezTriple::f2, and SELECT.
Referenced by ANIM_editkeyframes_snap().
|
static |
Definition at line 332 of file keyframes_edit.cc.
References ALE_FCURVE, ALE_GPFRAME, ALE_GREASE_PENCIL_CEL, ALE_MASKLAY, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_fcurve_keyframes_loop(), ANIM_nla_mapping_get(), ANIMFILTER_DATA_VISIBLE, BKE_nla_tweakedit_remap(), bAnimContext::data, bAnimContext::datatype, KeyframeEditData::f1, KeyframeEditData::f2, filter(), KeyframeEditData::iterflags, KED_F1_NLA_UNMAP, KED_F2_NLA_UNMAP, LISTBASE_FOREACH, and NLATIME_CONVERT_UNMAP.
Referenced by ANIM_animchannel_keyframes_loop(), and ANIM_animchanneldata_keyframes_loop().