Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BKE_context.h"
#include "BKE_main.h"
#include "BKE_mask.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
#include "DNA_mask_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_clip.h"
#include "ED_image.h"
#include "ED_keyframing.h"
#include "ED_mask.h"
#include "ED_screen.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.
Classes | |
struct | SlidePointData |
struct | SlideSplineCurvatureData |
Typedefs | |
typedef struct SlidePointData | SlidePointData |
typedef struct SlideSplineCurvatureData | SlideSplineCurvatureData |
Enumerations | |
enum | { SLIDE_ACTION_NONE = 0 , SLIDE_ACTION_POINT = 1 , SLIDE_ACTION_HANDLE = 2 , SLIDE_ACTION_FEATHER = 3 , SLIDE_ACTION_SPLINE = 4 } |
typedef struct SlidePointData SlidePointData |
typedef struct SlideSplineCurvatureData SlideSplineCurvatureData |
anonymous enum |
Enumerator | |
---|---|
SLIDE_ACTION_NONE | |
SLIDE_ACTION_POINT | |
SLIDE_ACTION_HANDLE | |
SLIDE_ACTION_FEATHER | |
SLIDE_ACTION_SPLINE |
Definition at line 192 of file mask_ops.c.
|
static |
Definition at line 600 of file mask_ops.c.
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 947 of file mask_ops.c.
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 389 of file mask_ops.c.
References BezTriple::h1, BezTriple::h2, HD_ALIGN_DOUBLESIDE, HD_AUTO, HD_FREE, HD_VECT, MASK_WHICH_HANDLE_LEFT, MASK_WHICH_HANDLE_RIGHT, and point.
Referenced by slide_point_customdata().
|
static |
Definition at line 2054 of file mask_ops.c.
References BKE_mask_clipboard_copy_from_layer(), BKE_mask_layer_active(), C, CTX_data_edit_mask(), mask(), NULL, OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by MASK_OT_copy_splines().
|
static |
Definition at line 1308 of file mask_ops.c.
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 1385 of file mask_ops.c.
References 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(), ID_RECALC_GEOMETRY, LISTBASE_FOREACH, mask(), MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASKPOINT_ISSEL_ANY, MEM_callocN, MEM_freeN, NA_EDITED, NC_MASK, MaskSpline::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, point, MaskSpline::points, MaskSpline::tot_point, and WM_event_add_notifier().
Referenced by MASK_OT_delete().
|
static |
Definition at line 1347 of file mask_ops.c.
References count, MEM_callocN, MEM_freeN, NULL, point, and SELECT.
Referenced by delete_exec().
Get active layer. Will create mask/layer to be sure there's an active layer.
Definition at line 71 of file mask_ops.c.
References BKE_mask_layer_active(), BKE_mask_layer_new(), C, CTX_data_edit_mask(), ED_mask_new(), mask(), and NULL.
Referenced by create_primitive_from_points().
Definition at line 41 of file mask_ops.c.
References blender::compositor::area(), BKE_mask_new(), C, 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 624 of file mask_ops.c.
References BKE_mask_spline_free(), data, and MEM_freeN.
Referenced by slide_point_modal().
|
static |
Definition at line 953 of file mask_ops.c.
References MEM_freeN.
Referenced by slide_spline_curvature_modal().
|
static |
Definition at line 1942 of file mask_ops.c.
References usdtokens::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, ID_RECALC_GEOMETRY, LISTBASE_FOREACH, mask(), MASK_SPLINE_CYCLIC, MASKPOINT_ISSEL_ANY, MEM_dupallocN, MEM_freeN, MEM_mallocN, NA_EDITED, NC_MASK, MaskSpline::offset_mode, OPERATOR_FINISHED, MaskParent::parent, MaskSpline::parent, point, MaskSpline::points, MaskSpline::prev, SELECT, MaskSpline::tot_point, MaskSplinePoint::uw, MaskSpline::weight_interp, and WM_event_add_notifier().
Referenced by MASK_OT_duplicate().
|
static |
Definition at line 1809 of file mask_ops.c.
References C, CTX_data_edit_mask(), DEG_id_tag_update(), ID_RECALC_GEOMETRY, LISTBASE_FOREACH, mask(), MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASKPOINT_ISSEL_ANY, NC_MASK, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, point, BezTriple::weight, and WM_event_add_notifier().
Referenced by MASK_OT_feather_weight_clear().
|
static |
Definition at line 1706 of file mask_ops.c.
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 1748 of file mask_ops.c.
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, NULL, 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 1871 of file mask_ops.c.
References BLI_findlink(), BLI_insertlinkafter(), BLI_insertlinkbefore(), BLI_remlink(), C, CTX_data_edit_mask(), DEG_id_tag_update(), ID_RECALC_COPY_ON_WRITE, 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().
Definition at line 1860 of file mask_ops.c.
References C, CTX_data_edit_mask(), ED_maskedit_mask_poll(), and mask().
Referenced by MASK_OT_layer_move().
|
static |
Definition at line 124 of file mask_ops.c.
References BKE_mask_layer_new(), C, CTX_data_edit_mask(), DEG_id_tag_update(), ID_RECALC_COPY_ON_WRITE, mask(), 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 160 of file mask_ops.c.
References BKE_mask_layer_active(), BKE_mask_layer_remove(), C, CTX_data_edit_mask(), DEG_id_tag_update(), ID_RECALC_COPY_ON_WRITE, mask(), NA_EDITED, NC_MASK, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MASK_OT_layer_remove().
|
static |
Definition at line 91 of file mask_ops.c.
References C, ED_mask_new(), MAX_ID_NAME, NA_ADDED, NC_MASK, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), and WM_event_add_notifier().
Referenced by MASK_OT_new().
|
static |
Definition at line 1561 of file mask_ops.c.
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(), ID_RECALC_GEOMETRY, 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, point, Scene::r, scene, and WM_event_add_notifier().
Referenced by MASK_OT_normals_make_consistent().
void MASK_OT_copy_splines | ( | wmOperatorType * | ot | ) |
Definition at line 2068 of file mask_ops.c.
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 1330 of file mask_ops.c.
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 1486 of file mask_ops.c.
References delete_exec(), 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_confirm().
Referenced by ED_operatortypes_mask().
void MASK_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 2037 of file mask_ops.c.
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 1843 of file mask_ops.c.
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 1677 of file mask_ops.c.
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, NULL, 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 1730 of file mask_ops.c.
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 1791 of file mask_ops.c.
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 1911 of file mask_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_layer_move_exec(), mask_layer_move_poll(), wmOperatorType::name, NULL, 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 140 of file mask_ops.c.
References wmOperatorType::description, ED_maskedit_mask_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_layer_new_exec(), MAX_ID_NAME, wmOperatorType::name, NULL, 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 175 of file mask_ops.c.
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 104 of file mask_ops.c.
References wmOperatorType::description, ED_maskedit_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_new_exec(), MAX_ID_NAME, wmOperatorType::name, NULL, 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 1607 of file mask_ops.c.
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 2112 of file mask_ops.c.
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 898 of file mask_ops.c.
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 1290 of file mask_ops.c.
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 1545 of file mask_ops.c.
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 239 of file mask_ops.c.
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 1503 of file mask_ops.c.
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, IS_AUTOKEY_ON, LISTBASE_FOREACH, mask(), MASK_HIDE_SELECT, MASK_HIDE_VIEW, NA_EDITED, NC_MASK, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, scene, and WM_event_add_notifier().
Referenced by MASK_OT_switch_direction().
|
static |
Definition at line 2094 of file mask_ops.c.
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, NULL, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MASK_OT_paste_splines().
Definition at line 2085 of file mask_ops.c.
References BKE_mask_clipboard_is_empty(), C, and ED_maskedit_mask_visible_splines_poll().
Referenced by MASK_OT_paste_splines().
|
static |
Definition at line 358 of file mask_ops.c.
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(), 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 1624 of file mask_ops.c.
References add_v3_v3v3(), C, CTX_data_edit_mask(), DEG_id_tag_update(), BezTriple::f1, BezTriple::f2, BezTriple::f3, BezTriple::h1, BezTriple::h2, HD_ALIGN, LISTBASE_FOREACH, mask(), MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASKPOINT_ISSEL_ANY, NC_MASK, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, point, 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 345 of file mask_ops.c.
References point, MaskSpline::points, and MaskSpline::tot_point.
Referenced by slide_point_customdata().
|
static |
Definition at line 413 of file mask_ops.c.
References SlidePointData::action, blender::compositor::area(), 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, SlidePointData::height, 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, NULL, SlidePointData::old_h1, SlidePointData::old_h2, SlidePointData::orig_handle_coord, SlidePointData::point, 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(), threshold, MaskSplinePointUW::u, SlidePointData::uw, SlidePointData::vec, BezTriple::vec, MaskSplinePointUW::w, SlidePointData::weight, BezTriple::weight, SlidePointData::weight_scalar, SlidePointData::which_handle, SlidePointData::width, width, and WM_event_add_notifier().
Referenced by slide_point_invoke().
|
static |
Definition at line 573 of file mask_ops.c.
References MaskSplinePoint::bezt, data, point, and BezTriple::weight.
Referenced by slide_point_modal().
|
static |
Definition at line 546 of file mask_ops.c.
References MaskLayer::act_point, MaskLayer::act_spline, C, CTX_data_edit_mask(), wmOperator::customdata, mask(), SlidePointData::mask_layer, NC_MASK, ND_SELECT, NULL, 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 633 of file mask_ops.c.
References add_v2_v2(), add_v2_v2v2(), blender::compositor::area(), 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(), C, Freestyle::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, free_slide_point_data(), HD_VECT, 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(), NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, point, project_v2_v2v2_normalized(), Scene::r, RIGHTMOUSE, scene, 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(), SWAP, wmEvent::type, wmEvent::val, w(), and WM_event_add_notifier().
Referenced by MASK_OT_slide_point().
|
static |
Definition at line 586 of file mask_ops.c.
References MaskSplinePoint::bezt, data, point, and MaskSplinePoint::uw.
Referenced by cancel_slide_point(), and slide_point_modal().
Definition at line 958 of file mask_ops.c.
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, NULL, and threshold.
Referenced by slide_spline_curvature_invoke().
|
static |
Definition at line 977 of file mask_ops.c.
References MaskLayer::act_point, MaskLayer::act_spline, SlideSplineCurvatureData::adjust_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, NULL, SlideSplineCurvatureData::other_bezt, SlideSplineCurvatureData::other_bezt_backup, SlideSplineCurvatureData::P0, SlideSplineCurvatureData::P1, SlideSplineCurvatureData::P2, SlideSplineCurvatureData::P3, SlideSplineCurvatureData::point, point, MaskSpline::points, SlideSplineCurvatureData::prev_mouse_coord, SlideSplineCurvatureData::prev_spline_coord, SEL_DESELECT, SELECT, SlideSplineCurvatureData::spline, threshold, SlideSplineCurvatureData::u, and BezTriple::vec.
Referenced by slide_spline_curvature_invoke().
|
static |
Definition at line 1080 of file mask_ops.c.
References C, CTX_data_edit_mask(), wmOperator::customdata, mask(), NC_MASK, ND_SELECT, NULL, 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 1137 of file mask_ops.c.
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(), 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, scene, 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 1105 of file mask_ops.c.
References B, t, u2, v, and v2.
Referenced by slide_spline_curvature_modal().
|
static |
Definition at line 1121 of file mask_ops.c.
References B, t, u2, v, and v2.
Referenced by slide_spline_curvature_modal().
|
static |
Definition at line 246 of file mask_ops.c.
References blender::compositor::area(), MaskSplinePoint::bezt, BKE_mask_spline_point_array(), C, center, 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, height, Mask::id, 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(), NULL, MovieClipUser::render_flag, SELECT, square_f(), threshold, SpaceClip::user, BezTriple::vec, and width.
Referenced by slide_point_customdata().