Blender
V3.3
|
#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.
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().
Definition at line 93 of file mask_editaction.c.
References ListBase::first, MaskLayerShape::flag, MASK_SHAPE_SELECT, MaskLayerShape::next, NULL, and MaskLayer::splines_shapes.
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 | ( | MaskLayer * | mask_layer, |
Scene * | scene, | ||
bool(*)(MaskLayerShape *, Scene *) | mask_layer_shape_cb | ||
) |
Definition at line 39 of file mask_editaction.c.
References ListBase::first, MaskLayerShape::next, NULL, scene, and MaskLayer::splines_shapes.
Referenced by ED_masklayer_snap_frames().
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().
|
static |
Definition at line 115 of file mask_editaction.c.
References MaskLayerShape::flag, MASK_SHAPE_SELECT, NULL, SELECT_ADD, SELECT_INVERT, and SELECT_SUBTRACT.
Referenced by ED_mask_select_frame(), ED_mask_select_frames(), ED_masklayer_frames_select_box(), and ED_masklayer_frames_select_region().
|
static |
Definition at line 304 of file mask_editaction.c.
References RenderData::cfra, MaskLayerShape::flag, MaskLayerShape::frame, MASK_SHAPE_SELECT, Scene::r, and scene.
Referenced by ED_masklayer_snap_frames().
|
static |
Definition at line 287 of file mask_editaction.c.
References MaskLayerShape::flag, blender::math::floor(), MaskLayerShape::frame, and MASK_SHAPE_SELECT.
Referenced by ED_masklayer_snap_frames().
|
static |
Definition at line 295 of file mask_editaction.c.
References MaskLayerShape::flag, float(), floorf, FPS, MaskLayerShape::frame, and MASK_SHAPE_SELECT.
Referenced by ED_masklayer_snap_frames().
|
static |
Definition at line 312 of file mask_editaction.c.
References ED_markers_find_nearest_marker_time(), MaskLayerShape::flag, MaskLayerShape::frame, Scene::markers, MASK_SHAPE_SELECT, and scene.
Referenced by ED_masklayer_snap_frames().