Blender  V3.3
Functions
ED_mask.h File Reference
#include "DNA_mask_types.h"

Go to the source code of this file.

Functions

bool ED_maskedit_poll (struct bContext *C)
 
bool ED_maskedit_visible_splines_poll (struct bContext *C)
 
bool ED_maskedit_mask_poll (struct bContext *C)
 
bool ED_maskedit_mask_visible_splines_poll (struct bContext *C)
 
void ED_mask_deselect_all (const struct bContext *C)
 
void ED_operatortypes_mask (void)
 
void ED_keymap_mask (struct wmKeyConfig *keyconf)
 
void ED_operatormacros_mask (void)
 
void ED_mask_get_size (struct ScrArea *area, int *width, int *height)
 
void ED_mask_zoom (struct ScrArea *area, struct ARegion *region, float *zoomx, float *zoomy)
 
void ED_mask_get_aspect (struct ScrArea *area, struct ARegion *region, float *aspx, float *aspy)
 
void ED_mask_pixelspace_factor (struct ScrArea *area, struct ARegion *region, float *scalex, float *scaley)
 
void ED_mask_mouse_pos (struct ScrArea *area, struct ARegion *region, const int mval[2], float co[2])
 
void ED_mask_point_pos (struct ScrArea *area, struct ARegion *region, float x, float y, float *xr, float *yr)
 
void ED_mask_point_pos__reverse (struct ScrArea *area, struct ARegion *region, float x, float y, float *xr, float *yr)
 
void ED_mask_cursor_location_get (struct ScrArea *area, float cursor[2])
 
bool ED_mask_selected_minmax (const struct bContext *C, float min[2], float max[2], bool handles_as_control_point)
 
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)
 
void ED_mask_draw_frames (struct Mask *mask, struct ARegion *region, int cfra, int sfra, int efra)
 
void ED_mask_layer_shape_auto_key (struct MaskLayer *mask_layer, int frame)
 
bool ED_mask_layer_shape_auto_key_all (struct Mask *mask, int frame)
 
bool ED_mask_layer_shape_auto_key_select (struct Mask *mask, int frame)
 
bool ED_masklayer_frames_looper (struct MaskLayer *mask_layer, struct Scene *scene, bool(*mask_layer_shape_cb)(struct MaskLayerShape *, struct Scene *))
 
void ED_masklayer_make_cfra_list (struct MaskLayer *mask_layer, ListBase *elems, bool onlysel)
 
bool ED_masklayer_frame_select_check (const struct MaskLayer *mask_layer)
 
void ED_masklayer_frame_select_set (struct MaskLayer *mask_layer, short mode)
 
void ED_masklayer_frames_select_box (struct MaskLayer *mask_layer, float min, float max, short select_mode)
 
void ED_masklayer_frames_select_region (struct KeyframeEditData *ked, struct MaskLayer *mask_layer, short tool, short select_mode)
 
void ED_mask_select_frames (struct MaskLayer *mask_layer, short select_mode)
 
void ED_mask_select_frame (struct MaskLayer *mask_layer, int selx, short select_mode)
 
bool ED_masklayer_frames_delete (struct MaskLayer *mask_layer)
 
void ED_masklayer_frames_duplicate (struct MaskLayer *mask_layer)
 
void ED_masklayer_snap_frames (struct MaskLayer *mask_layer, struct Scene *scene, short mode)
 

Function Documentation

◆ ED_keymap_mask()

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().

◆ ED_mask_cursor_location_get()

void ED_mask_cursor_location_get ( struct ScrArea area,
float  cursor[2] 
)

◆ ED_mask_deselect_all()

void ED_mask_deselect_all ( const struct bContext C)

◆ ED_mask_draw_frames()

void ED_mask_draw_frames ( struct Mask mask,
struct ARegion region,
int  cfra,
int  sfra,
int  efra 
)

◆ ED_mask_draw_region()

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().

◆ ED_mask_get_aspect()

void ED_mask_get_aspect ( struct ScrArea area,
struct ARegion region,
float aspx,
float aspy 
)

◆ ED_mask_get_size()

void ED_mask_get_size ( struct ScrArea area,
int *  width,
int *  height 
)

◆ ED_mask_layer_shape_auto_key()

void ED_mask_layer_shape_auto_key ( struct MaskLayer mask_layer,
int  frame 
)

◆ ED_mask_layer_shape_auto_key_all()

bool ED_mask_layer_shape_auto_key_all ( struct Mask mask,
int  frame 
)

Definition at line 379 of file mask_shapekey.c.

References ED_mask_layer_shape_auto_key(), LISTBASE_FOREACH, and mask().

◆ ED_mask_layer_shape_auto_key_select()

bool ED_mask_layer_shape_auto_key_select ( struct Mask mask,
int  frame 
)

◆ ED_mask_mouse_pos()

void ED_mask_mouse_pos ( struct ScrArea area,
struct ARegion region,
const int  mval[2],
float  co[2] 
)

◆ ED_mask_pixelspace_factor()

void ED_mask_pixelspace_factor ( struct ScrArea area,
struct ARegion region,
float scalex,
float scaley 
)

◆ ED_mask_point_pos()

void ED_mask_point_pos ( struct ScrArea area,
struct ARegion region,
float  x,
float  y,
float xr,
float yr 
)

◆ ED_mask_point_pos__reverse()

void ED_mask_point_pos__reverse ( struct ScrArea area,
struct ARegion region,
float  x,
float  y,
float xr,
float yr 
)

◆ ED_mask_select_frame()

void ED_mask_select_frame ( struct MaskLayer mask_layer,
int  selx,
short  select_mode 
)

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().

◆ ED_mask_select_frames()

void ED_mask_select_frames ( struct MaskLayer mask_layer,
short  select_mode 
)

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().

◆ ED_mask_selected_minmax()

bool ED_mask_selected_minmax ( const struct bContext C,
float  min[2],
float  max[2],
bool  handles_as_control_point 
)

◆ ED_mask_zoom()

void ED_mask_zoom ( struct ScrArea area,
struct ARegion region,
float zoomx,
float zoomy 
)

◆ ED_maskedit_mask_poll()

bool ED_maskedit_mask_poll ( struct bContext C)

◆ ED_maskedit_mask_visible_splines_poll()

bool ED_maskedit_mask_visible_splines_poll ( struct bContext C)

◆ ED_maskedit_poll()

bool ED_maskedit_poll ( struct bContext C)

◆ ED_maskedit_visible_splines_poll()

bool ED_maskedit_visible_splines_poll ( struct bContext C)

◆ ED_masklayer_frame_select_check()

bool ED_masklayer_frame_select_check ( const struct MaskLayer mask_layer)

Check if one of the frames in this layer is selected.

Referenced by deselect_action_keys().

◆ ED_masklayer_frame_select_set()

void ED_masklayer_frame_select_set ( struct MaskLayer mask_layer,
short  mode 
)

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().

◆ ED_masklayer_frames_delete()

bool ED_masklayer_frames_delete ( struct MaskLayer mask_layer)

◆ ED_masklayer_frames_duplicate()

void ED_masklayer_frames_duplicate ( struct MaskLayer mask_layer)

◆ ED_masklayer_frames_looper()

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.

◆ ED_masklayer_frames_select_box()

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().

◆ ED_masklayer_frames_select_region()

void ED_masklayer_frames_select_region ( struct KeyframeEditData ked,
struct MaskLayer mask_layer,
short  tool,
short  select_mode 
)

◆ ED_masklayer_make_cfra_list()

void ED_masklayer_make_cfra_list ( struct MaskLayer mask_layer,
ListBase elems,
bool  onlysel 
)

◆ ED_masklayer_snap_frames()

void ED_masklayer_snap_frames ( struct MaskLayer mask_layer,
struct Scene scene,
short  mode 
)

◆ ED_operatormacros_mask()

void ED_operatormacros_mask ( void  )

◆ ED_operatortypes_mask()

void ED_operatortypes_mask ( void  )