|
Blender V5.0
|
#include <algorithm>#include "MEM_guardedalloc.h"#include "BKE_context.hh"#include "BKE_curve.hh"#include "BKE_mask.h"#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "DEG_depsgraph.hh"#include "DNA_mask_types.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "WM_api.hh"#include "WM_types.hh"#include "ED_mask.hh"#include "ED_select_utils.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "mask_intern.hh"Go to the source code of this file.
|
static |
Definition at line 618 of file mask_add.cc.
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, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get_array(), w(), and WM_event_add_notifier().
Referenced by add_feather_vertex_invoke(), and MASK_OT_add_feather_vertex().
|
static |
Definition at line 667 of file mask_add.cc.
References add_feather_vertex_exec(), 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 517 of file mask_add.cc.
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, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_float_get_array(), and MaskLayer::visibility_flag.
Referenced by add_vertex_invoke().
|
static |
Definition at line 297 of file mask_add.cc.
References MaskLayer::act_point, MaskSplinePoint::bezt, 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, MaskSpline::points, print_v2(), printf, Scene::r, SEL_DESELECT, setup_vertex_point(), MaskLayer::splines_shapes, sub_v2_v2v2(), MaskSpline::tot_point, BezTriple::vec, and WM_event_add_notifier().
Referenced by add_vertex_exec().
|
static |
Definition at line 495 of file mask_add.cc.
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 455 of file mask_add.cc.
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 570 of file mask_add.cc.
References add_vertex_exec(), C, CTX_wm_area(), CTX_wm_region(), ED_mask_mouse_pos(), wmEvent::mval, wmOperator::ptr, and RNA_float_set_array().
|
static |
Definition at line 400 of file mask_add.cc.
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, MaskSpline::points, Scene::r, SEL_DESELECT, setup_vertex_point(), MaskSpline::tot_point, and WM_event_add_notifier().
Referenced by add_vertex_exec().
Definition at line 242 of file mask_add.cc.
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, MaskSpline::points, Scene::r, SEL_DESELECT, setup_vertex_point(), and WM_event_add_notifier().
Referenced by add_vertex_exec().
|
static |
Definition at line 744 of file mask_add.cc.
References MaskLayer::act_point, MaskLayer::act_spline, 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, i, ID_RECALC_GEOMETRY, mask(), MASK_SPLINE_CYCLIC, max_ii(), MEM_freeN(), MEM_recallocN, NA_ADDED, NA_EDITED, NC_MASK, OPERATOR_FINISHED, MaskSplinePoint::parent, MaskSpline::points, points_to_bezier(), wmOperator::ptr, RNA_float_get(), RNA_float_get_array(), SEL_DESELECT, SELECT, size(), MaskLayer::splines_shapes, MaskSpline::tot_point, and WM_event_add_notifier().
Referenced by primitive_circle_add_exec(), and primitive_square_add_exec().
|
static |
Definition at line 837 of file mask_add.cc.
References FLT_MAX, ot, RNA_def_float(), and RNA_def_float_vector().
Referenced by MASK_OT_primitive_circle_add(), and MASK_OT_primitive_square_add().
|
static |
Definition at line 174 of file mask_add.cc.
References MaskLayer::act_point, MaskLayer::act_spline, ELEM, ListBase::first, i, MASKPOINT_ISSEL_ANY, MaskSpline::next, MaskSpline::points, MaskLayer::splines, and MaskSpline::tot_point.
Referenced by add_vertex_extrude().
| void MASK_OT_add_feather_vertex | ( | wmOperatorType * | ot | ) |
Definition at line 683 of file mask_add.cc.
References add_feather_vertex_exec(), add_feather_vertex_invoke(), ED_maskedit_mask_poll(), FLT_MAX, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_float_vector().
Referenced by ED_operatortypes_mask().
| void MASK_OT_add_vertex | ( | wmOperatorType * | ot | ) |
Definition at line 584 of file mask_add.cc.
References add_vertex_exec(), add_vertex_invoke(), ED_maskedit_visible_splines_poll(), FLT_MAX, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_float_vector().
Referenced by ED_operatortypes_mask().
| void MASK_OT_primitive_circle_add | ( | wmOperatorType * | ot | ) |
Definition at line 869 of file mask_add.cc.
References define_primitive_add_properties(), ED_maskedit_visible_splines_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, primitive_add_invoke(), and primitive_circle_add_exec().
Referenced by ED_operatortypes_mask().
| void MASK_OT_primitive_square_add | ( | wmOperatorType * | ot | ) |
Definition at line 904 of file mask_add.cc.
References define_primitive_add_properties(), ED_maskedit_visible_splines_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, primitive_add_invoke(), and primitive_square_add_exec().
Referenced by ED_operatortypes_mask().
|
static |
Definition at line 441 of file mask_add.cc.
References C, CTX_wm_area(), CTX_wm_region(), and ED_mask_pixelspace_factor().
Referenced by add_vertex_handle_cyclic_at_point().
|
static |
Definition at line 225 of file mask_add.cc.
References MEM_calloc_arrayN(), MEM_freeN(), MaskSpline::points, and MaskSpline::tot_point.
Referenced by add_vertex_extrude(), and add_vertex_subdivide().
|
static |
Definition at line 717 of file mask_add.cc.
References add_v2_v2(), BKE_nurb_handle_calc(), copy_v2_v2(), BezTriple::h1, BezTriple::h2, i, MEM_calloc_arrayN(), and mul_v2_fl().
Referenced by create_primitive_from_points().
|
static |
Definition at line 818 of file mask_add.cc.
References C, CTX_wm_area(), ED_mask_cursor_location_get(), ED_mask_get_size(), wmOperatorType::exec, wmOperator::ptr, RNA_float_set_array(), and wmOperator::type.
Referenced by MASK_OT_primitive_circle_add(), and MASK_OT_primitive_square_add().
|
static |
Definition at line 859 of file mask_add.cc.
References ARRAY_SIZE, C, create_primitive_from_points(), HD_AUTO, and OPERATOR_FINISHED.
Referenced by MASK_OT_primitive_circle_add().
|
static |
Definition at line 894 of file mask_add.cc.
References ARRAY_SIZE, C, create_primitive_from_points(), HD_VECT, and OPERATOR_FINISHED.
Referenced by MASK_OT_primitive_square_add().
|
static |
Definition at line 41 of file mask_add.cc.
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, i, MaskParent::id, invert_m3(), len_squared_v2v2(), mask(), MASK_SPLINE_CYCLIC, MASKPOINT_SEL_ALL, mod_i(), mul_m3_v2(), MaskSplinePoint::parent, MaskSpline::points, MaskSpline::tot_point, and BezTriple::vec.
Referenced by add_vertex_extrude(), add_vertex_new(), and add_vertex_subdivide().