|
Blender V4.3
|
#include "MEM_guardedalloc.h"#include "BLI_lasso_2d.hh"#include "BLI_listbase.h"#include "BLI_math_base.h"#include "BLI_math_vector_types.hh"#include "BLI_rect.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_mask.h"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_query.hh"#include "DNA_mask_types.h"#include "WM_api.hh"#include "WM_types.hh"#include "ED_clip.hh"#include "ED_mask.hh"#include "ED_select_utils.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "mask_intern.hh"Go to the source code of this file.
|
static |
Definition at line 433 of file mask_select.cc.
References MaskSplinePoint::bezt, BKE_mask_point_select_set(), BKE_mask_point_select_set_handle(), BKE_mask_spline_point_array(), BLI_rctf_isect_pt_v(), CTX_data_edit_mask(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_area(), CTX_wm_region(), DEG_get_evaluated_id(), DEG_id_tag_update(), depsgraph, ED_mask_point_pos(), ED_mask_select_flush_all(), ED_mask_select_toggle_all(), ListBase::first, Mask::id, ID_RECALC_SELECT, MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASK_WHICH_HANDLE_BOTH, Mask::masklayers, NC_MASK, ND_SELECT, MaskSpline::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SEL_DESELECT, SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, select(), BezTriple::vec, WM_event_add_notifier(), WM_operator_properties_border_to_rcti(), rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by MASK_OT_select_box().
|
static |
Definition at line 664 of file mask_select.cc.
References MaskSplinePoint::bezt, BKE_mask_point_select_set(), BKE_mask_point_select_set_handle(), BKE_mask_spline_point_array(), CTX_data_edit_mask(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_area(), CTX_wm_region(), wmOperator::customdata, DEG_get_evaluated_id(), DEG_id_tag_update(), depsgraph, ED_mask_get_size(), ED_mask_point_pos(), ED_mask_select_flush_all(), ED_mask_select_toggle_all(), ED_mask_zoom(), ED_select_op_modal(), ListBase::first, Mask::id, ID_RECALC_SELECT, MASK_HIDE_SELECT, MASK_HIDE_VIEW, mask_spline_point_inside_ellipse(), MASK_WHICH_HANDLE_BOTH, Mask::masklayers, max_ii(), NC_MASK, ND_SELECT, MaskSpline::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_int_get(), SEL_DESELECT, SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, select(), WM_event_add_notifier(), and WM_gesture_is_modal_first().
Referenced by MASK_OT_select_circle().
|
static |
Definition at line 610 of file mask_select.cc.
References do_lasso_select_mask(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_enum_get(), and WM_gesture_lasso_path_to_array().
Referenced by MASK_OT_select_lasso().
|
static |
Definition at line 530 of file mask_select.cc.
References MaskSplinePoint::bezt, BKE_mask_point_select_set(), BKE_mask_point_select_set_handle(), BKE_mask_spline_point_array(), BLI_lasso_boundbox(), BLI_lasso_is_point_inside(), BLI_rcti_isect_pt(), CTX_data_edit_mask(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_area(), CTX_wm_region(), DEG_get_evaluated_id(), DEG_id_tag_update(), depsgraph, ED_mask_point_pos__reverse(), ED_mask_select_flush_all(), ED_mask_select_toggle_all(), ListBase::first, Mask::id, ID_RECALC_SELECT, MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASK_WHICH_HANDLE_BOTH, Mask::masklayers, MASKPOINT_ISSEL_ANY, NC_MASK, ND_SELECT, MaskSpline::next, SEL_DESELECT, SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, select(), BezTriple::vec, and WM_event_add_notifier().
Referenced by clip_lasso_select_exec().
| void ED_mask_deselect_all | ( | const bContext * | C | ) |
Definition at line 184 of file mask_select.cc.
References CTX_data_edit_mask(), DEG_id_tag_update(), ED_mask_select_flush_all(), ED_mask_select_toggle_all(), ID_RECALC_SELECT, NC_MASK, ND_SELECT, SEL_DESELECT, and WM_event_add_notifier().
Referenced by select_exec().
| bool ED_mask_layer_select_check | ( | const MaskLayer * | mask_layer | ) |
Definition at line 59 of file mask_select.cc.
References ED_mask_spline_select_check(), LISTBASE_FOREACH, MASK_HIDE_SELECT, MASK_HIDE_VIEW, MaskLayer::splines, and MaskLayer::visibility_flag.
Referenced by ED_mask_layer_shape_auto_key_select(), ED_mask_select_check(), mask_hide_view_set_exec(), mask_shape_key_clear_exec(), mask_shape_key_insert_exec(), and mask_shape_key_rekey_exec().
| void ED_mask_layer_select_set | ( | MaskLayer * | mask_layer, |
| const bool | do_select ) |
Definition at line 101 of file mask_select.cc.
References ED_mask_spline_select_set(), LISTBASE_FOREACH, MASK_HIDE_SELECT, MaskLayer::splines, and MaskLayer::visibility_flag.
Referenced by ED_mask_select_toggle_all(), mask_hide_view_clear_exec(), and mask_hide_view_set_exec().
| bool ED_mask_select_check | ( | const Mask * | mask | ) |
Definition at line 74 of file mask_select.cc.
References ED_mask_layer_select_check(), and LISTBASE_FOREACH.
Referenced by ED_mask_select_toggle_all().
| void ED_mask_select_flush_all | ( | Mask * | mask | ) |
Definition at line 151 of file mask_select.cc.
References MaskSplinePointUW::flag, LISTBASE_FOREACH, MASK_HIDE_VIEW, MASKPOINT_ISSEL_ANY, SELECT, MaskSplinePoint::tot_uw, and MaskSplinePoint::uw.
Referenced by box_select_exec(), circle_select_exec(), delete_exec(), do_lasso_select_mask(), ED_mask_deselect_all(), mask_select_linked_exec(), mask_select_linked_pick_invoke(), select_all_exec(), select_exec(), select_sliding_point(), setup_vertex_point(), and slide_spline_curvature_customdata().
Definition at line 114 of file mask_select.cc.
References BKE_mask_point_select_set(), ED_mask_layer_select_set(), ED_mask_select_check(), LISTBASE_FOREACH, MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASKPOINT_ISSEL_ANY, SEL_DESELECT, SEL_INVERT, SEL_SELECT, and SEL_TOGGLE.
Referenced by add_vertex_extrude(), add_vertex_new(), add_vertex_subdivide(), box_select_exec(), circle_select_exec(), create_primitive_from_points(), do_lasso_select_mask(), ED_mask_deselect_all(), select_all_exec(), select_exec(), select_sliding_point(), and slide_spline_curvature_customdata().
| bool ED_mask_spline_select_check | ( | const MaskSpline * | spline | ) |
Definition at line 46 of file mask_select.cc.
References MASKPOINT_ISSEL_ANY.
Referenced by cyclic_toggle_exec(), ED_mask_layer_select_check(), mask_select_linked_exec(), and mask_switch_direction_exec().
| void ED_mask_spline_select_set | ( | MaskSpline * | spline, |
| const bool | do_select ) |
Definition at line 85 of file mask_select.cc.
References BKE_mask_point_select_set(), and SELECT.
Referenced by ED_mask_layer_select_set(), mask_select_linked_exec(), and mask_select_linked_pick_invoke().
| void MASK_OT_select | ( | wmOperatorType * | ot | ) |
Definition at line 396 of file mask_select.cc.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), ED_select_pick_get_name(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::get_name, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_vector(), select_exec(), select_invoke(), wmOperatorType::srna, and WM_operator_properties_mouse_select().
Referenced by ED_operatortypes_mask().
| void MASK_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 220 of file mask_select.cc.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, select_all_exec(), and WM_operator_properties_select_all().
Referenced by ED_operatortypes_mask().
| void MASK_OT_select_box | ( | wmOperatorType * | ot | ) |
Definition at line 503 of file mask_select.cc.
References box_select_exec(), wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_gesture_box_invoke(), WM_gesture_box_modal(), WM_operator_properties_gesture_box(), and WM_operator_properties_select_operation_simple().
Referenced by ED_operatortypes_mask().
| void MASK_OT_select_circle | ( | wmOperatorType * | ot | ) |
Definition at line 744 of file mask_select.cc.
References circle_select_exec(), wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), ED_select_circle_get_name(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::get_name, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_gesture_circle_invoke(), WM_gesture_circle_modal(), WM_operator_properties_gesture_circle(), and WM_operator_properties_select_operation_simple().
Referenced by ED_operatortypes_mask().
| void MASK_OT_select_lasso | ( | wmOperatorType * | ot | ) |
Definition at line 623 of file mask_select.cc.
References wmOperatorType::cancel, clip_lasso_select_exec(), wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, 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 ED_operatortypes_mask().
| void MASK_OT_select_less | ( | wmOperatorType * | ot | ) |
Definition at line 985 of file mask_select.cc.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_select_less_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
| void MASK_OT_select_linked | ( | wmOperatorType * | ot | ) |
Definition at line 866 of file mask_select.cc.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_select_linked_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
| void MASK_OT_select_linked_pick | ( | wmOperatorType * | ot | ) |
Definition at line 811 of file mask_select.cc.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, mask_select_linked_pick_invoke(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mask().
| void MASK_OT_select_more | ( | wmOperatorType * | ot | ) |
Definition at line 965 of file mask_select.cc.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_select_more_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
|
static |
Definition at line 980 of file mask_select.cc.
References mask_select_more_less().
Referenced by MASK_OT_select_less().
|
static |
Definition at line 834 of file mask_select.cc.
References CTX_data_edit_mask(), DEG_id_tag_update(), ED_mask_select_flush_all(), ED_mask_spline_select_check(), ED_mask_spline_select_set(), ID_RECALC_SELECT, LISTBASE_FOREACH, MASK_HIDE_SELECT, MASK_HIDE_VIEW, NC_MASK, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MASK_OT_select_linked().
|
static |
Definition at line 772 of file mask_select.cc.
References MaskLayer::act_point, MaskLayer::act_spline, CTX_data_edit_mask(), CTX_wm_area(), CTX_wm_region(), DEG_id_tag_update(), ED_mask_mouse_pos(), ED_mask_point_find_nearest(), ED_mask_select_flush_all(), ED_mask_spline_select_set(), ID_RECALC_SELECT, wmEvent::mval, NC_MASK, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, point, wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by MASK_OT_select_linked_pick().
|
static |
Definition at line 960 of file mask_select.cc.
References mask_select_more_less().
Referenced by MASK_OT_select_more().
Definition at line 887 of file mask_select.cc.
References BKE_mask_point_select_set(), CTX_data_edit_mask(), DEG_id_tag_update(), ID_RECALC_SELECT, LISTBASE_FOREACH, MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASK_SPLINE_CYCLIC, MASKPOINT_ISSEL_ANY, MASKPOINT_ISSEL_KNOT, NC_MASK, ND_SELECT, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by mask_select_less_exec(), and mask_select_more_exec().
|
static |
Definition at line 651 of file mask_select.cc.
References BezTriple::vec, x, and y.
Referenced by circle_select_exec().
|
static |
Definition at line 201 of file mask_select.cc.
References CTX_data_edit_mask(), DEG_id_tag_update(), ED_mask_select_flush_all(), ED_mask_select_toggle_all(), ED_mask_view_lock_state_restore_no_jump(), ED_mask_view_lock_state_store(), ID_RECALC_SELECT, NC_MASK, ND_SELECT, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by blender::ed::curves::CURVES_OT_select_all(), blender::ed::greasepencil::GREASE_PENCIL_OT_select_all(), and MASK_OT_select_all().
|
static |
Definition at line 244 of file mask_select.cc.
References MaskLayer::act_point, MaskLayer::act_spline, BKE_mask_point_select_set(), BKE_mask_point_select_set_handle(), CTX_data_edit_mask(), DEG_id_tag_update(), ED_mask_deselect_all(), ED_mask_feather_find_nearest(), ED_mask_point_find_nearest(), ED_mask_select_flush_all(), ED_mask_select_toggle_all(), ED_mask_view_lock_state_restore_no_jump(), ED_mask_view_lock_state_store(), MaskSplinePointUW::flag, ID_RECALC_SELECT, MASK_WHICH_HANDLE_NONE, MASKPOINT_ISSEL_ANY, MASKPOINT_ISSEL_HANDLE, NC_MASK, ND_SELECT, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, point, wmOperator::ptr, RNA_boolean_get(), RNA_float_get_array(), SEL_DESELECT, SELECT, and WM_event_add_notifier().
Referenced by MASK_OT_select(), and select_invoke().
|
static |
Definition at line 380 of file mask_select.cc.
References CTX_wm_area(), CTX_wm_region(), ED_mask_mouse_pos(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), select_exec(), and WM_operator_flag_only_pass_through_on_press().
Referenced by MASK_OT_select().