Blender
V3.3
|
#include "DNA_mask_types.h"
Go to the source code of this file.
void ED_keymap_mask | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 163 of file mask_edit.c.
References ED_maskedit_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
Definition at line 813 of file mask_query.c.
References blender::compositor::area(), BLI_assert, copy_v2_v2(), SpaceImage::cursor, SpaceClip::cursor, SPACE_CLIP, SPACE_IMAGE, SPACE_SEQ, and zero_v2().
Referenced by primitive_add_invoke().
void ED_mask_draw_frames | ( | struct Mask * | mask, |
struct ARegion * | region, | ||
int | cfra, | ||
int | sfra, | ||
int | efra | ||
) |
Definition at line 773 of file mask_draw.c.
References BKE_mask_layer_active(), BLI_listbase_count(), ED_region_visible_rect(), ListBase::first, float(), GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_PRIM_LINES, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), height, immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4ub(), immVertex2i(), immVertexFormat(), mask(), NULL, pos, MaskLayer::splines_shapes, UI_DPI_FAC, ARegion::winx, x, and rcti::ymin.
Referenced by draw_image_cache(), and draw_movieclip_cache().
void ED_mask_draw_region | ( | struct Depsgraph * | depsgraph, |
struct Mask * | mask, | ||
struct 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 struct bContext * | C | ||
) |
Sets up the opengl context. width, height are to match the values from ED_mask_get_size().
Referenced by clip_main_region_draw(), and image_main_region_draw().
void ED_mask_get_aspect | ( | struct ScrArea * | area, |
struct ARegion * | region, | ||
float * | aspx, | ||
float * | aspy | ||
) |
Referenced by createTransMaskingData(), and flushTransMasking().
Definition at line 674 of file mask_query.c.
References blender::compositor::area(), BLI_assert, ED_space_clip_get_size(), ED_space_image_get_size(), height, SPACE_CLIP, SPACE_IMAGE, SPACE_SEQ, and width.
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 371 of file mask_shapekey.c.
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 379 of file mask_shapekey.c.
References ED_mask_layer_shape_auto_key(), LISTBASE_FOREACH, and mask().
Definition at line 391 of file mask_shapekey.c.
References ED_mask_layer_select_check(), ED_mask_layer_shape_auto_key(), LISTBASE_FOREACH, and mask().
Referenced by special_aftertrans_update__mask().
void ED_mask_mouse_pos | ( | struct ScrArea * | area, |
struct ARegion * | region, | ||
const int | mval[2], | ||
float | co[2] | ||
) |
Takes event->mval
.
Definition at line 478 of file mask_query.c.
References blender::compositor::area(), 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, ARegion::v2d, 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 | ( | struct ScrArea * | area, |
struct ARegion * | region, | ||
float * | scalex, | ||
float * | scaley | ||
) |
Definition at line 770 of file mask_query.c.
References blender::compositor::area(), BLI_assert, ED_space_clip_get_aspect(), ED_space_image_get_aspect(), SPACE_CLIP, SPACE_IMAGE, SPACE_SEQ, UI_view2d_scale_get(), and ARegion::v2d.
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 | ( | struct ScrArea * | area, |
struct ARegion * | region, | ||
float | x, | ||
float | y, | ||
float * | xr, | ||
float * | yr | ||
) |
x/y | input, mval space. |
xr/yr | output, mask point space. |
Definition at line 511 of file mask_query.c.
References blender::compositor::area(), 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, x, y, and zero_v2().
Referenced by box_select_exec(), and circle_select_exec().
void ED_mask_point_pos__reverse | ( | struct ScrArea * | area, |
struct ARegion * | region, | ||
float | x, | ||
float | y, | ||
float * | xr, | ||
float * | yr | ||
) |
Definition at line 548 of file mask_query.c.
References blender::compositor::area(), 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 161 of file mask_editaction.c.
References BKE_mask_layer_shape_find_frame(), mask_layer_shape_select(), and NULL.
Referenced by actkeys_mselect_column(), actkeys_mselect_single(), and columnselect_action_keys().
Set all/none/invert select (like above, but with SELECT_* modes).
Definition at line 134 of file mask_editaction.c.
References ListBase::first, mask_layer_shape_select(), MaskLayerShape::next, NULL, and MaskLayer::splines_shapes.
Referenced by actkeys_mselect_channel_only(), and ED_masklayer_frame_select_set().
bool ED_mask_selected_minmax | ( | const struct bContext * | C, |
float | min[2], | ||
float | max[2], | ||
bool | handles_as_control_point | ||
) |
Referenced by image_view_selected_exec(), and selected_boundbox().
Definition at line 708 of file mask_query.c.
References blender::compositor::area(), BLI_assert, ED_space_clip_get_zoom(), ED_space_image_get_zoom(), SPACE_CLIP, SPACE_IMAGE, and SPACE_SEQ.
Referenced by circle_select_exec().
Definition at line 61 of file mask_edit.c.
References blender::compositor::area(), C, 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().
Definition at line 77 of file mask_edit.c.
References blender::compositor::area(), C, 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().
Definition at line 29 of file mask_edit.c.
References blender::compositor::area(), C, 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().
Definition at line 45 of file mask_edit.c.
References blender::compositor::area(), C, 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().
Check if one of the frames in this layer is selected.
Referenced by deselect_action_keys().
Set all/none/invert select.
Definition at line 150 of file mask_editaction.c.
References ED_mask_select_frames(), and NULL.
Referenced by deselect_action_keys().
Delete selected frames.
Definition at line 232 of file mask_editaction.c.
References BKE_mask_layer_shape_unlink(), ListBase::first, MaskLayerShape::flag, MASK_SHAPE_SELECT, MaskLayerShape::next, NULL, and MaskLayer::splines_shapes.
Referenced by delete_action_keys().
Duplicate selected frames from given mask-layer.
Definition at line 256 of file mask_editaction.c.
References BKE_mask_layer_shape_duplicate(), BLI_insertlinkafter(), ListBase::first, MaskLayerShape::flag, MASK_SHAPE_SELECT, MaskLayerShape::next, NULL, and MaskLayer::splines_shapes.
Referenced by duplicate_action_keys().
bool ED_masklayer_frames_looper | ( | struct MaskLayer * | mask_layer, |
struct Scene * | scene, | ||
bool(*)(struct MaskLayerShape *, struct Scene *) | mask_layer_shape_cb | ||
) |
Loops over the mask-frames for a mask-layer, and applies the given callback.
void ED_masklayer_frames_select_box | ( | struct 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 176 of file mask_editaction.c.
References ListBase::first, MaskLayerShape::frame, IN_RANGE, mask_layer_shape_select(), max, min, MaskLayerShape::next, NULL, and MaskLayer::splines_shapes.
Referenced by actkeys_select_leftright(), box_select_elem(), and markers_selectkeys_between().
void ED_masklayer_frames_select_region | ( | struct KeyframeEditData * | ked, |
struct 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 193 of file mask_editaction.c.
References BEZT_OK_CHANNEL_CIRCLE, BEZT_OK_CHANNEL_LASSO, KeyframeEditData::channel_y, KeyframeEditData::data, ListBase::first, MaskLayerShape::frame, keyframe_region_circle_test(), keyframe_region_lasso_test(), mask_layer_shape_select(), MaskLayerShape::next, NULL, and MaskLayer::splines_shapes.
Referenced by region_select_elem().
Make a listing all the mask-frames in a layer as cfraelems.
Definition at line 66 of file mask_editaction.c.
References BLI_addtail(), CfraElem::cfra, ELEM, ListBase::first, MaskLayerShape::flag, float(), MaskLayerShape::frame, MASK_SHAPE_SELECT, MEM_callocN, MaskLayerShape::next, NULL, CfraElem::sel, and MaskLayer::splines_shapes.
Snap selected frames to ...
Definition at line 321 of file mask_editaction.c.
References ED_masklayer_frames_looper(), scene, 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().
Definition at line 169 of file mask_edit.c.
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().
Definition at line 99 of file mask_edit.c.
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().