Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "BKE_context.h"
#include "BKE_curve.h"
#include "BKE_mask.h"
#include "DEG_depsgraph.h"
#include "DNA_mask_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "WM_api.h"
#include "WM_types.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.
|
static |
Definition at line 610 of file mask_add.c.
References BKE_mask_point_add_uw(), BKE_mask_point_weight(), BKE_mask_point_weight_scalar(), C, CTX_data_edit_mask(), DEG_id_tag_update(), ED_mask_find_nearest_diff_point(), ED_mask_point_find_nearest(), ID_RECALC_GEOMETRY, mask(), NA_EDITED, NC_MASK, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, point, wmOperator::ptr, RNA_float_get_array(), threshold, w(), and WM_event_add_notifier().
Referenced by add_feather_vertex_invoke(), and MASK_OT_add_feather_vertex().
|
static |
Definition at line 658 of file mask_add.c.
References add_feather_vertex_exec(), blender::compositor::area(), C, CTX_wm_area(), CTX_wm_region(), ED_mask_mouse_pos(), wmEvent::mval, wmOperator::ptr, and RNA_float_set_array().
Referenced by MASK_OT_add_feather_vertex().
|
static |
Definition at line 511 of file mask_add.c.
References MaskLayer::act_point, MaskLayer::act_spline, add_vertex_extrude(), add_vertex_handle_cyclic(), add_vertex_new(), add_vertex_subdivide(), BKE_mask_layer_active(), C, CTX_data_edit_mask(), DEG_id_tag_update(), ED_mask_new(), ED_mask_view_lock_state_restore_no_jump(), ED_mask_view_lock_state_store(), ID_RECALC_GEOMETRY, mask(), MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASKPOINT_ISSEL_ANY, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_float_get_array(), and MaskLayer::visibility_flag.
Referenced by add_vertex_invoke(), and MASK_OT_add_vertex().
|
static |
Definition at line 292 of file mask_add.c.
References MaskLayer::act_point, BKE_mask_calc_tangent_polyline(), BKE_mask_layer_shape_changed_add(), BKE_mask_layer_shape_spline_to_index(), BLI_assert, C, RenderData::cfra, CTX_data_scene(), dot_v2v2(), ED_mask_select_toggle_all(), finSelectedSplinePoint(), ListBase::first, MaskSpline::flag, mask(), mask_spline_add_point_at_index(), MASK_SPLINE_CYCLIC, MASKPOINT_DESEL_ALL, NA_EDITED, NC_MASK, NULL, point, point_index, MaskSpline::points, print_v2(), Scene::r, scene, SEL_DESELECT, setup_vertex_point(), MaskLayer::splines_shapes, sub_v2_v2v2(), MaskSpline::tot_point, and WM_event_add_notifier().
Referenced by add_vertex_exec().
|
static |
Definition at line 489 of file mask_add.c.
References add_vertex_handle_cyclic_at_point(), C, mask(), OPERATOR_PASS_THROUGH, MaskSpline::points, and MaskSpline::tot_point.
Referenced by add_vertex_exec().
|
static |
Definition at line 449 of file mask_add.c.
References MaskSplinePoint::bezt, BKE_mask_calc_handle_point_auto(), C, DEG_id_tag_update(), MaskSpline::flag, ID_RECALC_GEOMETRY, len_squared_v2v2(), mask(), mask_point_make_pixel_space(), MASK_SPLINE_CYCLIC, NA_EDITED, NC_MASK, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, BezTriple::vec, and WM_event_add_notifier().
Referenced by add_vertex_handle_cyclic().
|
static |
Definition at line 562 of file mask_add.c.
References add_vertex_exec(), blender::compositor::area(), C, CTX_wm_area(), CTX_wm_region(), ED_mask_mouse_pos(), wmEvent::mval, wmOperator::ptr, and RNA_float_set_array().
Referenced by MASK_OT_add_vertex().
|
static |
Definition at line 394 of file mask_add.c.
References MaskLayer::act_point, MaskLayer::act_spline, BKE_mask_layer_new(), BKE_mask_layer_shape_changed_add(), BKE_mask_layer_shape_spline_to_index(), BKE_mask_spline_add(), C, RenderData::cfra, CTX_data_scene(), ED_mask_select_toggle_all(), mask(), NA_EDITED, NC_MASK, NULL, point_index, MaskSpline::points, Scene::r, scene, SEL_DESELECT, setup_vertex_point(), MaskSpline::tot_point, and WM_event_add_notifier().
Referenced by add_vertex_exec().
Definition at line 238 of file mask_add.c.
References MaskLayer::act_point, MaskLayer::act_spline, BKE_mask_layer_shape_changed_add(), BKE_mask_layer_shape_spline_to_index(), C, RenderData::cfra, CTX_data_scene(), ED_mask_find_nearest_diff_point(), ED_mask_select_toggle_all(), mask(), mask_spline_add_point_at_index(), NA_EDITED, NC_MASK, NULL, point, point_index, MaskSpline::points, Scene::r, scene, SEL_DESELECT, setup_vertex_point(), threshold, and WM_event_add_notifier().
Referenced by add_vertex_exec().
|
static |
Definition at line 733 of file mask_add.c.
References MaskLayer::act_point, MaskLayer::act_spline, blender::compositor::area(), MaskSplinePoint::bezt, BKE_mask_coord_from_frame(), BKE_mask_layer_shape_changed_add(), BKE_mask_layer_shape_spline_to_index(), BKE_mask_parent_init(), BKE_mask_point_select_set(), BKE_mask_spline_add(), C, CTX_data_edit_mask(), CTX_wm_area(), DEG_id_tag_update(), ED_mask_get_size(), ED_mask_layer_ensure(), ED_mask_select_toggle_all(), ED_mask_view_lock_state_restore_no_jump(), ED_mask_view_lock_state_store(), ListBase::first, MaskSpline::flag, float(), height, ID_RECALC_GEOMETRY, mask(), MASK_SPLINE_CYCLIC, max_ii(), MEM_freeN, MEM_recallocN, NA_ADDED, NA_EDITED, NC_MASK, NULL, OPERATOR_FINISHED, MaskSplinePoint::parent, MaskSpline::points, points_to_bezier(), wmOperator::ptr, RNA_float_get(), RNA_float_get_array(), SEL_DESELECT, SELECT, size(), spline_index, MaskLayer::splines_shapes, MaskSpline::tot_point, width, and WM_event_add_notifier().
Referenced by primitive_circle_add_exec(), and primitive_square_add_exec().
|
static |
Definition at line 823 of file mask_add.c.
References NULL, ot, RNA_def_float(), RNA_def_float_vector(), and wmOperatorType::srna.
Referenced by MASK_OT_primitive_circle_add(), and MASK_OT_primitive_square_add().
|
static |
Definition at line 171 of file mask_add.c.
References MaskLayer::act_point, MaskLayer::act_spline, ELEM, ListBase::first, MASKPOINT_ISSEL_ANY, MaskSpline::next, NULL, point, MaskSpline::points, MaskLayer::splines, and MaskSpline::tot_point.
Referenced by add_vertex_extrude().
void MASK_OT_add_feather_vertex | ( | wmOperatorType * | ot | ) |
Definition at line 672 of file mask_add.c.
References add_feather_vertex_exec(), add_feather_vertex_invoke(), wmOperatorType::description, ED_maskedit_mask_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_vector(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mask().
void MASK_OT_add_vertex | ( | wmOperatorType * | ot | ) |
Definition at line 576 of file mask_add.c.
References add_vertex_exec(), add_vertex_invoke(), wmOperatorType::description, ED_maskedit_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_vector(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mask().
void MASK_OT_primitive_circle_add | ( | wmOperatorType * | ot | ) |
Definition at line 855 of file mask_add.c.
References define_primitive_add_properties(), wmOperatorType::description, ED_maskedit_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, primitive_add_invoke(), and primitive_circle_add_exec().
Referenced by ED_operatortypes_mask().
void MASK_OT_primitive_square_add | ( | wmOperatorType * | ot | ) |
Definition at line 890 of file mask_add.c.
References define_primitive_add_properties(), wmOperatorType::description, ED_maskedit_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, primitive_add_invoke(), and primitive_square_add_exec().
Referenced by ED_operatortypes_mask().
|
static |
Definition at line 435 of file mask_add.c.
References blender::compositor::area(), C, CTX_wm_area(), CTX_wm_region(), and ED_mask_pixelspace_factor().
Referenced by add_vertex_handle_cyclic_at_point().
|
static |
Definition at line 221 of file mask_add.c.
References MEM_callocN, MEM_freeN, point_index, MaskSpline::points, and MaskSpline::tot_point.
Referenced by add_vertex_extrude(), and add_vertex_subdivide().
|
static |
Definition at line 706 of file mask_add.c.
References add_v2_v2(), BKE_nurb_handle_calc(), copy_v2_v2(), BezTriple::h1, BezTriple::h2, MEM_calloc_arrayN, and mul_v2_fl().
Referenced by create_primitive_from_points().
|
static |
Definition at line 806 of file mask_add.c.
References blender::compositor::area(), C, CTX_wm_area(), ED_mask_cursor_location_get(), ED_mask_get_size(), wmOperatorType::exec, height, wmOperator::ptr, RNA_float_set_array(), wmOperator::type, and width.
Referenced by MASK_OT_primitive_circle_add(), and MASK_OT_primitive_square_add().
|
static |
Definition at line 845 of file mask_add.c.
References C, create_primitive_from_points(), HD_AUTO, and OPERATOR_FINISHED.
Referenced by MASK_OT_primitive_circle_add().
|
static |
Definition at line 880 of file mask_add.c.
References C, create_primitive_from_points(), HD_VECT, and OPERATOR_FINISHED.
Referenced by MASK_OT_primitive_square_add().
|
static |
Definition at line 38 of file mask_add.c.
References MaskSplinePoint::bezt, BKE_mask_calc_handle_adjacent_interp(), BKE_mask_parent_init(), BKE_mask_point_parent_matrix_get(), copy_v2_v2(), copy_v3_v3(), ED_mask_select_flush_all(), MaskSpline::flag, BezTriple::h1, BezTriple::h2, HD_ALIGN, HD_VECT, MaskParent::id, invert_m3(), len_squared_v2v2(), mask(), MASK_SPLINE_CYCLIC, MASKPOINT_SEL_ALL, MAX2, mod_i(), mul_m3_v2(), NULL, MaskSplinePoint::parent, point_index, MaskSpline::points, MaskSpline::tot_point, and BezTriple::vec.
Referenced by add_vertex_extrude(), add_vertex_new(), and add_vertex_subdivide().