Blender V4.3
mask_select.cc File Reference
#include "MEM_guardedalloc.h"
#include "BLI_lasso_2d.hh"
#include "BLI_listbase.h"
#include "BLI_math_base.h"
#include "BLI_math_vector_types.hh"
#include "BLI_rect.h"
#include "BLI_utildefines.h"
#include "BKE_context.hh"
#include "BKE_mask.h"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"
#include "DNA_mask_types.h"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_clip.hh"
#include "ED_mask.hh"
#include "ED_select_utils.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "mask_intern.hh"

Go to the source code of this file.

Functions

Public Mask Selection API
bool ED_mask_spline_select_check (const MaskSpline *spline)
 
bool ED_mask_layer_select_check (const MaskLayer *mask_layer)
 
bool ED_mask_select_check (const Mask *mask)
 
void ED_mask_spline_select_set (MaskSpline *spline, const bool do_select)
 
void ED_mask_layer_select_set (MaskLayer *mask_layer, const bool do_select)
 
void ED_mask_select_toggle_all (Mask *mask, int action)
 
void ED_mask_select_flush_all (Mask *mask)
 
void ED_mask_deselect_all (const bContext *C)
 
(De)select All Operator
static int select_all_exec (bContext *C, wmOperator *op)
 
void MASK_OT_select_all (wmOperatorType *ot)
 
Select (Cursor Pick) Operator
static int select_exec (bContext *C, wmOperator *op)
 
static int select_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void MASK_OT_select (wmOperatorType *ot)
 
Box Select Operator
static int box_select_exec (bContext *C, wmOperator *op)
 
void MASK_OT_select_box (wmOperatorType *ot)
 
Lasso Select Operator
static bool do_lasso_select_mask (bContext *C, const Span< int2 > mcoords, const eSelectOp sel_op)
 
static int clip_lasso_select_exec (bContext *C, wmOperator *op)
 
void MASK_OT_select_lasso (wmOperatorType *ot)
 
Circle Select Operator
static int mask_spline_point_inside_ellipse (BezTriple *bezt, const float offset[2], const float ellipse[2])
 
static int circle_select_exec (bContext *C, wmOperator *op)
 
void MASK_OT_select_circle (wmOperatorType *ot)
 
Select Linked (Cursor Pick) Operator
static int mask_select_linked_pick_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void MASK_OT_select_linked_pick (wmOperatorType *ot)
 
Select Linked Operator
static int mask_select_linked_exec (bContext *C, wmOperator *)
 
void MASK_OT_select_linked (wmOperatorType *ot)
 
Select More/Less Operators
static int mask_select_more_less (bContext *C, bool more)
 
static int mask_select_more_exec (bContext *C, wmOperator *)
 
void MASK_OT_select_more (wmOperatorType *ot)
 
static int mask_select_less_exec (bContext *C, wmOperator *)
 
void MASK_OT_select_less (wmOperatorType *ot)
 

Function Documentation

◆ box_select_exec()

◆ circle_select_exec()

◆ clip_lasso_select_exec()

◆ do_lasso_select_mask()

◆ ED_mask_deselect_all()

◆ ED_mask_layer_select_check()

◆ ED_mask_layer_select_set()

void ED_mask_layer_select_set ( MaskLayer * mask_layer,
const bool do_select )

◆ ED_mask_select_check()

bool ED_mask_select_check ( const Mask * mask)

Definition at line 74 of file mask_select.cc.

References ED_mask_layer_select_check(), and LISTBASE_FOREACH.

Referenced by ED_mask_select_toggle_all().

◆ ED_mask_select_flush_all()

◆ ED_mask_select_toggle_all()

◆ ED_mask_spline_select_check()

bool ED_mask_spline_select_check ( const MaskSpline * spline)

◆ ED_mask_spline_select_set()

void ED_mask_spline_select_set ( MaskSpline * spline,
const bool do_select )

◆ MASK_OT_select()

◆ MASK_OT_select_all()

◆ MASK_OT_select_box()

◆ MASK_OT_select_circle()

◆ MASK_OT_select_lasso()

◆ MASK_OT_select_less()

◆ MASK_OT_select_linked()

◆ MASK_OT_select_linked_pick()

◆ MASK_OT_select_more()

◆ mask_select_less_exec()

static int mask_select_less_exec ( bContext * C,
wmOperator *  )
static

Definition at line 980 of file mask_select.cc.

References mask_select_more_less().

Referenced by MASK_OT_select_less().

◆ mask_select_linked_exec()

◆ mask_select_linked_pick_invoke()

◆ mask_select_more_exec()

static int mask_select_more_exec ( bContext * C,
wmOperator *  )
static

Definition at line 960 of file mask_select.cc.

References mask_select_more_less().

Referenced by MASK_OT_select_more().

◆ mask_select_more_less()

◆ mask_spline_point_inside_ellipse()

static int mask_spline_point_inside_ellipse ( BezTriple * bezt,
const float offset[2],
const float ellipse[2] )
static

Definition at line 651 of file mask_select.cc.

References BezTriple::vec, x, and y.

Referenced by circle_select_exec().

◆ select_all_exec()

◆ select_exec()

◆ select_invoke()