|
Blender V4.3
|
#include <cstdio>#include <cstring>#include "DNA_anim_types.h"#include "DNA_scene_types.h"#include "MEM_guardedalloc.h"#include "BLI_math_base.h"#include "BKE_nla.hh"#include "ED_anim_api.hh"#include "ED_keyframes_edit.hh"#include "ED_screen.hh"#include "ED_select_utils.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "WM_api.hh"#include "WM_types.hh"#include "UI_view2d.hh"#include "nla_intern.hh"Go to the source code of this file.
Enumerations | |
| enum | { DESELECT_STRIPS_NOTEST = 0 , DESELECT_STRIPS_TEST , DESELECT_STRIPS_CLEARACTIVE } |
| enum | { NLA_BOXSEL_ALLSTRIPS = 0 , NLA_BOXSEL_FRAMERANGE , NLA_BOXSEL_CHANNELS } |
Variables | |
| static const EnumPropertyItem | prop_nlaedit_leftright_select_types [] |
| anonymous enum |
| Enumerator | |
|---|---|
| DESELECT_STRIPS_NOTEST | |
| DESELECT_STRIPS_TEST | |
| DESELECT_STRIPS_CLEARACTIVE | |
Definition at line 62 of file nla_select.cc.
| anonymous enum |
This operator currently works in one of three ways:
| Enumerator | |
|---|---|
| NLA_BOXSEL_ALLSTRIPS | |
| NLA_BOXSEL_FRAMERANGE | |
| NLA_BOXSEL_CHANNELS | |
Definition at line 198 of file nla_select.cc.
|
static |
Definition at line 204 of file nla_select.cc.
References ACHANNEL_SET_FLAG, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_NLATRACK, BKE_nlastrip_within_bounds(), bAnimContext::data, bAnimContext::datatype, ListBase::first, LISTBASE_FOREACH, NLA_BOXSEL_CHANNELS, NLA_BOXSEL_FRAMERANGE, NLASTRIP_FLAG_SELECT, NLATRACK_FIRST_TOP, NLATRACK_HEIGHT, NLATRACK_STEP, bAnimContext::region, selmodes_to_flagmodes(), bAnimContext::sl, NlaTrack::strips, UI_view2d_region_to_view(), ARegion::v2d, rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by nlaedit_box_select_exec().
|
static |
Definition at line 77 of file nla_select.cc.
References ACHANNEL_SET_FLAG, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, bAnimContext::data, bAnimContext::datatype, DESELECT_STRIPS_CLEARACTIVE, DESELECT_STRIPS_TEST, LISTBASE_FOREACH, NLASTRIP_FLAG_SELECT, SELECT_SUBTRACT, selmodes_to_flagmodes(), and NlaTrack::strips.
Referenced by mouse_nla_strips(), nlaedit_box_select_exec(), nlaedit_deselectall_exec(), and nlaedit_select_leftright().
|
static |
Definition at line 592 of file nla_select.cc.
References ACHANNEL_SET_FLAG, ACHANNEL_SETFLAG_CLEAR, ANIM_anim_channels_select_set(), ANIM_set_active_channel(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_NLATRACK, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, deselect_nla_strips(), DESELECT_STRIPS_CLEARACTIVE, NlaStrip::flag, NlaTrack::flag, MEM_freeN(), nlaedit_strip_at_region_position(), NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_SELECT, NLATRACK_SELECTED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, SCE_NLA_EDIT_ON, bAnimContext::scene, SELECT_ADD, SELECT_REPLACE, SELECT_SUBTRACT, selmodes_to_flagmodes(), bAnimListElem::type, WM_OP_EXEC_DEFAULT, and WM_operator_name_call().
Referenced by nlaedit_clickselect_exec().
| void NLA_OT_click_select | ( | wmOperatorType * | ot | ) |
Definition at line 704 of file nla_select.cc.
References wmOperatorType::description, ED_operator_nla_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, nlaedit_clickselect_exec(), 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 nla_operatortypes().
| void NLA_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 169 of file nla_select.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_deselectall_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, ot, wmOperatorType::poll, and WM_operator_properties_select_all().
Referenced by nla_operatortypes().
| void NLA_OT_select_box | ( | wmOperatorType * | ot | ) |
Definition at line 396 of file nla_select.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, nlaedit_box_select_exec(), nlaedit_box_select_invoke(), nlaop_poll_tweakmode_off(), OPTYPE_UNDO, ot, wmOperatorType::poll, 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 nla_operatortypes().
| void NLA_OT_select_leftright | ( | wmOperatorType * | ot | ) |
Definition at line 563 of file nla_select.cc.
References wmOperatorType::description, ED_operator_nla_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NLAEDIT_LRSEL_TEST, nlaedit_select_leftright_exec(), nlaedit_select_leftright_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_nlaedit_leftright_select_types, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by nla_operatortypes().
|
static |
Definition at line 347 of file nla_select.cc.
References ANIM_animdata_get_context(), BLI_rcti_size_x(), BLI_rcti_size_y(), box_select_nla_strips(), deselect_nla_strips(), DESELECT_STRIPS_TEST, NA_SELECTED, NC_ANIMATION, ND_NLA, NLA_BOXSEL_ALLSTRIPS, NLA_BOXSEL_CHANNELS, NLA_BOXSEL_FRAMERANGE, 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 NLA_OT_select_box().
|
static |
Definition at line 333 of file nla_select.cc.
References ANIM_animdata_get_context(), wmEvent::mval, nlaedit_mouse_is_over_strip(), OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_boolean_get(), and WM_gesture_box_invoke().
Referenced by NLA_OT_select_box().
|
static |
Definition at line 676 of file nla_select.cc.
References ANIM_animdata_get_context(), mouse_nla_strips(), NA_SELECTED, NC_ANIMATION, ND_NLA, OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_boolean_get(), RNA_int_get(), SELECT_INVERT, SELECT_REPLACE, and WM_event_add_notifier().
Referenced by NLA_OT_click_select().
|
static |
Definition at line 134 of file nla_select.cc.
References ANIM_animdata_get_context(), BLI_assert, deselect_nla_strips(), DESELECT_STRIPS_NOTEST, DESELECT_STRIPS_TEST, NA_SELECTED, NC_ANIMATION, ND_NLA, 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 NLA_OT_select_all().
|
static |
Definition at line 319 of file nla_select.cc.
References BLI_assert, MEM_freeN(), and nlaedit_strip_at_region_position().
Referenced by nlaedit_box_select_invoke().
|
static |
Definition at line 438 of file nla_select.cc.
References ACHANNEL_SET_FLAG, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_VISIBLE, BKE_nlastrip_within_bounds(), bAnimContext::data, bAnimContext::datatype, deselect_nla_strips(), float, LISTBASE_FOREACH, MAXFRAMEF, MINAFRAMEF, NLAEDIT_LRSEL_LEFT, NLASTRIP_FLAG_SELECT, SCE_NLA_EDIT_ON, bAnimContext::scene, SELECT_ADD, SELECT_REPLACE, SELECT_SUBTRACT, selmodes_to_flagmodes(), NlaTrack::strips, WM_OP_EXEC_DEFAULT, and WM_operator_name_call().
Referenced by nlaedit_select_leftright_exec().
|
static |
Definition at line 498 of file nla_select.cc.
References ANIM_animdata_get_context(), NA_SELECTED, NC_ANIMATION, ND_ANIMCHAN, ND_KEYFRAME, NLAEDIT_LRSEL_TEST, nlaedit_select_leftright(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), SELECT_INVERT, SELECT_REPLACE, and WM_event_add_notifier().
Referenced by NLA_OT_select_leftright(), and nlaedit_select_leftright_invoke().
|
static |
Definition at line 532 of file nla_select.cc.
References ANIM_animdata_get_context(), wmEvent::mval, NLAEDIT_LRSEL_LEFT, NLAEDIT_LRSEL_RIGHT, NLAEDIT_LRSEL_TEST, nlaedit_select_leftright_exec(), OPERATOR_CANCELLED, wmOperator::ptr, bAnimContext::region, RNA_enum_get(), RNA_enum_set(), bAnimContext::scene, UI_view2d_region_to_view_x(), and x.
Referenced by NLA_OT_select_leftright().
|
static |
Definition at line 259 of file nla_select.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_NLATRACK, BKE_nlastrip_distance_to_frame(), BKE_nlastrip_within_bounds(), BLI_findlink(), BLI_remlink(), bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, distance(), LISTBASE_FOREACH, MAXFRAMEF, NLATRACK_FIRST_TOP, NLATRACK_STEP, bAnimContext::region, bAnimContext::sl, NlaTrack::strips, bAnimListElem::type, UI_view2d_listview_view_to_cell(), UI_view2d_region_to_view(), UI_view2d_region_to_view_x(), and ARegion::v2d.
Referenced by mouse_nla_strips(), and nlaedit_mouse_is_over_strip().
|
static |
Definition at line 39 of file nla_select.cc.
References ACHANNEL_SETFLAG_ADD, ACHANNEL_SETFLAG_CLEAR, ACHANNEL_SETFLAG_INVERT, SELECT_ADD, SELECT_INVERT, and SELECT_SUBTRACT.
Referenced by box_select_nla_strips(), deselect_nla_strips(), mouse_nla_strips(), and nlaedit_select_leftright().
|
static |
Definition at line 429 of file nla_select.cc.
Referenced by NLA_OT_select_leftright().