Blender V5.3
sequencer_select.cc File Reference
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "BLI_lasso_2d.hh"
#include "BLI_rect.hh"
#include "MEM_guardedalloc.h"
#include "BLI_ghash.hh"
#include "BLI_listbase.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_math_vector_types.hh"
#include "BLI_set.hh"
#include "BLI_string.hh"
#include "BLI_utildefines.hh"
#include "DNA_scene_types.h"
#include "DNA_space_types.h"
#include "BKE_context.hh"
#include "BKE_report.hh"
#include "BLT_translation.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "RNA_define.hh"
#include "SEQ_channels.hh"
#include "SEQ_connect.hh"
#include "SEQ_iterator.hh"
#include "SEQ_relations.hh"
#include "SEQ_retiming.hh"
#include "SEQ_select.hh"
#include "SEQ_sequencer.hh"
#include "SEQ_transform.hh"
#include "ED_outliner.hh"
#include "ED_screen.hh"
#include "ED_select_utils.hh"
#include "ED_sequencer.hh"
#include "UI_resources.hh"
#include "UI_view2d.hh"
#include "sequencer_intern.hh"

Go to the source code of this file.

Classes

class  blender::ed::vse::MouseCoords

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::ed
namespace  blender::ed::vse

Functions

Selection Utilities
bool blender::ed::vse::deselect_all_strips (const Scene *scene)
Strip * blender::ed::vse::strip_under_mouse_get (const Scene *scene, const View2D *v2d, const int mval[2])
VectorSet< Strip * > blender::ed::vse::all_strips_from_context (bContext *C)
VectorSet< Strip * > blender::ed::vse::selected_strips_from_context (bContext *C)
static void blender::ed::vse::select_surrounding_handles (Scene *scene, Strip *test)
static void blender::ed::vse::select_active_side (ListBaseT< Strip > *seqbase, seq::Side sel_side, int channel, int frame)
static void blender::ed::vse::select_active_side_range (ListBaseT< Strip > *seqbase, const seq::Side sel_side, const int frame_ranges[seq::MAX_CHANNELS], const int frame_ignore)
static void blender::ed::vse::select_linked_time_strip (const Scene *scene, const Strip *strip_source, const eStripHandle handle_clicked)
void blender::ed::vse::select_strip_single (Scene *scene, Strip *strip, bool deselect_all)
rctf blender::ed::vse::strip_bounds_get (const Scene *scene, const Strip *strip)
Strip * blender::ed::vse::find_neighboring_strip (const Scene *scene, const Strip *test, const seq::Side lr, int sel)
bool blender::ed::vse::strip_point_image_isect (const Scene *scene, const Strip *strip, float point_view[2])
void blender::ed::vse::sequencer_select_do_updates (const bContext *C, Scene *scene)
(De)select All Operator
static wmOperatorStatus blender::ed::vse::sequencer_de_select_all_exec (bContext *C, wmOperator *op)
void blender::ed::vse::SEQUENCER_OT_select_all (wmOperatorType *ot)
Select Operator
static void blender::ed::vse::sequencer_select_set_active (Scene *scene, Strip *strip)
static void blender::ed::vse::sequencer_select_side_of_frame (const bContext *C, const View2D *v2d, const int mval[2], Scene *scene)
static void blender::ed::vse::sequencer_select_linked_handle (const bContext *C, Strip *strip, const eStripHandle handle_clicked)
static int blender::ed::vse::strip_sort_for_depth_select (const void *a, const void *b)
static int blender::ed::vse::strip_sort_for_center_select (const void *a, const void *b)
static Strip * blender::ed::vse::strip_select_from_preview (const bContext *C, const int mval[2], const bool toggle, const bool extend, const bool center)
bool blender::ed::vse::handle_is_selected (const Strip *strip, eStripHandle handle)
static bool blender::ed::vse::element_already_selected (const StripSelection &selection)
static void blender::ed::vse::sequencer_select_connected_strips (const StripSelection &selection)
static void blender::ed::vse::sequencer_copy_handles_to_selected_strips (const Scene *scene, const StripSelection &selection, VectorSet< Strip * > copy_to)
static void blender::ed::vse::sequencer_select_strip_impl (const Editing *ed, Strip *strip, const eStripHandle handle_clicked, const bool extend, const bool deselect, const bool toggle)
static void blender::ed::vse::select_linked_time (const Scene *scene, const StripSelection &selection, const bool extend, const bool deselect, const bool toggle)
static float blender::ed::vse::inner_clickable_handle_size_get (const Scene *scene, const Strip *strip, const View2D *v2d)
bool blender::ed::vse::can_select_handle (const Scene *scene, const Strip *strip)
static void blender::ed::vse::strip_clickable_areas_get (const Scene *scene, const Strip *strip, const View2D *v2d, rctf *r_body, rctf *r_left_handle, rctf *r_right_handle)
static rctf blender::ed::vse::strip_clickable_area_get (const Scene *scene, const View2D *v2d, const Strip *strip)
static float blender::ed::vse::strip_to_frame_distance (const Scene *scene, const View2D *v2d, const Strip *strip, float timeline_frame)
static Vector< Strip * > blender::ed::vse::padded_strips_under_mouse_get (const Scene *scene, const View2D *v2d, float mouse_co[2])
static bool blender::ed::vse::strips_are_adjacent (const Scene *scene, const Strip *strip1, const Strip *strip2)
static eStripHandle blender::ed::vse::strip_handle_under_cursor_get (const Scene *scene, const Strip *strip, const View2D *v2d, float mouse_co[2])
static bool blender::ed::vse::is_mouse_over_both_handles_of_adjacent_strips (const Scene *scene, Vector< Strip * > strips, const View2D *v2d, float mouse_co[2])
StripSelection blender::ed::vse::pick_strip_and_handle (const Scene *scene, const View2D *v2d, float mouse_co[2])
wmOperatorStatus blender::ed::vse::sequencer_select_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::vse::sequencer_select_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static std::string blender::ed::vse::sequencer_select_get_name (wmOperatorType *ot, PointerRNA *ptr)
void blender::ed::vse::SEQUENCER_OT_select (wmOperatorType *ot)
Select Handle Operator
static wmOperatorStatus blender::ed::vse::sequencer_select_handle_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::vse::sequencer_select_handle_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::ed::vse::SEQUENCER_OT_select_handle (wmOperatorType *ot)
Select More Operator
static bool blender::ed::vse::select_linked_internal (Scene *scene)
static bool blender::ed::vse::select_more_less_impl (Scene *scene, bool select_more)
static wmOperatorStatus blender::ed::vse::sequencer_select_more_exec (bContext *C, wmOperator *)
void blender::ed::vse::SEQUENCER_OT_select_more (wmOperatorType *ot)
Select Less Operator
static wmOperatorStatus blender::ed::vse::sequencer_select_less_exec (bContext *C, wmOperator *)
void blender::ed::vse::SEQUENCER_OT_select_less (wmOperatorType *ot)
Select Pick Linked Operator
static wmOperatorStatus blender::ed::vse::sequencer_select_linked_pick_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::ed::vse::SEQUENCER_OT_select_linked_pick (wmOperatorType *ot)
Select Linked Operator
static wmOperatorStatus blender::ed::vse::sequencer_select_linked_exec (bContext *C, wmOperator *)
void blender::ed::vse::SEQUENCER_OT_select_linked (wmOperatorType *ot)
Select Side of Frame Operator
static wmOperatorStatus blender::ed::vse::sequencer_select_side_of_frame_exec (bContext *C, wmOperator *op)
void blender::ed::vse::SEQUENCER_OT_select_side_of_frame (wmOperatorType *ot)
Select Side Operator
static wmOperatorStatus blender::ed::vse::sequencer_select_side_exec (bContext *C, wmOperator *op)
void blender::ed::vse::SEQUENCER_OT_select_side (wmOperatorType *ot)
Box Select Operator
static bool blender::ed::vse::strip_box_select_rect_image_isect (const Scene *scene, const Strip *strip, const rctf *rect)
static void blender::ed::vse::seq_box_select_strip_from_preview (const bContext *C, const rctf *rect, const eSelectOp mode)
static wmOperatorStatus blender::ed::vse::sequencer_box_select_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::vse::sequencer_box_select_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::ed::vse::SEQUENCER_OT_select_box (wmOperatorType *ot)
Lasso Select Operator
static bool blender::ed::vse::do_lasso_select_is_origin_inside (const ARegion *region, const rcti *clip_rect, const Span< int2 > mcoords, const float co_test[2])
static bool blender::ed::vse::rcti_in_lasso (const rcti rect, const Span< int2 > mcoords)
static bool blender::ed::vse::do_lasso_select_timeline (bContext *C, const Span< int2 > mcoords, ARegion *region, const eSelectOp sel_op)
static bool blender::ed::vse::do_lasso_select_preview (bContext *C, Editing *ed, const Span< int2 > mcoords, const eSelectOp sel_op)
static wmOperatorStatus blender::ed::vse::vse_lasso_select_exec (bContext *C, wmOperator *op)
void blender::ed::vse::SEQUENCER_OT_select_lasso (wmOperatorType *ot)
Circle Select Operator
static bool blender::ed::vse::strip_circle_select_radius_image_isect (const Scene *scene, const Strip *strip, const int *radius, const float2 mval)
static void blender::ed::vse::seq_circle_select_strip_from_preview (bContext *C, int radius, const float2 mval, const eSelectOp mode)
static bool blender::ed::vse::check_circle_intersection_in_timeline (const rctf *rect, const float xy[2], const float x_radius, const float y_radius)
static wmOperatorStatus blender::ed::vse::vse_circle_select_exec (bContext *C, wmOperator *op)
void blender::ed::vse::SEQUENCER_OT_select_circle (wmOperatorType *ot)

Select Handles Operator

enum  {
  blender::ed::vse::SEQ_SELECT_HANDLES_SIDE_LEFT , blender::ed::vse::SEQ_SELECT_HANDLES_SIDE_RIGHT , blender::ed::vse::SEQ_SELECT_HANDLES_SIDE_BOTH , blender::ed::vse::SEQ_SELECT_HANDLES_SIDE_LEFT_NEIGHBOR ,
  blender::ed::vse::SEQ_SELECT_HANDLES_SIDE_RIGHT_NEIGHBOR , blender::ed::vse::SEQ_SELECT_HANDLES_SIDE_BOTH_NEIGHBORS
}
static const EnumPropertyItem blender::ed::vse::prop_select_handles_side_types []
static wmOperatorStatus blender::ed::vse::sequencer_select_handles_exec (bContext *C, wmOperator *op)
void blender::ed::vse::SEQUENCER_OT_select_handles (wmOperatorType *ot)

Select Grouped Operator

enum  {
  blender::ed::vse::SEQ_SELECT_GROUP_TYPE , blender::ed::vse::SEQ_SELECT_GROUP_DATA , blender::ed::vse::SEQ_SELECT_GROUP_STRIPS_UNDER_EFFECT , blender::ed::vse::SEQ_SELECT_GROUP_TIME_OVERLAP ,
  blender::ed::vse::SEQ_SELECT_GROUP_VISUAL_OVERLAP
}
static const EnumPropertyItem blender::ed::vse::sequencer_prop_select_grouped_types []
static VectorSet< Strip * > blender::ed::vse::strips_from_context (const Scene *scene, bool is_preview)
static bool blender::ed::vse::strip_uses_data (const Strip *strip)
static bool blender::ed::vse::select_grouped_type (VectorSet< Strip * > strips, Strip *act_strip, std::optional< int > channel)
static bool blender::ed::vse::select_grouped_data (VectorSet< Strip * > strips, Strip *act_strip, std::optional< int > channel)
static bool blender::ed::vse::select_grouped_strips_under_effect (VectorSet< Strip * > strips, Strip *act_strip, std::optional< int > channel)
static bool blender::ed::vse::select_grouped_time_overlap (const Scene *scene, VectorSet< Strip * > strips, Strip *act_strip)
static bool blender::ed::vse::select_grouped_visual_overlap (const Scene *scene, VectorSet< Strip * > strips, Strip *act_strip)
static wmOperatorStatus blender::ed::vse::sequencer_select_grouped_exec (bContext *C, wmOperator *op)
void blender::ed::vse::SEQUENCER_OT_select_grouped (wmOperatorType *ot)

Select by Type Operator

enum  { blender::ed::vse::SEQ_SELECT_TYPE_EFFECT = 1000 , blender::ed::vse::SEQ_SELECT_TYPE_VISUAL }
static const EnumPropertyItem blender::ed::vse::sequencer_prop_select_by_type_items []
static wmOperatorStatus blender::ed::vse::sequencer_select_by_type_exec (bContext *C, wmOperator *op)
void blender::ed::vse::SEQUENCER_OT_select_by_type (wmOperatorType *ot)