Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "BLI_lasso_2d.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_rect.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_mask.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
#include "DNA_mask_types.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_clip.h"
#include "ED_mask.h"
#include "ED_select_utils.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "mask_intern.h"
Go to the source code of this file.
|
static |
Definition at line 426 of file mask_select.c.
References blender::compositor::area(), 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_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, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, point, 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(), rcti::xmax, rctf::xmax, rcti::xmin, rctf::xmin, rcti::ymax, rctf::ymax, rcti::ymin, and rctf::ymin.
Referenced by MASK_OT_select_box().
|
static |
Definition at line 658 of file mask_select.c.
References blender::compositor::area(), 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_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, height, 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, NULL, offset, OPERATOR_CANCELLED, OPERATOR_FINISHED, point, wmOperator::ptr, RNA_enum_get(), RNA_int_get(), SEL_DESELECT, SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, select(), width, WM_event_add_notifier(), WM_gesture_is_modal_first(), x, and y.
Referenced by MASK_OT_select_circle().
|
static |
Definition at line 601 of file mask_select.c.
References C, do_lasso_select_mask(), MEM_freeN, 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 521 of file mask_select.c.
References blender::compositor::area(), 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_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, NULL, point, SEL_DESELECT, SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, select(), BezTriple::vec, and WM_event_add_notifier().
Referenced by clip_lasso_select_exec().
Definition at line 178 of file mask_select.c.
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().
Definition at line 53 of file mask_select.c.
References ED_mask_spline_select_check(), LISTBASE_FOREACH, MASK_HIDE_SELECT, MASK_HIDE_VIEW, MaskLayer::splines, and MaskLayer::visibility_flag.
Referenced by ED_mask_select_check().
Definition at line 95 of file mask_select.c.
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().
Definition at line 68 of file mask_select.c.
References ED_mask_layer_select_check(), LISTBASE_FOREACH, and mask().
Referenced by ED_mask_select_toggle_all().
Definition at line 145 of file mask_select.c.
References MaskSplinePointUW::flag, 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().
Definition at line 108 of file mask_select.c.
References BKE_mask_point_select_set(), ED_mask_layer_select_set(), ED_mask_select_check(), LISTBASE_FOREACH, mask(), MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASKPOINT_ISSEL_ANY, point, 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 40 of file mask_select.c.
References MASKPOINT_ISSEL_ANY, point, MaskSpline::points, and MaskSpline::tot_point.
Referenced by ED_mask_layer_select_check(), and mask_select_linked_exec().
void ED_mask_spline_select_set | ( | MaskSpline * | spline, |
const bool | do_select | ||
) |
Definition at line 79 of file mask_select.c.
References BKE_mask_point_select_set(), MaskSpline::flag, point, 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 389 of file mask_select.c.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), ED_select_pick_get_name(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::get_name, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, 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 214 of file mask_select.c.
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 494 of file mask_select.c.
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 735 of file mask_select.c.
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 617 of file mask_select.c.
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 975 of file mask_select.c.
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 856 of file mask_select.c.
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 801 of file mask_select.c.
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 955 of file mask_select.c.
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 970 of file mask_select.c.
References C, and mask_select_more_less().
Referenced by MASK_OT_select_less().
|
static |
Definition at line 824 of file mask_select.c.
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 763 of file mask_select.c.
References MaskLayer::act_point, MaskLayer::act_spline, blender::compositor::area(), 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, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, point, wmOperator::ptr, RNA_boolean_get(), threshold, and WM_event_add_notifier().
Referenced by MASK_OT_select_linked_pick().
|
static |
Definition at line 950 of file mask_select.c.
References C, and mask_select_more_less().
Referenced by MASK_OT_select_more().
Definition at line 877 of file mask_select.c.
References BKE_mask_point_select_set(), C, CTX_data_edit_mask(), DEG_id_tag_update(), 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 645 of file mask_select.c.
References offset, BezTriple::vec, x, and y.
Referenced by circle_select_exec().
|
static |
Definition at line 195 of file mask_select.c.
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 MASK_OT_select_all().
|
static |
Definition at line 238 of file mask_select.c.
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, NULL, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, point, wmOperator::ptr, RNA_boolean_get(), RNA_float_get_array(), SEL_DESELECT, SELECT, threshold, and WM_event_add_notifier().
Referenced by MASK_OT_select(), and select_invoke().
|
static |
Definition at line 373 of file mask_select.c.
References blender::compositor::area(), 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 MASK_OT_select().