|
Blender V4.3
|
#include "DNA_mask_types.h"Go to the source code of this file.
| 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().
Definition at line 821 of file mask_query.cc.
References BLI_assert, copy_v2_v2(), SpaceClip::cursor, SpaceImage::cursor, SPACE_CLIP, SPACE_IMAGE, SPACE_SEQ, and zero_v2().
Referenced by primitive_add_invoke().
| void ED_mask_deselect_all | ( | const bContext * | C | ) |
Definition at line 184 of file mask_select.cc.
References CTX_data_edit_mask(), DEG_id_tag_update(), ED_mask_select_flush_all(), ED_mask_select_toggle_all(), ID_RECALC_SELECT, NC_MASK, ND_SELECT, SEL_DESELECT, and WM_event_add_notifier().
Referenced by select_exec().
Definition at line 771 of file mask_draw.cc.
References BKE_mask_layer_active(), BLI_listbase_count(), ED_region_visible_rect(), float, GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_PRIM_LINES, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4ub(), immVertex2i(), immVertexFormat(), LISTBASE_FOREACH, pos, MaskLayer::splines_shapes, UI_SCALE_FAC, and rcti::ymin.
Referenced by draw_image_cache(), and draw_movieclip_cache().
| void ED_mask_draw_region | ( | Depsgraph * | depsgraph, |
| Mask * | mask, | ||
| ARegion * | region, | ||
| char | draw_flag, | ||
| char | draw_type, | ||
| eMaskOverlayMode | overlay_mode, | ||
| float | blend_factor, | ||
| int | width_i, | ||
| int | height_i, | ||
| float | aspx, | ||
| float | aspy, | ||
| bool | do_scale_applied, | ||
| bool | do_draw_cb, | ||
| float | stabmat[4][4], | ||
| const bContext * | C ) |
Sets up the opengl context. width, height are to match the values from ED_mask_get_size().
Definition at line 640 of file mask_draw.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), DEG_get_evaluated_id(), depsgraph, draw_mask_layers(), ED_region_draw_cb_draw(), float, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_matrix_mul, GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_scale_2f(), GPU_matrix_translate_2f(), GPU_R16F, GPU_SHADER_2D_IMAGE_SHUFFLE_COLOR, GPU_shader_get_uniform(), GPU_shader_uniform_float_ex(), Mask::id, immDrawPixelsTexSetup(), immDrawPixelsTexTiled(), MASK_DRAWFLAG_OVERLAY, MASK_DRAWFLAG_SPLINE, MASK_OVERLAY_ALPHACHANNEL, MASK_OVERLAY_COMBINED, mask_rasterize(), max_ff(), MEM_freeN(), REGION_DRAW_POST_VIEW, REGION_DRAW_PRE_VIEW, state, View2D::tot, UI_view2d_view_to_region(), x, rctf::xmin, y, and rctf::ymin.
Referenced by clip_main_region_draw(), and image_main_region_draw().
Definition at line 747 of file mask_query.cc.
References BLI_assert, ED_space_clip_get_aspect(), ED_space_image_get_aspect(), SPACE_CLIP, SPACE_IMAGE, and SPACE_SEQ.
Referenced by createTransMaskingData(), and flushTransMasking().
Definition at line 682 of file mask_query.cc.
References BLI_assert, ED_space_clip_get_size(), ED_space_image_get_size(), SPACE_CLIP, SPACE_IMAGE, and SPACE_SEQ.
Referenced by circle_select_exec(), clip_main_region_draw(), create_primitive_from_points(), ED_mask_feather_find_nearest(), ED_mask_find_nearest_diff_point(), ED_mask_point_find_nearest(), primitive_add_invoke(), slide_point_customdata(), and spline_under_mouse_get().
Definition at line 378 of file mask_shapekey.cc.
References BKE_mask_layer_shape_from_mask(), and BKE_mask_layer_shape_verify_frame().
Referenced by ED_mask_layer_shape_auto_key_all(), ED_mask_layer_shape_auto_key_select(), mask_normals_make_consistent_exec(), mask_switch_direction_exec(), slide_point_modal(), and slide_spline_curvature_modal().
Definition at line 386 of file mask_shapekey.cc.
References ED_mask_layer_shape_auto_key(), and LISTBASE_FOREACH.
Definition at line 398 of file mask_shapekey.cc.
References ED_mask_layer_select_check(), ED_mask_layer_shape_auto_key(), and LISTBASE_FOREACH.
Referenced by special_aftertrans_update__mask().
Takes event->mval.
Definition at line 487 of file mask_query.cc.
References BKE_mask_coord_from_image(), BKE_mask_coord_from_movieclip(), BLI_assert, SpaceClip::clip, ED_clip_mouse_pos(), ED_image_mouse_pos(), SpaceImage::image, SpaceImage::iuser, SPACE_CLIP, SPACE_IMAGE, SPACE_SEQ, UI_view2d_region_to_view(), SpaceClip::user, and zero_v2().
Referenced by add_feather_vertex_invoke(), add_vertex_invoke(), mask_select_linked_pick_invoke(), select_invoke(), slide_point_customdata(), slide_point_modal(), slide_spline_curvature_check(), slide_spline_curvature_customdata(), and slide_spline_curvature_modal().
| void ED_mask_pixelspace_factor | ( | ScrArea * | area, |
| ARegion * | region, | ||
| float * | r_scalex, | ||
| float * | r_scaley ) |
Definition at line 778 of file mask_query.cc.
References BLI_assert, ED_space_clip_get_aspect(), ED_space_image_get_aspect(), SPACE_CLIP, SPACE_IMAGE, SPACE_SEQ, and UI_view2d_scale_get().
Referenced by ED_mask_feather_find_nearest(), ED_mask_find_nearest_diff_point(), ED_mask_point_find_nearest(), and mask_point_make_pixel_space().
| void ED_mask_point_pos | ( | ScrArea * | area, |
| ARegion * | region, | ||
| float | x, | ||
| float | y, | ||
| float * | r_x, | ||
| float * | r_y ) |
| x/y | input, mval space. |
| xr/yr | output, mask point space. |
Definition at line 520 of file mask_query.cc.
References BKE_mask_coord_from_image(), BKE_mask_coord_from_movieclip(), BLI_assert, SpaceClip::clip, ED_clip_point_stable_pos(), ED_image_point_pos(), SpaceImage::image, SpaceImage::iuser, SPACE_CLIP, SPACE_IMAGE, SPACE_SEQ, SpaceClip::user, and zero_v2().
Referenced by box_select_exec(), and circle_select_exec().
| void ED_mask_point_pos__reverse | ( | ScrArea * | area, |
| ARegion * | region, | ||
| float | x, | ||
| float | y, | ||
| float * | r_x, | ||
| float * | r_y ) |
Definition at line 557 of file mask_query.cc.
References BKE_mask_coord_to_image(), BKE_mask_coord_to_movieclip(), BLI_assert, SpaceClip::clip, ED_clip_point_stable_pos__reverse(), ED_image_point_pos__reverse(), SpaceImage::image, SpaceImage::iuser, SPACE_CLIP, SPACE_IMAGE, SPACE_SEQ, SpaceClip::user, x, y, and zero_v2().
Referenced by do_lasso_select_mask().
Select the frame in this layer that occurs on this frame (there should only be one at most).
Definition at line 148 of file mask_editaction.cc.
References BKE_mask_layer_shape_find_frame(), and mask_layer_shape_select().
Referenced by actkeys_mselect_column(), actkeys_mselect_single(), and columnselect_action_keys().
| void ED_mask_select_frames | ( | MaskLayer * | mask_layer, |
| short | select_mode ) |
Set all/none/invert select (like above, but with SELECT_* modes).
Definition at line 124 of file mask_editaction.cc.
References LISTBASE_FOREACH, mask_layer_shape_select(), and MaskLayer::splines_shapes.
Referenced by actkeys_mselect_channel_only(), and ED_masklayer_frame_select_set().
| bool ED_mask_selected_minmax | ( | const bContext * | C, |
| float | min[2], | ||
| float | max[2], | ||
| bool | handles_as_control_point ) |
Definition at line 611 of file mask_query.cc.
References MaskSplinePoint::bezt, BKE_mask_point_handles_mode_get(), BKE_mask_spline_point_array(), CTX_data_depsgraph_pointer(), CTX_data_edit_mask(), DEG_get_evaluated_id(), depsgraph, BezTriple::f1, BezTriple::f2, BezTriple::f3, BezTriple::h1, BezTriple::h2, handle_position_for_minmax(), HD_VECT, INIT_MINMAX2, LISTBASE_FOREACH, MASK_HANDLE_MODE_STICK, MASK_HIDE_SELECT, MASK_HIDE_VIEW, MASK_WHICH_HANDLE_LEFT, MASK_WHICH_HANDLE_RIGHT, MASK_WHICH_HANDLE_STICK, Mask::masklayers, MASKPOINT_ISSEL_ANY, min, minmax_v2v2_v2(), SELECT, and BezTriple::vec.
Referenced by image_view_selected_exec(), and selected_boundbox().
Definition at line 716 of file mask_query.cc.
References BLI_assert, ED_space_clip_get_zoom(), ED_space_image_get_zoom(), SPACE_CLIP, SPACE_IMAGE, and SPACE_SEQ.
Referenced by circle_select_exec().
| 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().
| bool ED_masklayer_frame_select_check | ( | const MaskLayer * | mask_layer | ) |
Check if one of the frames in this layer is selected.
Definition at line 86 of file mask_editaction.cc.
References LISTBASE_FOREACH, MASK_SHAPE_SELECT, and MaskLayer::splines_shapes.
Referenced by deselect_action_keys().
| void ED_masklayer_frame_select_set | ( | MaskLayer * | mask_layer, |
| short | mode ) |
Set all/none/invert select.
Definition at line 137 of file mask_editaction.cc.
References ED_mask_select_frames().
Referenced by deselect_action_keys().
| bool ED_masklayer_frames_delete | ( | MaskLayer * | mask_layer | ) |
Delete selected frames.
Definition at line 213 of file mask_editaction.cc.
References BKE_mask_layer_shape_unlink(), LISTBASE_FOREACH_MUTABLE, MASK_SHAPE_SELECT, and MaskLayer::splines_shapes.
Referenced by delete_action_keys().
| bool ED_masklayer_frames_duplicate | ( | MaskLayer * | mask_layer | ) |
Duplicate selected frames from given mask-layer.
Definition at line 233 of file mask_editaction.cc.
References BKE_mask_layer_shape_duplicate(), BLI_insertlinkafter(), LISTBASE_FOREACH_MUTABLE, MASK_SHAPE_SELECT, and MaskLayer::splines_shapes.
Referenced by duplicate_action_keys().
| bool ED_masklayer_frames_looper | ( | MaskLayer * | mask_layer, |
| Scene * | scene, | ||
| bool(* | mask_layer_shape_cb )(MaskLayerShape *, Scene *) ) |
Loops over the mask-frames for a mask-layer, and applies the given callback.
Definition at line 38 of file mask_editaction.cc.
References LISTBASE_FOREACH, and MaskLayer::splines_shapes.
Referenced by ED_masklayer_snap_frames().
| void ED_masklayer_frames_select_box | ( | MaskLayer * | mask_layer, |
| float | min, | ||
| float | max, | ||
| short | select_mode ) |
Select the frames in this layer that occur within the bounds specified.
Definition at line 163 of file mask_editaction.cc.
References IN_RANGE, LISTBASE_FOREACH, mask_layer_shape_select(), min, and MaskLayer::splines_shapes.
Referenced by actkeys_select_leftright(), box_select_elem(), and markers_selectkeys_between().
| void ED_masklayer_frames_select_region | ( | KeyframeEditData * | ked, |
| MaskLayer * | mask_layer, | ||
| short | tool, | ||
| short | select_mode ) |
Select the frames in this layer that occur within the lasso/circle region specified.
Definition at line 177 of file mask_editaction.cc.
References BEZT_OK_CHANNEL_CIRCLE, BEZT_OK_CHANNEL_LASSO, KeyframeEditData::channel_y, KeyframeEditData::data, keyframe_region_circle_test(), keyframe_region_lasso_test(), LISTBASE_FOREACH, mask_layer_shape_select(), and MaskLayer::splines_shapes.
Referenced by region_select_elem().
Make a listing all the mask-frames in a layer as cfraelems.
Definition at line 62 of file mask_editaction.cc.
References BLI_addtail(), CfraElem::cfra, ELEM, float, LISTBASE_FOREACH, MASK_SHAPE_SELECT, CfraElem::sel, and MaskLayer::splines_shapes.
Snap selected frames to ...
Definition at line 299 of file mask_editaction.cc.
References ED_masklayer_frames_looper(), SNAP_KEYS_CURFRAME, SNAP_KEYS_NEARFRAME, SNAP_KEYS_NEARMARKER, SNAP_KEYS_NEARSEC, snap_mask_layer_cframe(), snap_mask_layer_nearest(), snap_mask_layer_nearestsec(), and snap_mask_layer_nearmarker().
Referenced by snap_action_keys().
| 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().