|
Blender V4.5
|
#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 cancel_slide_point(), copy_m3_m3(), data, SLIDE_ACTION_FEATHER, SLIDE_ACTION_SPLINE, and slide_point_restore_spline().
Referenced by cancel_slide_point(), and slide_point_modal().
|
static |
Definition at line 966 of file mask_ops.cc.
References SlideSplineCurvatureData::adjust_bezt, SlideSplineCurvatureData::bezt_backup, cancel_slide_spline_curvature(), SlideSplineCurvatureData::other_bezt, and SlideSplineCurvatureData::other_bezt_backup.
Referenced by cancel_slide_spline_curvature(), and slide_spline_curvature_modal().
|
static |
Definition at line 401 of file mask_ops.cc.
References MaskSplinePoint::bezt, check_sliding_handle_type(), BezTriple::h1, BezTriple::h2, HD_ALIGN_DOUBLESIDE, HD_AUTO, HD_FREE, HD_VECT, MASK_WHICH_HANDLE_LEFT, and MASK_WHICH_HANDLE_RIGHT.
Referenced by check_sliding_handle_type(), and 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, copy_splines_exec(), CTX_data_edit_mask(), mask(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by copy_splines_exec(), and MASK_OT_copy_splines().
|
static |
Definition at line 1337 of file mask_ops.cc.
References C, CTX_data_edit_mask(), cyclic_toggle_exec(), 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 cyclic_toggle_exec(), and 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, CTX_data_edit_mask(), DEG_id_tag_update(), delete_exec(), 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().
|
static |
Definition at line 1376 of file mask_ops.cc.
References delete_feather_points(), MaskSplinePointUW::flag, i, MEM_calloc_arrayN(), MEM_freeN(), SELECT, MaskSplinePoint::tot_uw, and MaskSplinePoint::uw.
Referenced by delete_exec(), and delete_feather_points().
|
static |
Definition at line 1521 of file mask_ops.cc.
References ALERT_ICON_NONE, C, delete_exec(), delete_invoke(), IFACE_, wmOperator::ptr, RNA_boolean_get(), and WM_operator_confirm_ex().
Referenced by delete_invoke(), and 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_layer_ensure(), ED_mask_new(), and mask().
Referenced by create_primitive_from_points(), and ED_mask_layer_ensure().
Definition at line 48 of file mask_ops.cc.
References BKE_mask_new(), C, CTX_data_main(), CTX_wm_area(), ED_mask_new(), ED_space_clip_set_mask(), ED_space_image_set_mask(), ListBase::first, mask(), SPACE_CLIP, SPACE_IMAGE, SPACE_SEQ, ScrArea::spacedata, and ScrArea::spacetype.
Referenced by add_vertex_exec(), ED_mask_layer_ensure(), ED_mask_new(), and mask_new_exec().
|
static |
Definition at line 637 of file mask_ops.cc.
References BKE_mask_spline_free(), data, free_slide_point_data(), and MEM_freeN().
Referenced by free_slide_point_data(), and slide_point_modal().
|
static |
Definition at line 972 of file mask_ops.cc.
References free_slide_spline_curvature_data(), and MEM_freeN().
Referenced by free_slide_spline_curvature_data(), and 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_duplicate_exec(), 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_duplicate_exec(), and 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_feather_weight_clear_exec(), 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_feather_weight_clear_exec(), and 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(), mask_hide_view_clear_exec(), 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_hide_view_clear_exec(), and 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, mask_hide_view_set_exec(), NC_MASK, ND_DRAW, OB_HIDE_VIEWPORT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by mask_hide_view_set_exec(), and 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(), mask_layer_move_exec(), 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_layer_move_exec(), and MASK_OT_layer_move().
|
static |
Definition at line 1910 of file mask_ops.cc.
References C, CTX_data_edit_mask(), ED_maskedit_mask_poll(), mask(), and mask_layer_move_poll().
Referenced by mask_layer_move_poll(), and 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(), mask_layer_new_exec(), MAX_ID_NAME, NA_EDITED, NC_MASK, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), and WM_event_add_notifier().
Referenced by mask_layer_new_exec(), and 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(), mask_layer_remove_exec(), NA_EDITED, NC_MASK, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by mask_layer_remove_exec(), and MASK_OT_layer_remove().
|
static |
Definition at line 98 of file mask_ops.cc.
References C, ED_mask_new(), mask_new_exec(), MAX_ID_NAME, NA_ADDED, NC_MASK, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), and WM_event_add_notifier().
Referenced by mask_new_exec(), and 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, mask_normals_make_consistent_exec(), MASKPOINT_ISSEL_ANY, NA_EDITED, NC_MASK, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, and WM_event_add_notifier().
Referenced by mask_normals_make_consistent_exec(), and 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(), wmOperatorType::description, ED_maskedit_mask_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, MASK_OT_copy_splines(), wmOperatorType::name, OPTYPE_REGISTER, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask(), and MASK_OT_copy_splines().
| void MASK_OT_cyclic_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 1359 of file mask_ops.cc.
References cyclic_toggle_exec(), wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, MASK_OT_cyclic_toggle(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask(), and MASK_OT_cyclic_toggle().
| void MASK_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 1535 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, MASK_OT_delete(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and WM_operator_properties_confirm_or_exec().
Referenced by ED_operatortypes_mask(), and MASK_OT_delete().
| void MASK_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 2111 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_duplicate_exec(), MASK_OT_duplicate(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask(), and MASK_OT_duplicate().
| void MASK_OT_feather_weight_clear | ( | wmOperatorType * | ot | ) |
Definition at line 1893 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(), MASK_OT_feather_weight_clear(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask(), and MASK_OT_feather_weight_clear().
| void MASK_OT_handle_type_set | ( | wmOperatorType * | ot | ) |
Definition at line 1727 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, MASK_OT_handle_type_set(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), set_handle_type_exec(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_mask(), and MASK_OT_handle_type_set().
| void MASK_OT_hide_view_clear | ( | wmOperatorType * | ot | ) |
Definition at line 1780 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_hide_view_clear_exec(), MASK_OT_hide_view_clear(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mask(), and MASK_OT_hide_view_clear().
| void MASK_OT_hide_view_set | ( | wmOperatorType * | ot | ) |
Definition at line 1841 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_hide_view_set_exec(), MASK_OT_hide_view_set(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mask(), and MASK_OT_hide_view_set().
| void MASK_OT_layer_move | ( | wmOperatorType * | ot | ) |
Definition at line 1962 of file mask_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_layer_move_exec(), mask_layer_move_poll(), MASK_OT_layer_move(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mask(), and MASK_OT_layer_move().
| void MASK_OT_layer_new | ( | wmOperatorType * | ot | ) |
Definition at line 147 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_layer_new_exec(), MASK_OT_layer_new(), MAX_ID_NAME, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mask(), and MASK_OT_layer_new().
| void MASK_OT_layer_remove | ( | wmOperatorType * | ot | ) |
Definition at line 182 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_layer_remove_exec(), MASK_OT_layer_remove(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask(), and MASK_OT_layer_remove().
| void MASK_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 111 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_new_exec(), MASK_OT_new(), MAX_ID_NAME, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mask(), and MASK_OT_new().
| void MASK_OT_normals_make_consistent | ( | wmOperatorType * | ot | ) |
Definition at line 1657 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(), MASK_OT_normals_make_consistent(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask(), and MASK_OT_normals_make_consistent().
| void MASK_OT_paste_splines | ( | wmOperatorType * | ot | ) |
Definition at line 2186 of file mask_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, MASK_OT_paste_splines(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, paste_splines_exec(), paste_splines_poll(), and wmOperatorType::poll.
Referenced by ED_operatortypes_mask(), and MASK_OT_paste_splines().
| void MASK_OT_slide_point | ( | wmOperatorType * | ot | ) |
Definition at line 917 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MASK_OT_slide_point(), wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, 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(), and MASK_OT_slide_point().
| void MASK_OT_slide_spline_curvature | ( | wmOperatorType * | ot | ) |
Definition at line 1319 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MASK_OT_slide_spline_curvature(), wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, slide_spline_curvature_invoke(), and slide_spline_curvature_modal().
Referenced by ED_operatortypes_mask(), and MASK_OT_slide_spline_curvature().
| void MASK_OT_switch_direction | ( | wmOperatorType * | ot | ) |
Definition at line 1595 of file mask_ops.cc.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, MASK_OT_switch_direction(), mask_switch_direction_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask(), and MASK_OT_switch_direction().
|
static |
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(), mask_point_undistort_pos(), and SpaceClip::user.
|
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, mask_switch_direction_exec(), NA_EDITED, NC_MASK, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, and WM_event_add_notifier().
Referenced by MASK_OT_switch_direction(), and mask_switch_direction_exec().
|
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, paste_splines_exec(), and WM_event_add_notifier().
Referenced by MASK_OT_paste_splines(), and paste_splines_exec().
|
static |
Definition at line 2159 of file mask_ops.cc.
References BKE_mask_clipboard_is_empty(), C, ED_maskedit_mask_visible_splines_poll(), and paste_splines_poll().
Referenced by MASK_OT_paste_splines(), and paste_splines_poll().
|
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, SELECT, and select_sliding_point().
Referenced by select_sliding_point(), and 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, set_handle_type_exec(), sub_v3_v3v3(), BezTriple::vec, and WM_event_add_notifier().
Referenced by MASK_OT_handle_type_set(), and set_handle_type_exec().
|
static |
Definition at line 357 of file mask_ops.cc.
References MaskSplinePoint::bezt, i, MaskSpline::points, slide_point_check_initial_feather(), MaskSpline::tot_point, and BezTriple::weight.
Referenced by slide_point_check_initial_feather(), and 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(), slide_point_customdata(), 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_customdata(), and slide_point_invoke().
|
static |
Definition at line 588 of file mask_ops.cc.
References MaskSplinePoint::bezt, data, i, slide_point_delta_all_feather(), and BezTriple::weight.
Referenced by slide_point_delta_all_feather(), and 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(), slide_point_invoke(), SlidePointData::spline, WM_event_add_modal_handler(), and WM_event_add_notifier().
Referenced by MASK_OT_slide_point(), and slide_point_invoke().
|
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_modal(), 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(), and slide_point_modal().
|
static |
Definition at line 599 of file mask_ops.cc.
References MaskSplinePoint::bezt, data, i, slide_point_restore_spline(), MaskSplinePoint::tot_uw, and MaskSplinePoint::uw.
Referenced by cancel_slide_point(), slide_point_modal(), and slide_point_restore_spline().
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(), wmEvent::mval, and slide_spline_curvature_check().
Referenced by slide_spline_curvature_check(), and 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, slide_spline_curvature_customdata(), SlideSplineCurvatureData::spline, SlideSplineCurvatureData::u, and BezTriple::vec.
Referenced by slide_spline_curvature_customdata(), and 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(), slide_spline_curvature_invoke(), WM_event_add_modal_handler(), and WM_event_add_notifier().
Referenced by MASK_OT_slide_spline_curvature(), and slide_spline_curvature_invoke().
|
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_curvature_modal(), 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(), and slide_spline_curvature_modal().
|
static |
Definition at line 1129 of file mask_ops.cc.
References B, slide_spline_solve_P1(), v, and v2.
Referenced by slide_spline_curvature_modal(), and slide_spline_solve_P1().
|
static |
Definition at line 1145 of file mask_ops.cc.
References B, slide_spline_solve_P2(), v, and v2.
Referenced by slide_spline_curvature_modal(), and slide_spline_solve_P2().
|
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(), 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, spline_under_mouse_get(), square_f(), SpaceClip::user, and BezTriple::vec.
Referenced by slide_point_customdata(), and spline_under_mouse_get().