|
Blender V4.3
|
#include "BKE_context.hh"#include "BKE_mask.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_sequencer.hh"#include "RNA_access.hh"#include "mask_intern.hh"Go to the source code of this file.
Functions | |
Poll Functions | |
| bool | ED_maskedit_poll (bContext *C) |
| bool | ED_maskedit_visible_splines_poll (bContext *C) |
| bool | ED_maskedit_mask_poll (bContext *C) |
| bool | ED_maskedit_mask_visible_splines_poll (bContext *C) |
Registration | |
| void | ED_operatortypes_mask () |
| void | ED_keymap_mask (wmKeyConfig *keyconf) |
| void | ED_operatormacros_mask () |
Lock-to-selection viewport preservation | |
| void | ED_mask_view_lock_state_store (const bContext *C, MaskViewLockState *state) |
| void | ED_mask_view_lock_state_restore_no_jump (const bContext *C, const MaskViewLockState *state) |
| void ED_keymap_mask | ( | wmKeyConfig * | keyconf | ) |
Definition at line 164 of file mask_edit.cc.
References ED_maskedit_poll(), wmKeyMap::poll, RGN_TYPE_WINDOW, SPACE_EMPTY, and WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
| void ED_mask_view_lock_state_restore_no_jump | ( | const bContext * | C, |
| const MaskViewLockState * | state ) |
Definition at line 217 of file mask_edit.cc.
References CTX_data_ensure_evaluated_depsgraph(), CTX_wm_space_clip(), depsgraph, ED_clip_view_lock_state_restore_no_jump(), SpaceClip::flag, SC_LOCK_SELECTION, and state.
Referenced by add_vertex_exec(), create_primitive_from_points(), select_all_exec(), select_exec(), slide_point_customdata(), and slide_spline_curvature_customdata().
| void ED_mask_view_lock_state_store | ( | const bContext * | C, |
| MaskViewLockState * | state ) |
Definition at line 209 of file mask_edit.cc.
References CTX_wm_space_clip(), ED_clip_view_lock_state_store(), and state.
Referenced by add_vertex_exec(), create_primitive_from_points(), select_all_exec(), select_exec(), slide_point_customdata(), and slide_spline_curvature_customdata().
| bool ED_maskedit_mask_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
Definition at line 62 of file mask_edit.cc.
References CTX_wm_area(), ED_space_clip_maskedit_mask_poll(), ED_space_image_maskedit_mask_poll(), ED_space_sequencer_maskedit_mask_poll(), SPACE_CLIP, SPACE_IMAGE, and SPACE_SEQ.
Referenced by mask_layer_move_poll(), MASK_OT_add_feather_vertex(), MASK_OT_copy_splines(), MASK_OT_hide_view_clear(), MASK_OT_hide_view_set(), MASK_OT_layer_new(), and MASK_OT_layer_remove().
| bool ED_maskedit_mask_visible_splines_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
Definition at line 78 of file mask_edit.cc.
References CTX_wm_area(), ED_space_clip_maskedit_mask_visible_splines_poll(), ED_space_image_maskedit_mask_visible_splines_poll(), ED_space_sequencer_maskedit_mask_poll(), SPACE_CLIP, SPACE_IMAGE, and SPACE_SEQ.
Referenced by createTransMaskingData(), MASK_OT_cyclic_toggle(), MASK_OT_delete(), MASK_OT_duplicate(), MASK_OT_feather_weight_clear(), MASK_OT_handle_type_set(), MASK_OT_normals_make_consistent(), MASK_OT_parent_clear(), MASK_OT_select(), MASK_OT_select_all(), MASK_OT_select_box(), MASK_OT_select_circle(), MASK_OT_select_lasso(), MASK_OT_select_less(), MASK_OT_select_linked(), MASK_OT_select_linked_pick(), MASK_OT_select_more(), MASK_OT_shape_key_clear(), MASK_OT_shape_key_feather_reset(), MASK_OT_shape_key_insert(), MASK_OT_shape_key_rekey(), MASK_OT_slide_point(), MASK_OT_slide_spline_curvature(), MASK_OT_switch_direction(), and paste_splines_poll().
| bool ED_maskedit_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
It is not required to have mask opened for editing.
Definition at line 30 of file mask_edit.cc.
References CTX_wm_area(), ED_space_clip_maskedit_poll(), ED_space_image_maskedit_poll(), ED_space_sequencer_maskedit_poll(), SPACE_CLIP, SPACE_IMAGE, and SPACE_SEQ.
Referenced by ED_keymap_mask(), image_view_selected_poll(), and MASK_OT_new().
| bool ED_maskedit_visible_splines_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
It is not required to have mask opened for editing.
Definition at line 46 of file mask_edit.cc.
References CTX_wm_area(), ED_space_clip_maskedit_visible_splines_poll(), ED_space_image_maskedit_visible_splines_poll(), ED_space_sequencer_maskedit_poll(), SPACE_CLIP, SPACE_IMAGE, and SPACE_SEQ.
Referenced by MASK_OT_add_vertex(), MASK_OT_primitive_circle_add(), and MASK_OT_primitive_square_add().
| void ED_operatormacros_mask | ( | ) |
Definition at line 170 of file mask_edit.cc.
References wmOperatorType::description, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorTypeMacro::ptr, RNA_boolean_set(), WM_operatortype_append_macro(), and WM_operatortype_macro_define().
Referenced by ED_spacemacros_init().
| void ED_operatortypes_mask | ( | ) |
Definition at line 100 of file mask_edit.cc.
References MASK_OT_add_feather_vertex(), MASK_OT_add_vertex(), MASK_OT_copy_splines(), MASK_OT_cyclic_toggle(), MASK_OT_delete(), MASK_OT_duplicate(), MASK_OT_feather_weight_clear(), MASK_OT_handle_type_set(), MASK_OT_hide_view_clear(), MASK_OT_hide_view_set(), MASK_OT_layer_move(), MASK_OT_layer_new(), MASK_OT_layer_remove(), MASK_OT_new(), MASK_OT_normals_make_consistent(), MASK_OT_parent_clear(), MASK_OT_parent_set(), MASK_OT_paste_splines(), MASK_OT_primitive_circle_add(), MASK_OT_primitive_square_add(), MASK_OT_select(), MASK_OT_select_all(), MASK_OT_select_box(), MASK_OT_select_circle(), MASK_OT_select_lasso(), MASK_OT_select_less(), MASK_OT_select_linked(), MASK_OT_select_linked_pick(), MASK_OT_select_more(), MASK_OT_shape_key_clear(), MASK_OT_shape_key_feather_reset(), MASK_OT_shape_key_insert(), MASK_OT_shape_key_rekey(), MASK_OT_slide_point(), MASK_OT_slide_spline_curvature(), MASK_OT_switch_direction(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().