|
Blender V4.3
|
#include <cmath>#include <cstddef>#include <cstdio>#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_utildefines.h"#include "DNA_mask_types.h"#include "DNA_scene_types.h"#include "BKE_mask.h"#include "ED_anim_api.hh"#include "ED_keyframes_edit.hh"#include "ED_markers.hh"#include "ED_mask.hh"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 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_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(), max, 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().
|
static |
Definition at line 105 of file mask_editaction.cc.
References MaskLayerShape::flag, MASK_SHAPE_SELECT, 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 282 of file mask_editaction.cc.
References RenderData::cfra, MaskLayerShape::flag, MaskLayerShape::frame, int, MASK_SHAPE_SELECT, and Scene::r.
Referenced by ED_masklayer_snap_frames().
|
static |
Definition at line 265 of file mask_editaction.cc.
References MaskLayerShape::flag, floor(), MaskLayerShape::frame, int, and MASK_SHAPE_SELECT.
Referenced by ED_masklayer_snap_frames().
|
static |
Definition at line 273 of file mask_editaction.cc.
References MaskLayerShape::flag, float, floorf, FPS, MaskLayerShape::frame, int, and MASK_SHAPE_SELECT.
Referenced by ED_masklayer_snap_frames().
|
static |
Definition at line 290 of file mask_editaction.cc.
References ED_markers_find_nearest_marker_time(), MaskLayerShape::flag, MaskLayerShape::frame, int, Scene::markers, and MASK_SHAPE_SELECT.
Referenced by ED_masklayer_snap_frames().