Blender
V3.3
|
#include "ED_clip.h"
Go to the source code of this file.
Classes | |
struct | MaskViewLockState |
Typedefs | |
typedef struct MaskViewLockState | MaskViewLockState |
typedef struct MaskViewLockState MaskViewLockState |
bool ED_mask_feather_find_nearest | ( | const struct bContext * | C, |
struct Mask * | mask, | ||
const float | normal_co[2], | ||
float | threshold, | ||
struct MaskLayer ** | r_mask_layer, | ||
struct MaskSpline ** | r_spline, | ||
struct MaskSplinePoint ** | r_point, | ||
struct MaskSplinePointUW ** | r_uw, | ||
float * | r_score | ||
) |
Referenced by select_exec(), slide_point_customdata(), and slide_spline_curvature_check().
bool ED_mask_find_nearest_diff_point | ( | const struct bContext * | C, |
struct Mask * | mask, | ||
const float | normal_co[2], | ||
int | threshold, | ||
bool | feather, | ||
float | tangent[2], | ||
bool | use_deform, | ||
bool | use_project, | ||
struct MaskLayer ** | r_mask_layer, | ||
struct MaskSpline ** | r_spline, | ||
struct MaskSplinePoint ** | r_point, | ||
float * | r_u, | ||
float * | r_score | ||
) |
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 95 of file mask_select.c.
References ED_mask_spline_select_set(), LISTBASE_FOREACH, MASK_HIDE_SELECT, MaskLayer::splines, and MaskLayer::visibility_flag.
Referenced by ED_mask_select_toggle_all(), mask_hide_view_clear_exec(), and mask_hide_view_set_exec().
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().
struct MaskSplinePoint* ED_mask_point_find_nearest | ( | const struct bContext * | C, |
struct Mask * | mask, | ||
const float | normal_co[2], | ||
float | threshold, | ||
struct MaskLayer ** | r_mask_layer, | ||
struct MaskSpline ** | r_spline, | ||
eMaskWhichHandle * | r_which_handle, | ||
float * | r_score | ||
) |
Definition at line 145 of file mask_select.c.
References MaskSplinePointUW::flag, LISTBASE_FOREACH, mask(), MASK_HIDE_VIEW, MASKPOINT_ISSEL_ANY, SELECT, MaskSplinePoint::tot_uw, and MaskSplinePoint::uw.
Referenced by box_select_exec(), circle_select_exec(), delete_exec(), do_lasso_select_mask(), ED_mask_deselect_all(), mask_select_linked_exec(), mask_select_linked_pick_invoke(), select_all_exec(), select_exec(), select_sliding_point(), setup_vertex_point(), and slide_spline_curvature_customdata().
Definition at line 108 of file mask_select.c.
References BKE_mask_point_select_set(), ED_mask_layer_select_set(), ED_mask_select_check(), LISTBASE_FOREACH, mask(), MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASKPOINT_ISSEL_ANY, point, SEL_DESELECT, SEL_INVERT, SEL_SELECT, and SEL_TOGGLE.
Referenced by add_vertex_extrude(), add_vertex_new(), add_vertex_subdivide(), box_select_exec(), circle_select_exec(), create_primitive_from_points(), do_lasso_select_mask(), ED_mask_deselect_all(), select_all_exec(), select_exec(), select_sliding_point(), and slide_spline_curvature_customdata().
bool ED_mask_spline_select_check | ( | const struct MaskSpline * | spline | ) |
Referenced by cyclic_toggle_exec(), and mask_switch_direction_exec().
void ED_mask_spline_select_set | ( | struct MaskSpline * | spline, |
bool | do_select | ||
) |
Definition at line 79 of file mask_select.c.
References BKE_mask_point_select_set(), MaskSpline::flag, point, MaskSpline::points, SELECT, and MaskSpline::tot_point.
Referenced by ED_mask_layer_select_set(), mask_select_linked_exec(), and mask_select_linked_pick_invoke().
void ED_mask_view_lock_state_restore_no_jump | ( | const struct bContext * | C, |
const MaskViewLockState * | state | ||
) |
void ED_mask_view_lock_state_store | ( | const struct bContext * | C, |
MaskViewLockState * | state | ||
) |
void MASK_OT_add_feather_vertex | ( | struct 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 | ( | struct 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_copy_splines | ( | struct 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 | ( | struct 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 | ( | struct 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 | ( | struct 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 | ( | struct 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 | ( | struct 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 | ( | struct 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 | ( | struct 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 | ( | struct 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 | ( | struct 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 | ( | struct 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 | ( | struct 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 | ( | struct 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_parent_clear | ( | struct wmOperatorType * | ot | ) |
Definition at line 55 of file mask_relationships.c.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_parent_clear_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
void MASK_OT_parent_set | ( | struct wmOperatorType * | ot | ) |
based on OBJECT_OT_parent_set
Definition at line 156 of file mask_relationships.c.
References wmOperatorType::description, ED_space_clip_maskedit_mask_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_parent_set_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
void MASK_OT_paste_splines | ( | struct 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_primitive_circle_add | ( | struct 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 | ( | struct 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().
void MASK_OT_select | ( | struct wmOperatorType * | ot | ) |
Definition at line 389 of file mask_select.c.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), ED_select_pick_get_name(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::get_name, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_vector(), select_exec(), select_invoke(), wmOperatorType::srna, and WM_operator_properties_mouse_select().
Referenced by ED_operatortypes_mask().
void MASK_OT_select_all | ( | struct wmOperatorType * | ot | ) |
Definition at line 214 of file mask_select.c.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, select_all_exec(), and WM_operator_properties_select_all().
Referenced by ED_operatortypes_mask().
void MASK_OT_select_box | ( | struct wmOperatorType * | ot | ) |
Definition at line 494 of file mask_select.c.
References box_select_exec(), wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_gesture_box_invoke(), WM_gesture_box_modal(), WM_operator_properties_gesture_box(), and WM_operator_properties_select_operation_simple().
Referenced by ED_operatortypes_mask().
void MASK_OT_select_circle | ( | struct wmOperatorType * | ot | ) |
Definition at line 735 of file mask_select.c.
References circle_select_exec(), wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), ED_select_circle_get_name(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::get_name, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_gesture_circle_invoke(), WM_gesture_circle_modal(), WM_operator_properties_gesture_circle(), and WM_operator_properties_select_operation_simple().
Referenced by ED_operatortypes_mask().
void MASK_OT_select_lasso | ( | struct wmOperatorType * | ot | ) |
Definition at line 617 of file mask_select.c.
References wmOperatorType::cancel, clip_lasso_select_exec(), wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_gesture_lasso_cancel(), WM_gesture_lasso_invoke(), WM_gesture_lasso_modal(), WM_operator_properties_gesture_lasso(), and WM_operator_properties_select_operation_simple().
Referenced by ED_operatortypes_mask().
void MASK_OT_select_less | ( | struct wmOperatorType * | ot | ) |
Definition at line 975 of file mask_select.c.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_select_less_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
void MASK_OT_select_linked | ( | struct wmOperatorType * | ot | ) |
Definition at line 856 of file mask_select.c.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_select_linked_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
void MASK_OT_select_linked_pick | ( | struct wmOperatorType * | ot | ) |
Definition at line 801 of file mask_select.c.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, mask_select_linked_pick_invoke(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mask().
void MASK_OT_select_more | ( | struct wmOperatorType * | ot | ) |
Definition at line 955 of file mask_select.c.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_select_more_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
void MASK_OT_shape_key_clear | ( | struct wmOperatorType * | ot | ) |
Definition at line 107 of file mask_shapekey.c.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_shape_key_clear_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
void MASK_OT_shape_key_feather_reset | ( | struct wmOperatorType * | ot | ) |
Definition at line 191 of file mask_shapekey.c.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_shape_key_feather_reset_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
void MASK_OT_shape_key_insert | ( | struct wmOperatorType * | ot | ) |
Definition at line 61 of file mask_shapekey.c.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_shape_key_insert_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mask().
void MASK_OT_shape_key_rekey | ( | struct wmOperatorType * | ot | ) |
Definition at line 349 of file mask_shapekey.c.
References wmOperatorType::description, ED_maskedit_mask_visible_splines_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_shape_key_rekey_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mask().
void MASK_OT_slide_point | ( | struct 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 | ( | struct 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 | ( | struct 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().