|
Blender
V2.93
|
#include <float.h>#include <math.h>#include <stdlib.h>#include <string.h>#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_lasso_2d.h"#include "BLI_math.h"#include "BLI_utildefines.h"#include "DNA_anim_types.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "RNA_access.h"#include "RNA_define.h"#include "BKE_context.h"#include "BKE_fcurve.h"#include "BKE_nla.h"#include "UI_view2d.h"#include "ED_anim_api.h"#include "ED_keyframes_edit.h"#include "ED_markers.h"#include "ED_select_utils.h"#include "WM_api.h"#include "WM_types.h"#include "graph_intern.h"Go to the source code of this file.
Classes | |
| struct | tNearestVertInfo |
Macros | |
| #define | GVERTSEL_TOL (10 * U.pixelsize) |
Typedefs | |
| typedef struct tNearestVertInfo | tNearestVertInfo |
| typedef enum eGraphVertIndex | eGraphVertIndex |
Enumerations | |
| enum | eGraphVertIndex { NEAREST_HANDLE_LEFT = -1 , NEAREST_HANDLE_KEY , NEAREST_HANDLE_RIGHT } |
Variables | |
| static const EnumPropertyItem | prop_column_select_types [] |
| static const EnumPropertyItem | prop_graphkeys_leftright_select_types [] |
| #define GVERTSEL_TOL (10 * U.pixelsize) |
Definition at line 89 of file graph_select.c.
| typedef enum eGraphVertIndex eGraphVertIndex |
| typedef struct tNearestVertInfo tNearestVertInfo |
| enum eGraphVertIndex |
| Enumerator | |
|---|---|
| NEAREST_HANDLE_LEFT | |
| NEAREST_HANDLE_KEY | |
| NEAREST_HANDLE_RIGHT | |
Definition at line 81 of file graph_select.c.
|
static |
Definition at line 577 of file graph_select.c.
References ANIM_animdata_freelist(), ANIM_editkeyframes_ok(), ANIM_editkeyframes_select(), ANIM_fcurve_keyframes_loop(), ANIM_nla_mapping_apply_fcurve(), ANIM_nla_mapping_get(), ANIM_unit_mapping_get_factor(), BEZT_OK_VALUERANGE, data, KeyframeEditData::f1, KeyframeEditData::f2, tNearestVertInfo::fcu, FCURVE_SELECTED, FCurve::flag, SpaceGraph::flag, bAnimListElem::id, initialize_box_select_anim_data(), initialize_box_select_coords(), initialize_box_select_key_editing_data(), bAnimListElem::key_data, bAnimListElem::next, NULL, bAnimContext::scene, SELECT_ADD, SIPO_SELCUVERTSONLY, bAnimContext::sl, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by graph_circle_select_exec(), graphkeys_box_select_exec(), and graphkeys_lassoselect_exec().
|
static |
Definition at line 996 of file graph_select.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_editkeyframes_ok(), ANIM_editkeyframes_select(), ANIM_fcurve_keyframes_loop(), ANIM_nla_mapping_get(), ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_NODUPLIS, BEZT_OK_FRAME, bezt_to_cfraelem(), BKE_nla_tweakedit_remap(), BLI_addtail(), BLI_freelistN(), CfraElem::cfra, CFRA, bAnimContext::data, bAnimContext::datatype, ED_markers_make_cfra_list(), KeyframeEditData::f1, filter(), ListBase::first, float(), GRAPHKEYS_COLUMNSEL_CFRA, GRAPHKEYS_COLUMNSEL_KEYS, GRAPHKEYS_COLUMNSEL_MARKERS_COLUMN, bAnimListElem::key_data, KeyframeEditData::list, bAnimContext::markers, MEM_callocN, CfraElem::next, bAnimListElem::next, NLATIME_CONVERT_UNMAP, NULL, scene, bAnimContext::scene, SELECT, and SELECT_ADD.
Referenced by graphkeys_columnselect_exec().
| void deselect_graph_keys | ( | bAnimContext * | ac, |
| bool | test, | ||
| short | sel, | ||
| bool | do_channels | ||
| ) |
Definition at line 354 of file graph_select.c.
References filter(), NULL, and bAnimContext::sl.
Referenced by graph_circle_select_exec(), graphkeys_box_select_exec(), graphkeys_click_insert_exec(), graphkeys_deselectall_exec(), graphkeys_lassoselect_exec(), graphkeys_mselect_column(), graphkeys_select_leftright(), and mouse_graph_keys().
|
static |
Definition at line 95 of file graph_select.c.
References tNearestVertInfo::bezt, BEZT_ISSEL_ANY, SpaceGraph::flag, SIPO_NOHANDLES, and SIPO_SELVHANDLESONLY.
Referenced by get_nearest_fcurve_verts_list().
|
static |
Find the nearest vertices (either a handle or the keyframe) that are nearest to the mouse cursor (in area coordinates)
Definition at line 320 of file graph_select.c.
References BLI_freelistN(), get_best_nearest_fcurve_vert(), get_nearest_fcurve_verts_list(), and NULL.
Referenced by graphkeys_box_select_invoke(), graphkeys_mselect_column(), and mouse_graph_keys().
|
static |
Definition at line 274 of file graph_select.c.
References BLI_listbase_is_empty(), BLI_listbase_is_single(), BLI_pophead(), BLI_remlink(), ListBase::first, tNearestVertInfo::next, NULL, and tNearestVertInfo::sel.
Referenced by find_nearest_fcurve_vert().
|
static |
Definition at line 175 of file graph_select.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_get_normalization_flags(), ANIM_nla_mapping_apply_fcurve(), ANIM_nla_mapping_get(), ANIM_unit_mapping_get_factor(), ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, FCurve::bezt, BEZT_IPO_BEZ, bAnimContext::data, bAnimContext::datatype, tNearestVertInfo::fcu, fcurve_handle_sel_check(), filter(), ListBase::first, SpaceGraph::flag, FCurve::fpt, bAnimListElem::id, BezTriple::ipo, bAnimListElem::key_data, nearest_fcurve_vert_store(), NEAREST_HANDLE_KEY, NEAREST_HANDLE_LEFT, NEAREST_HANDLE_RIGHT, bAnimListElem::next, NULL, bAnimContext::region, bAnimContext::scene, SIPO_SELCUVERTSONLY, bAnimContext::sl, FCurve::totvert, bAnimListElem::type, and ARegion::v2d.
Referenced by find_nearest_fcurve_vert().
|
static |
Definition at line 852 of file graph_select.c.
References ANIM_animdata_get_context(), BEZT_OK_REGION_CIRCLE, box_select_graphkeys(), C, wmOperator::customdata, data, deselect_graph_keys(), ED_select_op_modal(), SpaceGraph::flag, if(), NA_SELECTED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_int_get(), SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, SELECT_ADD, SELECT_SUBTRACT, SIPO_NOHANDLES, SIPO_SELVHANDLESONLY, bAnimContext::sl, WM_event_add_notifier(), WM_gesture_is_modal_first(), x, rctf::xmax, rctf::xmin, y, rctf::ymax, and rctf::ymin.
Referenced by GRAPH_OT_select_circle().
| void GRAPH_OT_clickselect | ( | wmOperatorType * | ot | ) |
Definition at line 1757 of file graph_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, graphkeys_clickselect_exec(), graphop_visible_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, WM_generic_select_invoke(), WM_generic_select_modal(), and WM_operator_properties_generic_select().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 475 of file graph_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, graphkeys_deselectall_exec(), graphop_visible_keyframes_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_select_all().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_select_box | ( | wmOperatorType * | ot | ) |
Definition at line 736 of file graph_select.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, graphkeys_box_select_exec(), graphkeys_box_select_invoke(), graphop_visible_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, WM_gesture_box_cancel(), WM_gesture_box_modal(), WM_operator_properties_gesture_box(), and WM_operator_properties_select_operation_simple().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_select_circle | ( | wmOperatorType * | ot | ) |
Definition at line 905 of file graph_select.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, graph_circle_select_exec(), graphop_visible_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_gesture_circle_cancel(), WM_gesture_circle_invoke(), WM_gesture_circle_modal(), WM_operator_properties_gesture_circle(), and WM_operator_properties_select_operation_simple().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_select_column | ( | wmOperatorType * | ot | ) |
Definition at line 1097 of file graph_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, graphkeys_columnselect_exec(), graphop_visible_keyframes_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_column_select_types, RNA_def_enum(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_select_lasso | ( | wmOperatorType * | ot | ) |
Definition at line 828 of file graph_select.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, graphkeys_lassoselect_exec(), graphop_visible_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_gesture_lasso_cancel(), WM_gesture_lasso_invoke(), WM_gesture_lasso_modal(), WM_operator_properties_gesture_lasso(), and WM_operator_properties_select_operation_simple().
Referenced by graphedit_operatortypes().
| void GRAPH_OT_select_leftright | ( | wmOperatorType * | ot | ) |
Definition at line 1420 of file graph_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, GRAPHKEYS_LRSEL_TEST, graphkeys_select_leftright_exec(), graphkeys_select_leftright_invoke(), graphop_visible_keyframes_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_graphkeys_leftright_select_types, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_select_less | ( | wmOperatorType * | ot | ) |
Definition at line 1270 of file graph_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, graphkeys_select_less_exec(), graphop_visible_keyframes_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_select_linked | ( | wmOperatorType * | ot | ) |
Definition at line 1156 of file graph_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, graphkeys_select_linked_exec(), graphop_visible_keyframes_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_select_more | ( | wmOperatorType * | ot | ) |
Definition at line 1235 of file graph_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, graphkeys_select_more_exec(), graphop_visible_keyframes_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by graphedit_operatortypes().
|
static |
Definition at line 682 of file graph_select.c.
References ANIM_animdata_get_context(), BEZT_OK_FRAMERANGE, BEZT_OK_REGION, BEZT_OK_VALUERANGE, BLI_rctf_rcti_copy(), BLI_rcti_size_x(), BLI_rcti_size_y(), box_select_graphkeys(), C, deselect_graph_keys(), NA_SELECTED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, SELECT_ADD, SELECT_SUBTRACT, WM_event_add_notifier(), and WM_operator_properties_border_to_rcti().
Referenced by GRAPH_OT_select_box().
|
static |
Definition at line 660 of file graph_select.c.
References ANIM_animdata_get_context(), C, find_nearest_fcurve_vert(), MEM_freeN, wmEvent::mval, NULL, OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_boolean_get(), and WM_gesture_box_invoke().
Referenced by GRAPH_OT_select_box().
|
static |
Definition at line 1712 of file graph_select.c.
References ANIM_animdata_get_context(), C, graphkeys_mselect_column(), mouse_graph_keys(), NA_SELECTED, NC_ANIMATION, ND_ANIMCHAN, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_boolean_get(), RNA_int_get(), SELECT_INVERT, SELECT_REPLACE, and WM_event_add_notifier().
Referenced by GRAPH_OT_clickselect().
|
static |
Definition at line 1071 of file graph_select.c.
References ANIM_animdata_get_context(), C, columnselect_graph_keys(), GRAPHKEYS_COLUMNSEL_MARKERS_BETWEEN, markers_selectkeys_between(), NA_SELECTED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by GRAPH_OT_select_column().
|
static |
Definition at line 420 of file graph_select.c.
References ANIM_animdata_get_context(), BLI_assert, C, bAnimListElem::data, deselect_graph_keys(), tNearestVertInfo::fcu, FCURVE_ACTIVE, FCURVE_SELECTED, FCurve::flag, get_active_fcurve_channel(), MEM_freeN, NA_SELECTED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, SELECT_ADD, SELECT_INVERT, SELECT_SUBTRACT, and WM_event_add_notifier().
Referenced by GRAPH_OT_select_all().
|
static |
Definition at line 776 of file graph_select.c.
References ANIM_animdata_get_context(), BEZT_OK_REGION_LASSO, BLI_lasso_boundbox(), BLI_rctf_rcti_copy(), box_select_graphkeys(), C, deselect_graph_keys(), SpaceGraph::flag, if(), KeyframeEdit_LassoData::mcoords, KeyframeEdit_LassoData::mcoords_len, MEM_freeN, NA_SELECTED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, KeyframeEdit_LassoData::rectf_view, RNA_enum_get(), SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, SELECT_ADD, SELECT_SUBTRACT, SIPO_NOHANDLES, SIPO_SELVHANDLESONLY, bAnimContext::sl, WM_event_add_notifier(), and WM_gesture_lasso_path_to_array().
Referenced by GRAPH_OT_select_lasso().
|
static |
Definition at line 1628 of file graph_select.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_editkeyframes_ok(), ANIM_editkeyframes_select(), ANIM_fcurve_keyframes_loop(), ANIM_nla_mapping_get(), ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_NODUPLIS, tNearestVertInfo::bezt, BEZT_OK_FRAME, BKE_nla_tweakedit_remap(), BLI_freelistN(), RenderData::cfra, bAnimContext::data, bAnimContext::datatype, deselect_graph_keys(), KeyframeEditData::f1, BezTriple::f2, filter(), find_nearest_fcurve_vert(), ListBase::first, float(), tNearestVertInfo::frame, bAnimListElem::key_data, KeyframeEditData::list, MEM_freeN, bAnimListElem::next, NLATIME_CONVERT_UNMAP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, Scene::r, bAnimContext::scene, SELECT, SELECT_ADD, SELECT_REPLACE, and SELECT_SUBTRACT.
Referenced by graphkeys_clickselect_exec().
|
static |
Definition at line 1298 of file graph_select.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_editkeyframes_ok(), ANIM_editkeyframes_select(), ANIM_fcurve_keyframes_loop(), ANIM_nla_mapping_apply_fcurve(), ANIM_nla_mapping_get(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_NODUPLIS, BEZT_OK_FRAMERANGE, CFRA, bAnimContext::data, bAnimContext::datatype, deselect_graph_keys(), KeyframeEditData::f1, KeyframeEditData::f2, filter(), ListBase::first, float(), GRAPHKEYS_LRSEL_LEFT, bAnimListElem::key_data, MAXFRAMEF, MINAFRAMEF, bAnimListElem::next, NULL, scene, bAnimContext::scene, SELECT_ADD, SELECT_REPLACE, and SELECT_SUBTRACT.
Referenced by graphkeys_select_leftright_exec().
|
static |
Definition at line 1355 of file graph_select.c.
References ANIM_animdata_get_context(), C, GRAPHKEYS_LRSEL_TEST, graphkeys_select_leftright(), NA_SELECTED, NC_ANIMATION, ND_ANIMCHAN, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), SELECT_INVERT, SELECT_REPLACE, and WM_event_add_notifier().
Referenced by GRAPH_OT_select_leftright(), and graphkeys_select_leftright_invoke().
|
static |
Definition at line 1389 of file graph_select.c.
References ANIM_animdata_get_context(), C, CFRA, GRAPHKEYS_LRSEL_LEFT, GRAPHKEYS_LRSEL_RIGHT, GRAPHKEYS_LRSEL_TEST, graphkeys_select_leftright_exec(), wmEvent::mval, OPERATOR_CANCELLED, wmOperator::ptr, bAnimContext::region, RNA_enum_get(), RNA_enum_set(), scene, bAnimContext::scene, UI_view2d_region_to_view_x(), ARegion::v2d, and x.
Referenced by GRAPH_OT_select_leftright().
|
static |
Definition at line 1252 of file graph_select.c.
References ANIM_animdata_get_context(), C, NA_SELECTED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, select_moreless_graph_keys(), SELMAP_LESS, and WM_event_add_notifier().
Referenced by GRAPH_OT_select_less().
|
static |
Definition at line 1117 of file graph_select.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_editkeyframes_ok(), ANIM_editkeyframes_select(), ANIM_fcurve_keyframes_loop(), ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_NODUPLIS, BEZT_OK_SELECTED, C, bAnimContext::data, bAnimContext::datatype, tNearestVertInfo::fcu, filter(), ListBase::first, if(), bAnimListElem::key_data, NA_SELECTED, NC_ANIMATION, ND_KEYFRAME, bAnimListElem::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, SELECT_ADD, and WM_event_add_notifier().
Referenced by GRAPH_OT_select_linked().
|
static |
Definition at line 1217 of file graph_select.c.
References ANIM_animdata_get_context(), C, NA_SELECTED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, select_moreless_graph_keys(), SELMAP_MORE, and WM_event_add_notifier().
Referenced by GRAPH_OT_select_more().
|
static |
Definition at line 515 of file graph_select.c.
References ANIM_animdata_filter(), ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FOREDIT, ANIMFILTER_NODUPLIS, ANIMFILTER_SELEDIT, bAnimContext::data, bAnimContext::datatype, filter(), SpaceGraph::flag, NULL, and SIPO_SELCUVERTSONLY.
Referenced by box_select_graphkeys().
|
static |
Definition at line 504 of file graph_select.c.
References bAnimContext::region, UI_view2d_region_to_view_rctf(), and ARegion::v2d.
Referenced by box_select_graphkeys().
|
static |
Definition at line 528 of file graph_select.c.
References ANIM_get_normalization_flags(), ANIM_UNITCONV_ONLYKEYS, BEZT_OK_REGION_CIRCLE, BEZT_OK_REGION_LASSO, data, KeyframeEditData::data, SpaceGraph::flag, KeyframeEditData::iterflags, KEYFRAME_ITER_HANDLES_DEFAULT_INVISIBLE, KEYFRAME_ITER_INCL_HANDLES, KeyframeEdit_LassoData::rectf_scaled, KeyframeEdit_CircleData::rectf_scaled, and SIPO_SELVHANDLESONLY.
Referenced by box_select_graphkeys().
|
static |
Definition at line 951 of file graph_select.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_editkeyframes_ok(), ANIM_editkeyframes_select(), ANIM_fcurve_keyframes_loop(), ANIM_nla_mapping_apply_fcurve(), ANIM_nla_mapping_get(), ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_NODUPLIS, BEZT_OK_FRAMERANGE, bAnimContext::data, bAnimContext::datatype, ED_markers_get_minmax(), KeyframeEditData::f1, KeyframeEditData::f2, filter(), ListBase::first, bAnimListElem::key_data, bAnimContext::markers, max, min, bAnimListElem::next, NULL, and SELECT_ADD.
Referenced by graphkeys_columnselect_exec().
|
static |
Definition at line 1457 of file graph_select.c.
References ACHANNEL_SETFLAG_CLEAR, ANIM_anim_channels_select_set(), ANIM_editkeyframes_select(), ANIM_fcurve_keyframes_loop(), ANIM_set_active_channel(), ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_NODUPLIS, tNearestVertInfo::bezt, BEZT_ISSEL_ANY, BKE_fcurve_active_keyframe_index(), BKE_fcurve_active_keyframe_set(), bAnimContext::data, bAnimContext::datatype, deselect_graph_keys(), BezTriple::f1, BezTriple::f2, BezTriple::f3, KeyframeEditData::fcu, FCURVE_ACTIVE_KEYFRAME_NONE, FCURVE_PROTECTED, FCURVE_SELECTED, filter(), find_nearest_fcurve_vert(), SpaceGraph_Runtime::flag, SpaceGraph::flag, MEM_freeN, NEAREST_HANDLE_KEY, NEAREST_HANDLE_LEFT, NEAREST_HANDLE_RIGHT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, SpaceGraph::runtime, SELECT, SELECT_ADD, SELECT_INVERT, SELECT_REPLACE, SELECT_SUBTRACT, SIPO_RUNTIME_FLAG_TWEAK_HANDLES_LEFT, SIPO_RUNTIME_FLAG_TWEAK_HANDLES_RIGHT, SIPO_SELCUVERTSONLY, and bAnimContext::sl.
Referenced by graphkeys_clickselect_exec().
|
static |
Definition at line 108 of file graph_select.c.
References tNearestVertInfo::bezt, BEZT_ISSEL_ANY, BLI_addtail(), tNearestVertInfo::ctype, tNearestVertInfo::dist, tNearestVertInfo::fcu, tNearestVertInfo::fpt, tNearestVertInfo::frame, GVERTSEL_TOL, tNearestVertInfo::hpoint, if(), ListBase::last, len_v2v2_int(), MEM_callocN, tNearestVertInfo::sel, UI_view2d_view_to_region_clip(), and BezTriple::vec.
Referenced by get_nearest_fcurve_verts_list().
|
static |
Definition at line 1174 of file graph_select.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_editkeyframes_buildselmap(), ANIM_fcurve_keyframes_loop(), ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_NODUPLIS, FCurve::bezt, bezt_selmap_flush(), bAnimContext::data, KeyframeEditData::data, bAnimContext::datatype, tNearestVertInfo::fcu, filter(), ListBase::first, if(), bAnimListElem::key_data, MEM_callocN, MEM_freeN, bAnimListElem::next, NULL, and FCurve::totvert.
Referenced by graphkeys_select_less_exec(), and graphkeys_select_more_exec().
|
static |
Definition at line 934 of file graph_select.c.
Referenced by GRAPH_OT_select_column().
|
static |
Definition at line 1289 of file graph_select.c.
Referenced by GRAPH_OT_select_leftright().