|
Blender V5.0
|
#include <algorithm>#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 199 of file mask_ops.cc.
|
static |
Definition at line 613 of file mask_ops.cc.
References copy_m3_m3(), data, SLIDE_ACTION_FEATHER, SLIDE_ACTION_SPLINE, and slide_point_restore_spline().
Referenced by slide_point_modal().
|
static |
Definition at line 966 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 401 of file mask_ops.cc.
References MaskSplinePoint::bezt, 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 2128 of file mask_ops.cc.
References BKE_mask_clipboard_copy_from_layer(), BKE_mask_layer_active(), C, CTX_data_edit_mask(), mask(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by MASK_OT_copy_splines().
|
static |
Definition at line 1337 of file mask_ops.cc.
References C, CTX_data_edit_mask(), DEG_id_tag_update(), ED_mask_spline_select_check(), LISTBASE_FOREACH, mask(), 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 1414 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(), C, count, CTX_data_edit_mask(), DEG_id_tag_update(), delete_feather_points(), ED_mask_select_flush_all(), i, ID_RECALC_GEOMETRY, LISTBASE_FOREACH, mask(), MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASKPOINT_ISSEL_ANY, MEM_calloc_arrayN(), MEM_freeN(), NA_EDITED, NC_MASK, MaskSpline::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, MaskSpline::points, MaskSpline::tot_point, and WM_event_add_notifier().
Referenced by delete_invoke().
|
static |
Definition at line 1376 of file mask_ops.cc.
References count, MaskSplinePointUW::flag, i, MEM_calloc_arrayN(), MEM_freeN(), SELECT, MaskSplinePoint::tot_uw, and MaskSplinePoint::uw.
Referenced by delete_exec().
|
static |
Definition at line 1521 of file mask_ops.cc.
References ALERT_ICON_NONE, C, 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 78 of file mask_ops.cc.
References BKE_mask_layer_active(), BKE_mask_layer_new(), C, CTX_data_edit_mask(), ED_mask_new(), and mask().
Referenced by create_primitive_from_points().
Definition at line 48 of file mask_ops.cc.
References BKE_mask_new(), C, CTX_data_main(), CTX_wm_area(), ED_space_clip_set_mask(), ED_space_image_set_mask(), ListBase::first, mask(), name, SPACE_CLIP, SPACE_IMAGE, SPACE_SEQ, ScrArea::spacedata, and ScrArea::spacetype.
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(), data, and MEM_freeN().
Referenced by slide_point_modal().
|
static |
Definition at line 972 of file mask_ops.cc.
References MEM_freeN().
Referenced by slide_spline_curvature_modal().
|
static |
Definition at line 1993 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(), C, CTX_data_edit_mask(), DEG_id_tag_update(), MaskSpline::flag, i, ID_RECALC_GEOMETRY, LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD, mask(), MASK_SPLINE_CYCLIC, MASKPOINT_ISSEL_ANY, MEM_calloc_arrayN(), 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 1859 of file mask_ops.cc.
References MaskSplinePoint::bezt, C, CTX_data_edit_mask(), DEG_id_tag_update(), i, ID_RECALC_GEOMETRY, LISTBASE_FOREACH, mask(), 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 1756 of file mask_ops.cc.
References C, CTX_data_edit_mask(), DEG_id_tag_update(), ED_mask_layer_select_set(), LISTBASE_FOREACH, mask(), 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 1798 of file mask_ops.cc.
References BKE_mask_layer_active(), BKE_mask_layer_active_set(), C, CTX_data_edit_mask(), DEG_id_tag_update(), ED_mask_layer_select_check(), ED_mask_layer_select_set(), LISTBASE_FOREACH, mask(), 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 1921 of file mask_ops.cc.
References BLI_findlink(), BLI_insertlinkafter(), BLI_insertlinkbefore(), BLI_remlink(), C, CTX_data_edit_mask(), DEG_id_tag_update(), ID_RECALC_SYNC_TO_EVAL, mask(), 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 1910 of file mask_ops.cc.
References C, CTX_data_edit_mask(), ED_maskedit_mask_poll(), and mask().
Referenced by MASK_OT_layer_move().
|
static |
Definition at line 131 of file mask_ops.cc.
References BKE_mask_layer_new(), C, CTX_data_edit_mask(), DEG_id_tag_update(), ID_RECALC_SYNC_TO_EVAL, mask(), MAX_ID_NAME, NA_EDITED, name, NC_MASK, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), and WM_event_add_notifier().
Referenced by MASK_OT_layer_new().
|
static |
Definition at line 167 of file mask_ops.cc.
References BKE_mask_layer_active(), BKE_mask_layer_remove(), C, CTX_data_edit_mask(), DEG_id_tag_update(), ID_RECALC_SYNC_TO_EVAL, mask(), NA_EDITED, NC_MASK, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MASK_OT_layer_remove().
|
static |
Definition at line 98 of file mask_ops.cc.
References C, ED_mask_new(), MAX_ID_NAME, NA_ADDED, name, NC_MASK, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), and WM_event_add_notifier().
Referenced by MASK_OT_new().
|
static |
Definition at line 1611 of file mask_ops.cc.
References BKE_mask_calc_handle_point_auto(), C, RenderData::cfra, CTX_data_edit_mask(), CTX_data_scene(), DEG_id_tag_update(), ED_mask_layer_shape_auto_key(), i, ID_RECALC_GEOMETRY, blender::animrig::is_autokey_on(), LISTBASE_FOREACH, mask(), MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASKPOINT_ISSEL_ANY, NA_EDITED, NC_MASK, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, and WM_event_add_notifier().
Referenced by MASK_OT_normals_make_consistent().
| void MASK_OT_copy_splines | ( | wmOperatorType * | ot | ) |
Definition at line 2142 of file mask_ops.cc.
References copy_splines_exec(), ED_maskedit_mask_poll(), OPTYPE_REGISTER, and ot.
Referenced by ED_operatortypes_mask().
| void MASK_OT_cyclic_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 1359 of file mask_ops.cc.
References cyclic_toggle_exec(), ED_maskedit_mask_visible_splines_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_mask().
| void MASK_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 1535 of file mask_ops.cc.
References delete_exec(), delete_invoke(), ED_maskedit_mask_visible_splines_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and WM_operator_properties_confirm_or_exec().
Referenced by ED_operatortypes_mask().
| void MASK_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 2111 of file mask_ops.cc.
References ED_maskedit_mask_visible_splines_poll(), mask_duplicate_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_mask().
| void MASK_OT_feather_weight_clear | ( | wmOperatorType * | ot | ) |
Definition at line 1893 of file mask_ops.cc.
References ED_maskedit_mask_visible_splines_poll(), mask_feather_weight_clear_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_mask().
| void MASK_OT_handle_type_set | ( | wmOperatorType * | ot | ) |
Definition at line 1727 of file mask_ops.cc.
References ED_maskedit_mask_visible_splines_poll(), HD_ALIGN, HD_ALIGN_DOUBLESIDE, HD_AUTO, HD_FREE, HD_VECT, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_enum(), set_handle_type_exec(), and WM_menu_invoke().
Referenced by ED_operatortypes_mask().
| void MASK_OT_hide_view_clear | ( | wmOperatorType * | ot | ) |
Definition at line 1780 of file mask_ops.cc.
References ED_maskedit_mask_poll(), mask_hide_view_clear_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by ED_operatortypes_mask().
| void MASK_OT_hide_view_set | ( | wmOperatorType * | ot | ) |
Definition at line 1841 of file mask_ops.cc.
References ED_maskedit_mask_poll(), mask_hide_view_set_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by ED_operatortypes_mask().
| void MASK_OT_layer_move | ( | wmOperatorType * | ot | ) |
Definition at line 1962 of file mask_ops.cc.
References mask_layer_move_exec(), mask_layer_move_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_enum().
Referenced by ED_operatortypes_mask().
| void MASK_OT_layer_new | ( | wmOperatorType * | ot | ) |
Definition at line 147 of file mask_ops.cc.
References ED_maskedit_mask_poll(), mask_layer_new_exec(), MAX_ID_NAME, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_string().
Referenced by ED_operatortypes_mask().
| void MASK_OT_layer_remove | ( | wmOperatorType * | ot | ) |
Definition at line 182 of file mask_ops.cc.
References ED_maskedit_mask_poll(), mask_layer_remove_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_mask().
| void MASK_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 111 of file mask_ops.cc.
References ED_maskedit_poll(), mask_new_exec(), MAX_ID_NAME, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_string().
Referenced by ED_operatortypes_mask().
| void MASK_OT_normals_make_consistent | ( | wmOperatorType * | ot | ) |
Definition at line 1657 of file mask_ops.cc.
References ED_maskedit_mask_visible_splines_poll(), mask_normals_make_consistent_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_mask().
| void MASK_OT_paste_splines | ( | wmOperatorType * | ot | ) |
Definition at line 2186 of file mask_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, paste_splines_exec(), and paste_splines_poll().
Referenced by ED_operatortypes_mask().
| void MASK_OT_slide_point | ( | wmOperatorType * | ot | ) |
Definition at line 917 of file mask_ops.cc.
References ED_maskedit_mask_visible_splines_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), slide_point_invoke(), and slide_point_modal().
Referenced by ED_operatortypes_mask().
| void MASK_OT_slide_spline_curvature | ( | wmOperatorType * | ot | ) |
Definition at line 1319 of file mask_ops.cc.
References ED_maskedit_mask_visible_splines_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, slide_spline_curvature_invoke(), and slide_spline_curvature_modal().
Referenced by ED_operatortypes_mask().
| void MASK_OT_switch_direction | ( | wmOperatorType * | ot | ) |
Definition at line 1595 of file mask_ops.cc.
References ED_maskedit_mask_visible_splines_poll(), mask_switch_direction_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_mask().
Definition at line 246 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 1553 of file mask_ops.cc.
References BKE_mask_spline_direction_switch(), C, RenderData::cfra, 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(), MASK_HIDE_SELECT, MASK_HIDE_VIEW, NA_EDITED, NC_MASK, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, and WM_event_add_notifier().
Referenced by MASK_OT_switch_direction().
|
static |
Definition at line 2168 of file mask_ops.cc.
References BKE_mask_clipboard_paste_to_layer(), BKE_mask_layer_active(), BKE_mask_layer_new(), C, CTX_data_edit_mask(), CTX_data_main(), DEG_id_tag_update(), ID_RECALC_GEOMETRY, mask(), NA_EDITED, NC_MASK, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MASK_OT_paste_splines().
|
static |
Definition at line 2159 of file mask_ops.cc.
References BKE_mask_clipboard_is_empty(), C, and ED_maskedit_mask_visible_splines_poll().
Referenced by MASK_OT_paste_splines().
|
static |
Definition at line 370 of file mask_ops.cc.
References MaskLayer::act_point, MaskLayer::act_spline, MaskSplinePoint::bezt, BKE_mask_point_select_set(), BLI_assert_msg, ED_mask_select_flush_all(), ED_mask_select_toggle_all(), BezTriple::f1, BezTriple::f3, mask(), MASK_WHICH_HANDLE_LEFT, MASK_WHICH_HANDLE_NONE, MASK_WHICH_HANDLE_RIGHT, MASK_WHICH_HANDLE_STICK, SEL_DESELECT, and SELECT.
Referenced by slide_point_customdata().
|
static |
Definition at line 1674 of file mask_ops.cc.
References add_v3_v3v3(), MaskSplinePoint::bezt, C, CTX_data_edit_mask(), DEG_id_tag_update(), BezTriple::f1, BezTriple::f2, BezTriple::f3, BezTriple::h1, BezTriple::h2, HD_ALIGN, i, LISTBASE_FOREACH, mask(), 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().
|
static |
Definition at line 357 of file mask_ops.cc.
References MaskSplinePoint::bezt, i, MaskSpline::points, MaskSpline::tot_point, and BezTriple::weight.
Referenced by slide_point_customdata().
|
static |
Definition at line 425 of file mask_ops.cc.
References SlidePointData::action, MaskSplinePoint::bezt, BKE_mask_point_handle(), BKE_mask_point_normal(), BKE_mask_point_segment_co(), BKE_mask_point_weight_scalar(), C, 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, BezTriple::h1, BezTriple::h2, SlidePointData::height, SlidePointData::is_initial_feather, SlidePointData::is_sliding_new_point, madd_v2_v2v2fl(), mask(), SlidePointData::mask, SlidePointData::mask_layer, MASK_WHICH_HANDLE_NONE, MEM_callocN(), wmEvent::mval, NA_EDITED, NC_MASK, SlidePointData::no, SlidePointData::old_h1, SlidePointData::old_h2, SlidePointData::orig_handle_coord, 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 588 of file mask_ops.cc.
References MaskSplinePoint::bezt, data, i, and BezTriple::weight.
Referenced by slide_point_modal().
|
static |
Definition at line 561 of file mask_ops.cc.
References MaskLayer::act_point, MaskLayer::act_spline, C, CTX_data_edit_mask(), wmOperator::customdata, mask(), 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, MaskSplinePoint::bezt, 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(), C, cancel_slide_point(), RenderData::cfra, copy_v2_v2(), CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), wmOperator::customdata, data, 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, i, 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, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, project_v2_v2v2_normalized(), Scene::r, 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, data, i, MaskSplinePoint::tot_uw, and MaskSplinePoint::uw.
Referenced by cancel_slide_point(), and slide_point_modal().
Definition at line 977 of file mask_ops.cc.
References C, CTX_data_edit_mask(), CTX_wm_area(), CTX_wm_region(), ED_mask_feather_find_nearest(), ED_mask_mouse_pos(), ED_mask_point_find_nearest(), mask(), and wmEvent::mval.
Referenced by slide_spline_curvature_invoke().
|
static |
Definition at line 998 of file mask_ops.cc.
References MaskLayer::act_point, MaskLayer::act_spline, SlideSplineCurvatureData::adjust_bezt, MaskSplinePoint::bezt, SlideSplineCurvatureData::bezt_backup, BKE_mask_point_segment_co(), BKE_mask_spline_point_next_bezt(), C, 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, MEM_callocN(), wmEvent::mval, SlideSplineCurvatureData::other_bezt, SlideSplineCurvatureData::other_bezt_backup, SlideSplineCurvatureData::P0, SlideSplineCurvatureData::P1, SlideSplineCurvatureData::P2, SlideSplineCurvatureData::P3, SlideSplineCurvatureData::point, MaskSpline::points, 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 1102 of file mask_ops.cc.
References C, CTX_data_edit_mask(), wmOperator::customdata, mask(), 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 1161 of file mask_ops.cc.
References SlideSplineCurvatureData::accurate, add_v2_v2v2(), SlideSplineCurvatureData::adjust_bezt, ATTR_FALLTHROUGH, B, SlideSplineCurvatureData::bezt_backup, C, cancel_slide_spline_curvature(), RenderData::cfra, 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, Scene::r, 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 1129 of file mask_ops.cc.
Referenced by slide_spline_curvature_modal().
|
static |
Definition at line 1145 of file mask_ops.cc.
Referenced by slide_spline_curvature_modal().
|
static |
Definition at line 253 of file mask_ops.cc.
References MaskSplinePoint::bezt, BKE_mask_spline_point_array(), C, SpaceClip::clip, copy_v2_v2(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_area(), CTX_wm_space_clip(), DEG_get_evaluated(), depsgraph, ED_mask_find_nearest_diff_point(), ED_mask_get_size(), ListBase::first, i, INIT_MINMAX2, len_squared_v2v2(), MASK_HIDE_SELECT, MASK_HIDE_VIEW, mask_point_undistort_pos(), Mask::masklayers, max, 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().