Blender  V3.3
mask_select.c File Reference
#include "MEM_guardedalloc.h"
#include "BLI_lasso_2d.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_rect.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_mask.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
#include "DNA_mask_types.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_clip.h"
#include "ED_mask.h"
#include "ED_select_utils.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "mask_intern.h"

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 int mcoords[][2], const int mcoords_len, 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 *UNUSED(op))
 
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 *UNUSED(op))
 
void MASK_OT_select_more (wmOperatorType *ot)
 
static int mask_select_less_exec (bContext *C, wmOperator *UNUSED(op))
 
void MASK_OT_select_less (wmOperatorType *ot)
 

Function Documentation

◆ box_select_exec()

static int box_select_exec ( bContext C,
wmOperator op 
)
static

◆ circle_select_exec()

static int circle_select_exec ( bContext C,
wmOperator op 
)
static

◆ clip_lasso_select_exec()

static int clip_lasso_select_exec ( bContext C,
wmOperator op 
)
static

◆ do_lasso_select_mask()

static bool do_lasso_select_mask ( bContext C,
const int  mcoords[][2],
const int  mcoords_len,
const eSelectOp  sel_op 
)
static

◆ ED_mask_deselect_all()

void ED_mask_deselect_all ( const bContext C)

◆ ED_mask_layer_select_check()

bool ED_mask_layer_select_check ( const MaskLayer mask_layer)

◆ 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 68 of file mask_select.c.

References ED_mask_layer_select_check(), LISTBASE_FOREACH, and mask().

Referenced by ED_mask_select_toggle_all().

◆ ED_mask_select_flush_all()

void ED_mask_select_flush_all ( Mask mask)

◆ ED_mask_select_toggle_all()

void ED_mask_select_toggle_all ( Mask mask,
int  action 
)

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

void MASK_OT_select ( wmOperatorType ot)

◆ MASK_OT_select_all()

void MASK_OT_select_all ( wmOperatorType ot)

◆ MASK_OT_select_box()

void MASK_OT_select_box ( wmOperatorType ot)

◆ MASK_OT_select_circle()

void MASK_OT_select_circle ( wmOperatorType ot)

◆ MASK_OT_select_lasso()

void MASK_OT_select_lasso ( wmOperatorType ot)

◆ MASK_OT_select_less()

void MASK_OT_select_less ( wmOperatorType ot)

◆ MASK_OT_select_linked()

void MASK_OT_select_linked ( wmOperatorType ot)

◆ MASK_OT_select_linked_pick()

void MASK_OT_select_linked_pick ( wmOperatorType ot)

◆ MASK_OT_select_more()

void MASK_OT_select_more ( wmOperatorType ot)

◆ mask_select_less_exec()

static int mask_select_less_exec ( bContext C,
wmOperator UNUSEDop 
)
static

Definition at line 970 of file mask_select.c.

References C, and mask_select_more_less().

Referenced by MASK_OT_select_less().

◆ mask_select_linked_exec()

static int mask_select_linked_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ mask_select_linked_pick_invoke()

static int mask_select_linked_pick_invoke ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ mask_select_more_exec()

static int mask_select_more_exec ( bContext C,
wmOperator UNUSEDop 
)
static

Definition at line 950 of file mask_select.c.

References C, and mask_select_more_less().

Referenced by MASK_OT_select_more().

◆ mask_select_more_less()

static int mask_select_more_less ( bContext C,
bool  more 
)
static

◆ 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 645 of file mask_select.c.

References offset, BezTriple::vec, x, and y.

Referenced by circle_select_exec().

◆ select_all_exec()

static int select_all_exec ( bContext C,
wmOperator op 
)
static

◆ select_exec()

static int select_exec ( bContext C,
wmOperator op 
)
static

◆ select_invoke()

static int select_invoke ( bContext C,
wmOperator op,
const wmEvent event 
)
static