Blender  V3.3
Functions
mask_editaction.c File Reference
#include <math.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "DNA_mask_types.h"
#include "DNA_scene_types.h"
#include "BKE_fcurve.h"
#include "BKE_mask.h"
#include "ED_anim_api.h"
#include "ED_keyframes_edit.h"
#include "ED_markers.h"
#include "ED_mask.h"

Go to the source code of this file.

Functions

bool ED_masklayer_frames_looper (MaskLayer *mask_layer, Scene *scene, bool(*mask_layer_shape_cb)(MaskLayerShape *, Scene *))
 
void ED_masklayer_make_cfra_list (MaskLayer *mask_layer, ListBase *elems, bool onlysel)
 
bool ED_masklayer_frame_select_check (const MaskLayer *mask_layer)
 
static void mask_layer_shape_select (MaskLayerShape *mask_layer_shape, short select_mode)
 
void ED_mask_select_frames (MaskLayer *mask_layer, short select_mode)
 
void ED_masklayer_frame_select_set (MaskLayer *mask_layer, short mode)
 
void ED_mask_select_frame (MaskLayer *mask_layer, int selx, short select_mode)
 
void ED_masklayer_frames_select_box (MaskLayer *mask_layer, float min, float max, short select_mode)
 
void ED_masklayer_frames_select_region (KeyframeEditData *ked, MaskLayer *mask_layer, short tool, short select_mode)
 
bool ED_masklayer_frames_delete (MaskLayer *mask_layer)
 
void ED_masklayer_frames_duplicate (MaskLayer *mask_layer)
 
static bool snap_mask_layer_nearest (MaskLayerShape *mask_layer_shape, Scene *UNUSED(scene))
 
static bool snap_mask_layer_nearestsec (MaskLayerShape *mask_layer_shape, Scene *scene)
 
static bool snap_mask_layer_cframe (MaskLayerShape *mask_layer_shape, Scene *scene)
 
static bool snap_mask_layer_nearmarker (MaskLayerShape *mask_layer_shape, Scene *scene)
 
void ED_masklayer_snap_frames (MaskLayer *mask_layer, Scene *scene, short mode)
 

Function Documentation

◆ 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_masklayer_frame_select_check()

bool ED_masklayer_frame_select_check ( const MaskLayer mask_layer)

◆ 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 ( MaskLayer mask_layer,
Scene scene,
bool(*)(MaskLayerShape *, Scene *)  mask_layer_shape_cb 
)

◆ 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 
)

◆ mask_layer_shape_select()

static void mask_layer_shape_select ( MaskLayerShape mask_layer_shape,
short  select_mode 
)
static

◆ snap_mask_layer_cframe()

static bool snap_mask_layer_cframe ( MaskLayerShape mask_layer_shape,
Scene scene 
)
static

◆ snap_mask_layer_nearest()

static bool snap_mask_layer_nearest ( MaskLayerShape mask_layer_shape,
Scene UNUSEDscene 
)
static

◆ snap_mask_layer_nearestsec()

static bool snap_mask_layer_nearestsec ( MaskLayerShape mask_layer_shape,
Scene scene 
)
static

◆ snap_mask_layer_nearmarker()

static bool snap_mask_layer_nearmarker ( MaskLayerShape mask_layer_shape,
Scene scene 
)
static