Blender V5.0
mask_select.cc File Reference
#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 "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.

Typedefs

using int2

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 wmOperatorStatus select_all_exec (bContext *C, wmOperator *op)
void MASK_OT_select_all (wmOperatorType *ot)
Select (Cursor Pick) Operator
static wmOperatorStatus select_exec (bContext *C, wmOperator *op)
static wmOperatorStatus select_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void MASK_OT_select (wmOperatorType *ot)
Box Select Operator
static wmOperatorStatus 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 wmOperatorStatus 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 wmOperatorStatus circle_select_exec (bContext *C, wmOperator *op)
void MASK_OT_select_circle (wmOperatorType *ot)
Select Linked (Cursor Pick) Operator
static wmOperatorStatus mask_select_linked_pick_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void MASK_OT_select_linked_pick (wmOperatorType *ot)
Select Linked Operator
static wmOperatorStatus mask_select_linked_exec (bContext *C, wmOperator *)
void MASK_OT_select_linked (wmOperatorType *ot)
Select More/Less Operators
static wmOperatorStatus mask_select_more_less (bContext *C, bool more)
static wmOperatorStatus mask_select_more_exec (bContext *C, wmOperator *)
void MASK_OT_select_more (wmOperatorType *ot)
static wmOperatorStatus mask_select_less_exec (bContext *C, wmOperator *)
void MASK_OT_select_less (wmOperatorType *ot)

Typedef Documentation

◆ int2

Definition at line 601 of file BLI_math_vector_types.hh.

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 71 of file mask_select.cc.

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

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

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

wmOperatorStatus mask_select_less_exec ( bContext * C,
wmOperator *  )
static

Definition at line 979 of file mask_select.cc.

References C, and mask_select_more_less().

Referenced by MASK_OT_select_less().

◆ mask_select_linked_exec()

◆ mask_select_linked_pick_invoke()

◆ mask_select_more_exec()

wmOperatorStatus mask_select_more_exec ( bContext * C,
wmOperator *  )
static

Definition at line 959 of file mask_select.cc.

References C, and mask_select_more_less().

Referenced by MASK_OT_select_more().

◆ mask_select_more_less()

◆ mask_spline_point_inside_ellipse()

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

Definition at line 648 of file mask_select.cc.

References BezTriple::vec, x, and y.

Referenced by circle_select_exec().

◆ select_all_exec()

◆ select_exec()

◆ select_invoke()