|
Blender V4.3
|
#include "MEM_guardedalloc.h"#include "BLI_listbase.h"#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "BKE_context.hh"#include "BKE_mask.h"#include "BLT_translation.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_query.hh"#include "DNA_mask_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "WM_api.hh"#include "WM_types.hh"#include "ED_clip.hh"#include "ED_image.hh"#include "ED_mask.hh"#include "ED_select_utils.hh"#include "ANIM_keyframing.hh"#include "UI_interface_icons.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "mask_intern.hh"Go to the source code of this file.
Classes | |
| struct | SlidePointData |
| struct | SlideSplineCurvatureData |
Enumerations | |
| enum | { SLIDE_ACTION_NONE = 0 , SLIDE_ACTION_POINT = 1 , SLIDE_ACTION_HANDLE = 2 , SLIDE_ACTION_FEATHER = 3 , SLIDE_ACTION_SPLINE = 4 } |
| anonymous enum |
| Enumerator | |
|---|---|
| SLIDE_ACTION_NONE | |
| SLIDE_ACTION_POINT | |
| SLIDE_ACTION_HANDLE | |
| SLIDE_ACTION_FEATHER | |
| SLIDE_ACTION_SPLINE | |
Definition at line 197 of file mask_ops.cc.
|
static |
Definition at line 613 of file mask_ops.cc.
References copy_m3_m3(), SLIDE_ACTION_FEATHER, SLIDE_ACTION_SPLINE, and slide_point_restore_spline().
Referenced by slide_point_modal().
|
static |
Definition at line 963 of file mask_ops.cc.
References SlideSplineCurvatureData::adjust_bezt, SlideSplineCurvatureData::bezt_backup, SlideSplineCurvatureData::other_bezt, and SlideSplineCurvatureData::other_bezt_backup.
Referenced by slide_spline_curvature_modal().
|
static |
Definition at line 399 of file mask_ops.cc.
References BezTriple::h1, BezTriple::h2, HD_ALIGN_DOUBLESIDE, HD_AUTO, HD_FREE, HD_VECT, MASK_WHICH_HANDLE_LEFT, and MASK_WHICH_HANDLE_RIGHT.
Referenced by slide_point_customdata().
|
static |
Definition at line 2118 of file mask_ops.cc.
References BKE_mask_clipboard_copy_from_layer(), BKE_mask_layer_active(), CTX_data_edit_mask(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by MASK_OT_copy_splines().
|
static |
Definition at line 1327 of file mask_ops.cc.
References CTX_data_edit_mask(), DEG_id_tag_update(), ED_mask_spline_select_check(), LISTBASE_FOREACH, MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASK_SPLINE_CYCLIC, NA_EDITED, NC_MASK, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MASK_OT_cyclic_toggle().
|
static |
Definition at line 1404 of file mask_ops.cc.
References ARRAY_HAS_ITEM, BKE_mask_layer_free_shapes(), BKE_mask_layer_shape_changed_remove(), BKE_mask_point_free(), BKE_mask_spline_free(), BLI_listbase_is_empty(), BLI_remlink(), count, CTX_data_edit_mask(), DEG_id_tag_update(), delete_feather_points(), ED_mask_select_flush_all(), ID_RECALC_GEOMETRY, LISTBASE_FOREACH, MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASKPOINT_ISSEL_ANY, MEM_freeN(), NA_EDITED, NC_MASK, MaskSpline::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, point, MaskSpline::tot_point, and WM_event_add_notifier().
Referenced by delete_invoke(), and MASK_OT_delete().
|
static |
Definition at line 1366 of file mask_ops.cc.
References count, MEM_freeN(), and SELECT.
Referenced by delete_exec().
|
static |
Definition at line 1511 of file mask_ops.cc.
References ALERT_ICON_NONE, delete_exec(), IFACE_, wmOperator::ptr, RNA_boolean_get(), and WM_operator_confirm_ex().
Referenced by MASK_OT_delete().
Get active layer. Will create mask/layer to be sure there's an active layer.
Definition at line 76 of file mask_ops.cc.
References BKE_mask_layer_active(), BKE_mask_layer_new(), CTX_data_edit_mask(), and ED_mask_new().
Referenced by create_primitive_from_points().
Definition at line 46 of file mask_ops.cc.
References BKE_mask_new(), CTX_data_main(), CTX_wm_area(), ED_space_clip_set_mask(), ED_space_image_set_mask(), mask(), SPACE_CLIP, SPACE_IMAGE, and SPACE_SEQ.
Referenced by add_vertex_exec(), ED_mask_layer_ensure(), and mask_new_exec().
|
static |
Definition at line 637 of file mask_ops.cc.
References BKE_mask_spline_free(), and MEM_freeN().
Referenced by slide_point_modal().
|
static |
Definition at line 969 of file mask_ops.cc.
References MEM_freeN().
Referenced by slide_spline_curvature_modal().
|
static |
Definition at line 1983 of file mask_ops.cc.
References ARRAY_HAS_ITEM, b, BKE_mask_layer_shape_changed_add(), BKE_mask_layer_shape_spline_to_index(), BKE_mask_point_select_set(), BKE_mask_spline_add(), CTX_data_edit_mask(), DEG_id_tag_update(), MaskSpline::flag, ID_RECALC_GEOMETRY, LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD, MASK_SPLINE_CYCLIC, MASKPOINT_ISSEL_ANY, MEM_dupallocN, MEM_freeN(), NA_EDITED, NC_MASK, MaskSpline::offset_mode, OPERATOR_FINISHED, MaskParent::parent, MaskSpline::parent, MaskSpline::points, SELECT, MaskSpline::tot_point, MaskSplinePoint::uw, MaskSpline::weight_interp, and WM_event_add_notifier().
Referenced by MASK_OT_duplicate().
|
static |
Definition at line 1849 of file mask_ops.cc.
References CTX_data_edit_mask(), DEG_id_tag_update(), ID_RECALC_GEOMETRY, LISTBASE_FOREACH, MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASKPOINT_ISSEL_ANY, NC_MASK, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, BezTriple::weight, and WM_event_add_notifier().
Referenced by MASK_OT_feather_weight_clear().
|
static |
Definition at line 1746 of file mask_ops.cc.
References CTX_data_edit_mask(), DEG_id_tag_update(), ED_mask_layer_select_set(), LISTBASE_FOREACH, NC_MASK, ND_DRAW, OB_HIDE_VIEWPORT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), select(), and WM_event_add_notifier().
Referenced by MASK_OT_hide_view_clear().
|
static |
Definition at line 1788 of file mask_ops.cc.
References BKE_mask_layer_active(), BKE_mask_layer_active_set(), CTX_data_edit_mask(), DEG_id_tag_update(), ED_mask_layer_select_check(), ED_mask_layer_select_set(), LISTBASE_FOREACH, MASK_HIDE_SELECT, NC_MASK, ND_DRAW, OB_HIDE_VIEWPORT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by MASK_OT_hide_view_set().
|
static |
Definition at line 1911 of file mask_ops.cc.
References BLI_findlink(), BLI_insertlinkafter(), BLI_insertlinkbefore(), BLI_remlink(), CTX_data_edit_mask(), DEG_id_tag_update(), ID_RECALC_SYNC_TO_EVAL, NA_EDITED, NC_MASK, MaskLayer::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, MaskLayer::prev, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by MASK_OT_layer_move().
|
static |
Definition at line 1900 of file mask_ops.cc.
References CTX_data_edit_mask(), and ED_maskedit_mask_poll().
Referenced by MASK_OT_layer_move().
|
static |
Definition at line 129 of file mask_ops.cc.
References BKE_mask_layer_new(), CTX_data_edit_mask(), DEG_id_tag_update(), ID_RECALC_SYNC_TO_EVAL, MAX_ID_NAME, NA_EDITED, NC_MASK, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), and WM_event_add_notifier().
Referenced by MASK_OT_layer_new().
|
static |
Definition at line 165 of file mask_ops.cc.
References BKE_mask_layer_active(), BKE_mask_layer_remove(), CTX_data_edit_mask(), DEG_id_tag_update(), ID_RECALC_SYNC_TO_EVAL, NA_EDITED, NC_MASK, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MASK_OT_layer_remove().
|
static |
Definition at line 96 of file mask_ops.cc.
References ED_mask_new(), MAX_ID_NAME, NA_ADDED, NC_MASK, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), and WM_event_add_notifier().
Referenced by MASK_OT_new().
|
static |
Definition at line 1601 of file mask_ops.cc.
References BKE_mask_calc_handle_point_auto(), CTX_data_edit_mask(), CTX_data_scene(), DEG_id_tag_update(), ED_mask_layer_shape_auto_key(), ID_RECALC_GEOMETRY, blender::animrig::is_autokey_on(), LISTBASE_FOREACH, MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASKPOINT_ISSEL_ANY, NA_EDITED, NC_MASK, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MASK_OT_normals_make_consistent().
| void MASK_OT_copy_splines | ( | wmOperatorType * | ot | ) |
Definition at line 2132 of file mask_ops.cc.
References copy_splines_exec(), wmOperatorType::description, ED_maskedit_mask_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
| void MASK_OT_cyclic_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 1349 of file mask_ops.cc.
References cyclic_toggle_exec(), wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
| void MASK_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 1525 of file mask_ops.cc.
References delete_exec(), delete_invoke(), wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_confirm_or_exec().
Referenced by ED_operatortypes_mask().
| void MASK_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 2101 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_duplicate_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
| void MASK_OT_feather_weight_clear | ( | wmOperatorType * | ot | ) |
Definition at line 1883 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_feather_weight_clear_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
| void MASK_OT_handle_type_set | ( | wmOperatorType * | ot | ) |
Definition at line 1717 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, HD_ALIGN, HD_ALIGN_DOUBLESIDE, HD_AUTO, HD_FREE, HD_VECT, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), set_handle_type_exec(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_mask().
| void MASK_OT_hide_view_clear | ( | wmOperatorType * | ot | ) |
Definition at line 1770 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_hide_view_clear_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mask().
| void MASK_OT_hide_view_set | ( | wmOperatorType * | ot | ) |
Definition at line 1831 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_hide_view_set_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mask().
| void MASK_OT_layer_move | ( | wmOperatorType * | ot | ) |
Definition at line 1952 of file mask_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_layer_move_exec(), mask_layer_move_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mask().
| void MASK_OT_layer_new | ( | wmOperatorType * | ot | ) |
Definition at line 145 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_layer_new_exec(), MAX_ID_NAME, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mask().
| void MASK_OT_layer_remove | ( | wmOperatorType * | ot | ) |
Definition at line 180 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_layer_remove_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
| void MASK_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 109 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_new_exec(), MAX_ID_NAME, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mask().
| void MASK_OT_normals_make_consistent | ( | wmOperatorType * | ot | ) |
Definition at line 1647 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_normals_make_consistent_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
| void MASK_OT_paste_splines | ( | wmOperatorType * | ot | ) |
Definition at line 2176 of file mask_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paste_splines_exec(), paste_splines_poll(), and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
| void MASK_OT_slide_point | ( | wmOperatorType * | ot | ) |
Definition at line 914 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), slide_point_invoke(), slide_point_modal(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mask().
| void MASK_OT_slide_spline_curvature | ( | wmOperatorType * | ot | ) |
Definition at line 1309 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, slide_spline_curvature_invoke(), and slide_spline_curvature_modal().
Referenced by ED_operatortypes_mask().
| void MASK_OT_switch_direction | ( | wmOperatorType * | ot | ) |
Definition at line 1585 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_switch_direction_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
Definition at line 244 of file mask_ops.cc.
References BKE_mask_coord_from_movieclip(), BKE_mask_coord_to_movieclip(), SpaceClip::clip, ED_clip_point_undistorted_pos(), and SpaceClip::user.
Referenced by spline_under_mouse_get().
|
static |
Definition at line 1543 of file mask_ops.cc.
References BKE_mask_spline_direction_switch(), CTX_data_edit_mask(), CTX_data_scene(), DEG_id_tag_update(), ED_mask_layer_shape_auto_key(), ED_mask_spline_select_check(), ID_RECALC_GEOMETRY, blender::animrig::is_autokey_on(), LISTBASE_FOREACH, MASK_HIDE_SELECT, MASK_HIDE_VIEW, NA_EDITED, NC_MASK, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MASK_OT_switch_direction().
|
static |
Definition at line 2158 of file mask_ops.cc.
References BKE_mask_clipboard_paste_to_layer(), BKE_mask_layer_active(), BKE_mask_layer_new(), CTX_data_edit_mask(), CTX_data_main(), DEG_id_tag_update(), ID_RECALC_GEOMETRY, NA_EDITED, NC_MASK, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MASK_OT_paste_splines().
|
static |
Definition at line 2149 of file mask_ops.cc.
References BKE_mask_clipboard_is_empty(), and ED_maskedit_mask_visible_splines_poll().
Referenced by MASK_OT_paste_splines().
|
static |
Definition at line 368 of file mask_ops.cc.
References MaskLayer::act_point, MaskLayer::act_spline, BKE_mask_point_select_set(), BLI_assert_msg, ED_mask_select_flush_all(), ED_mask_select_toggle_all(), MASK_WHICH_HANDLE_LEFT, MASK_WHICH_HANDLE_NONE, MASK_WHICH_HANDLE_RIGHT, MASK_WHICH_HANDLE_STICK, point, SEL_DESELECT, and SELECT.
Referenced by slide_point_customdata().
|
static |
Definition at line 1664 of file mask_ops.cc.
References add_v3_v3v3(), CTX_data_edit_mask(), DEG_id_tag_update(), BezTriple::f1, BezTriple::f2, BezTriple::f3, BezTriple::h1, BezTriple::h2, HD_ALIGN, LISTBASE_FOREACH, MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASKPOINT_ISSEL_ANY, NC_MASK, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SELECT, sub_v3_v3v3(), BezTriple::vec, and WM_event_add_notifier().
Referenced by MASK_OT_handle_type_set().
|
static |
Definition at line 355 of file mask_ops.cc.
Referenced by slide_point_customdata().
|
static |
Definition at line 423 of file mask_ops.cc.
References SlidePointData::action, BKE_mask_point_handle(), BKE_mask_point_normal(), BKE_mask_point_segment_co(), BKE_mask_point_weight_scalar(), check_sliding_handle_type(), copy_m3_m3(), copy_v2_v2(), CTX_data_edit_mask(), CTX_wm_area(), CTX_wm_region(), DEG_id_tag_update(), ED_mask_feather_find_nearest(), ED_mask_get_size(), ED_mask_mouse_pos(), ED_mask_point_find_nearest(), ED_mask_view_lock_state_restore_no_jump(), ED_mask_view_lock_state_store(), SlidePointData::event_invoke_type, SlidePointData::height, SlidePointData::is_initial_feather, SlidePointData::is_sliding_new_point, madd_v2_v2v2fl(), mask(), SlidePointData::mask, SlidePointData::mask_layer, MASK_WHICH_HANDLE_NONE, wmEvent::mval, NA_EDITED, NC_MASK, SlidePointData::no, SlidePointData::old_h1, SlidePointData::old_h2, SlidePointData::orig_handle_coord, point, SlidePointData::point, SlidePointData::prev_feather_coord, SlidePointData::prev_handle_coord, SlidePointData::prev_mouse_coord, SlidePointData::prev_zero_coord, wmOperator::ptr, RNA_boolean_get(), select_sliding_point(), SLIDE_ACTION_FEATHER, SLIDE_ACTION_HANDLE, SLIDE_ACTION_NONE, SLIDE_ACTION_POINT, SLIDE_ACTION_SPLINE, slide_point_check_initial_feather(), SlidePointData::spline, spline_under_mouse_get(), MaskSplinePointUW::u, SlidePointData::uw, BezTriple::vec, SlidePointData::vec, MaskSplinePointUW::w, BezTriple::weight, SlidePointData::weight, SlidePointData::weight_scalar, SlidePointData::which_handle, SlidePointData::width, and WM_event_add_notifier().
Referenced by slide_point_invoke().
|
static |
Definition at line 586 of file mask_ops.cc.
References MaskSplinePoint::bezt, and BezTriple::weight.
Referenced by slide_point_modal().
|
static |
Definition at line 559 of file mask_ops.cc.
References MaskLayer::act_point, MaskLayer::act_spline, CTX_data_edit_mask(), wmOperator::customdata, SlidePointData::mask_layer, NC_MASK, ND_SELECT, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, SlidePointData::point, slide_point_customdata(), SlidePointData::spline, WM_event_add_modal_handler(), and WM_event_add_notifier().
Referenced by MASK_OT_slide_point().
|
static |
Definition at line 646 of file mask_ops.cc.
References add_v2_v2(), add_v2_v2v2(), ATTR_FALLTHROUGH, BKE_mask_point_handle(), BKE_mask_point_normal(), BKE_mask_point_segment_co(), BKE_mask_point_set_handle(), BKE_mask_point_sort_uw(), BKE_mask_point_weight_scalar(), BKE_mask_spline_copy(), BKE_mask_spline_free(), BKE_mask_spline_project_co(), cancel_slide_point(), copy_v2_v2(), CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), wmOperator::customdata, DEG_id_tag_update(), dot_v2v2(), ED_mask_layer_shape_auto_key(), ED_mask_mouse_pos(), ELEM, EVT_ESCKEY, EVT_LEFTALTKEY, EVT_LEFTSHIFTKEY, EVT_RIGHTALTKEY, EVT_RIGHTSHIFTKEY, FLT_MAX, free_slide_point_data(), BezTriple::h1, BezTriple::h2, HD_VECT, blender::animrig::is_autokey_on(), KM_PRESS, KM_RELEASE, LEFTMOUSE, len_squared_v2v2(), len_v2(), MASK_PROJ_NEG, MASK_PROJ_POS, MASK_WHICH_HANDLE_LEFT, MASK_WHICH_HANDLE_RIGHT, MASK_WHICH_HANDLE_STICK, MOUSEMOVE, mul_v2_fl(), wmEvent::mval, NA_EDITED, NC_MASK, negate_v2(), OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, project_v2_v2v2_normalized(), RIGHTMOUSE, SLIDE_ACTION_FEATHER, SLIDE_ACTION_HANDLE, SLIDE_ACTION_POINT, SLIDE_ACTION_SPLINE, slide_point_delta_all_feather(), slide_point_restore_spline(), sub_v2_v2(), sub_v2_v2v2(), wmEvent::type, wmEvent::val, BezTriple::vec, w(), BezTriple::weight, and WM_event_add_notifier().
Referenced by MASK_OT_slide_point().
|
static |
Definition at line 599 of file mask_ops.cc.
References MaskSplinePoint::bezt, and MaskSplinePoint::uw.
Referenced by cancel_slide_point(), and slide_point_modal().
Definition at line 974 of file mask_ops.cc.
References CTX_data_edit_mask(), CTX_wm_area(), CTX_wm_region(), ED_mask_feather_find_nearest(), ED_mask_mouse_pos(), ED_mask_point_find_nearest(), and wmEvent::mval.
Referenced by slide_spline_curvature_invoke().
|
static |
Definition at line 995 of file mask_ops.cc.
References MaskLayer::act_point, MaskLayer::act_spline, SlideSplineCurvatureData::adjust_bezt, SlideSplineCurvatureData::bezt_backup, BKE_mask_point_segment_co(), BKE_mask_spline_point_next_bezt(), copy_v2_v2(), CTX_data_edit_mask(), CTX_wm_area(), CTX_wm_region(), DEG_id_tag_update(), ED_mask_find_nearest_diff_point(), ED_mask_mouse_pos(), ED_mask_select_flush_all(), ED_mask_select_toggle_all(), ED_mask_view_lock_state_restore_no_jump(), ED_mask_view_lock_state_store(), SlideSplineCurvatureData::event_invoke_type, BezTriple::f1, BezTriple::f2, BezTriple::f3, BezTriple::h1, BezTriple::h2, HD_FREE, HD_VECT, mask(), SlideSplineCurvatureData::mask, SlideSplineCurvatureData::mask_layer, wmEvent::mval, SlideSplineCurvatureData::other_bezt, SlideSplineCurvatureData::other_bezt_backup, SlideSplineCurvatureData::P0, SlideSplineCurvatureData::P1, SlideSplineCurvatureData::P2, SlideSplineCurvatureData::P3, point, SlideSplineCurvatureData::point, SlideSplineCurvatureData::prev_mouse_coord, SlideSplineCurvatureData::prev_spline_coord, SEL_DESELECT, SELECT, SlideSplineCurvatureData::spline, SlideSplineCurvatureData::u, and BezTriple::vec.
Referenced by slide_spline_curvature_invoke().
|
static |
Definition at line 1099 of file mask_ops.cc.
References CTX_data_edit_mask(), wmOperator::customdata, NC_MASK, ND_SELECT, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, slide_spline_curvature_check(), slide_spline_curvature_customdata(), WM_event_add_modal_handler(), and WM_event_add_notifier().
Referenced by MASK_OT_slide_spline_curvature().
|
static |
Definition at line 1156 of file mask_ops.cc.
References SlideSplineCurvatureData::accurate, add_v2_v2v2(), SlideSplineCurvatureData::adjust_bezt, ATTR_FALLTHROUGH, B, SlideSplineCurvatureData::bezt_backup, cancel_slide_spline_curvature(), copy_v2_v2(), CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), wmOperator::customdata, DEG_id_tag_update(), ED_mask_layer_shape_auto_key(), ED_mask_mouse_pos(), ELEM, SlideSplineCurvatureData::event_invoke_type, EVT_ESCKEY, EVT_LEFTCTRLKEY, EVT_LEFTSHIFTKEY, EVT_RIGHTCTRLKEY, EVT_RIGHTSHIFTKEY, free_slide_spline_curvature_data(), BezTriple::h1, BezTriple::h2, HD_FREE, HD_VECT, Mask::id, interp_v2_v2v2(), blender::animrig::is_autokey_on(), KM_PRESS, KM_RELEASE, LEFTMOUSE, SlideSplineCurvatureData::mask, SlideSplineCurvatureData::mask_layer, MOUSEMOVE, mul_v2_fl(), wmEvent::mval, NA_EDITED, NC_MASK, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, SlideSplineCurvatureData::other_bezt, SlideSplineCurvatureData::other_bezt_backup, SlideSplineCurvatureData::P0, SlideSplineCurvatureData::P1, SlideSplineCurvatureData::P2, SlideSplineCurvatureData::P3, SlideSplineCurvatureData::prev_mouse_coord, SlideSplineCurvatureData::prev_spline_coord, RIGHTMOUSE, slide_spline_solve_P1(), slide_spline_solve_P2(), sub_v2_v2v2(), wmEvent::type, SlideSplineCurvatureData::u, wmEvent::val, BezTriple::vec, WM_event_add_notifier(), and x.
Referenced by MASK_OT_slide_spline_curvature().
|
static |
Definition at line 1124 of file mask_ops.cc.
Referenced by slide_spline_curvature_modal().
|
static |
Definition at line 1140 of file mask_ops.cc.
Referenced by slide_spline_curvature_modal().
|
static |
Definition at line 251 of file mask_ops.cc.
References MaskSplinePoint::bezt, BKE_mask_spline_point_array(), SpaceClip::clip, copy_v2_v2(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_area(), CTX_wm_space_clip(), DEG_get_evaluated_id(), depsgraph, ED_mask_find_nearest_diff_point(), ED_mask_get_size(), ListBase::first, Mask::id, INIT_MINMAX2, len_squared_v2v2(), MASK_HIDE_SELECT, MASK_HIDE_VIEW, mask_point_undistort_pos(), Mask::masklayers, MCLIP_PROXY_RENDER_UNDISTORT, min, min_ff(), minmax_v2v2_v2(), MaskLayer::next, MaskSpline::next, MovieClipUser::render_flag, SELECT, square_f(), SpaceClip::user, and BezTriple::vec.
Referenced by slide_point_customdata().