|
Blender V5.0
|
#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 "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.
Typedefs | |
| using | int2 |
| using blender::int2 |
Definition at line 601 of file BLI_math_vector_types.hh.
|
static |
Definition at line 430 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(), C, CTX_data_edit_mask(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_area(), CTX_wm_region(), DEG_get_evaluated(), DEG_id_tag_update(), depsgraph, ED_mask_point_pos(), ED_mask_select_flush_all(), ED_mask_select_toggle_all(), ListBase::first, i, Mask::id, ID_RECALC_SELECT, MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASK_WHICH_HANDLE_BOTH, Mask::masklayers, NC_MASK, ND_SELECT, MaskLayer::next, 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 CLIP_OT_select_box(), INFO_OT_select_box(), and MASK_OT_select_box().
|
static |
Definition at line 661 of file mask_select.cc.
References MaskSplinePoint::bezt, BKE_mask_point_select_set(), BKE_mask_point_select_set_handle(), BKE_mask_spline_point_array(), C, CTX_data_edit_mask(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_area(), CTX_wm_region(), wmOperator::customdata, DEG_get_evaluated(), 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, i, 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, MaskLayer::next, 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(), WM_gesture_is_modal_first(), x, and y.
Referenced by CLIP_OT_select_circle(), and MASK_OT_select_circle().
|
static |
Definition at line 607 of file mask_select.cc.
References C, 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 CLIP_OT_select_lasso(), and MASK_OT_select_lasso().
|
static |
Definition at line 527 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(), C, CTX_data_edit_mask(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_area(), CTX_wm_region(), DEG_get_evaluated(), DEG_id_tag_update(), depsgraph, ED_mask_point_pos__reverse(), ED_mask_select_flush_all(), ED_mask_select_toggle_all(), ListBase::first, i, Mask::id, ID_RECALC_SELECT, MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASK_WHICH_HANDLE_BOTH, Mask::masklayers, MASKPOINT_ISSEL_ANY, NC_MASK, ND_SELECT, MaskLayer::next, 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 181 of file mask_select.cc.
References C, CTX_data_edit_mask(), DEG_id_tag_update(), ED_mask_select_flush_all(), ED_mask_select_toggle_all(), ID_RECALC_SELECT, mask(), 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 56 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 98 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 71 of file mask_select.cc.
References ED_mask_layer_select_check(), LISTBASE_FOREACH, and mask().
Referenced by ED_mask_select_toggle_all().
| void ED_mask_select_flush_all | ( | Mask * | mask | ) |
Definition at line 148 of file mask_select.cc.
References MaskSplinePointUW::flag, i, LISTBASE_FOREACH, mask(), 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().
| void ED_mask_select_toggle_all | ( | Mask * | mask, |
| int | action ) |
Definition at line 111 of file mask_select.cc.
References BKE_mask_point_select_set(), ED_mask_layer_select_set(), ED_mask_select_check(), i, LISTBASE_FOREACH, mask(), 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 43 of file mask_select.cc.
References i, MASKPOINT_ISSEL_ANY, MaskSpline::points, and MaskSpline::tot_point.
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 82 of file mask_select.cc.
References BKE_mask_point_select_set(), MaskSpline::flag, i, MaskSpline::points, SELECT, and MaskSpline::tot_point.
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 393 of file mask_select.cc.
References ED_maskedit_mask_visible_splines_poll(), ED_select_pick_get_name(), FLT_MAX, OPTYPE_UNDO, ot, RNA_def_float_vector(), select_exec(), select_invoke(), and WM_operator_properties_mouse_select().
Referenced by ED_operatortypes_mask().
| void MASK_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 217 of file mask_select.cc.
References ED_maskedit_mask_visible_splines_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, select_all_exec(), and WM_operator_properties_select_all().
Referenced by ED_operatortypes_mask().
| void MASK_OT_select_box | ( | wmOperatorType * | ot | ) |
Definition at line 500 of file mask_select.cc.
References box_select_exec(), ED_maskedit_mask_visible_splines_poll(), OPTYPE_UNDO, ot, 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 741 of file mask_select.cc.
References circle_select_exec(), ED_maskedit_mask_visible_splines_poll(), ED_select_circle_get_name(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, 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 620 of file mask_select.cc.
References clip_lasso_select_exec(), ED_maskedit_mask_visible_splines_poll(), OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_UNDO, ot, 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 984 of file mask_select.cc.
References ED_maskedit_mask_visible_splines_poll(), mask_select_less_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_mask().
| void MASK_OT_select_linked | ( | wmOperatorType * | ot | ) |
Definition at line 865 of file mask_select.cc.
References ED_maskedit_mask_visible_splines_poll(), mask_select_linked_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_mask().
| void MASK_OT_select_linked_pick | ( | wmOperatorType * | ot | ) |
Definition at line 810 of file mask_select.cc.
References ED_maskedit_mask_visible_splines_poll(), mask_select_linked_pick_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by ED_operatortypes_mask().
| void MASK_OT_select_more | ( | wmOperatorType * | ot | ) |
Definition at line 964 of file mask_select.cc.
References ED_maskedit_mask_visible_splines_poll(), mask_select_more_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_mask().
|
static |
Definition at line 979 of file mask_select.cc.
References C, and mask_select_more_less().
Referenced by MASK_OT_select_less().
|
static |
Definition at line 833 of file mask_select.cc.
References C, 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(), 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 769 of file mask_select.cc.
References MaskLayer::act_point, MaskLayer::act_spline, C, 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, mask(), wmEvent::mval, NC_MASK, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by MASK_OT_select_linked_pick().
|
static |
Definition at line 959 of file mask_select.cc.
References C, and mask_select_more_less().
Referenced by MASK_OT_select_more().
|
static |
Definition at line 886 of file mask_select.cc.
References BKE_mask_point_select_set(), C, CTX_data_edit_mask(), DEG_id_tag_update(), i, ID_RECALC_SELECT, LISTBASE_FOREACH, mask(), 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 648 of file mask_select.cc.
References BezTriple::vec, x, and y.
Referenced by circle_select_exec().
|
static |
Definition at line 198 of file mask_select.cc.
References C, 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, mask(), NC_MASK, ND_SELECT, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by CLIP_OT_select_all(), and MASK_OT_select_all().
|
static |
Definition at line 241 of file mask_select.cc.
References MaskLayer::act_point, MaskLayer::act_spline, BKE_mask_point_select_set(), BKE_mask_point_select_set_handle(), C, 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(), MASK_WHICH_HANDLE_NONE, MASKPOINT_ISSEL_ANY, MASKPOINT_ISSEL_HANDLE, NC_MASK, ND_SELECT, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_boolean_get(), RNA_float_get_array(), SEL_DESELECT, SELECT, and WM_event_add_notifier().
Referenced by CLIP_OT_graph_select(), CLIP_OT_select(), MASK_OT_select(), and select_invoke().
|
static |
Definition at line 377 of file mask_select.cc.
References C, 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 CLIP_OT_graph_select(), CLIP_OT_select(), and MASK_OT_select().