Blender V5.0
mask_intern.hh File Reference
#include "BKE_mask.h"
#include "ED_clip.hh"

Go to the source code of this file.

Classes

struct  MaskViewLockState

Functions

void MASK_OT_add_vertex (wmOperatorType *ot)
void MASK_OT_add_feather_vertex (wmOperatorType *ot)
void MASK_OT_primitive_circle_add (wmOperatorType *ot)
void MASK_OT_primitive_square_add (wmOperatorType *ot)
MaskED_mask_new (bContext *C, const char *name)
MaskLayerED_mask_layer_ensure (bContext *C, bool *r_added_mask)
void MASK_OT_new (wmOperatorType *ot)
void MASK_OT_layer_new (wmOperatorType *ot)
void MASK_OT_layer_remove (wmOperatorType *ot)
void MASK_OT_cyclic_toggle (wmOperatorType *ot)
void MASK_OT_slide_point (wmOperatorType *ot)
void MASK_OT_slide_spline_curvature (wmOperatorType *ot)
void MASK_OT_delete (wmOperatorType *ot)
void MASK_OT_hide_view_clear (wmOperatorType *ot)
void MASK_OT_hide_view_set (wmOperatorType *ot)
void MASK_OT_feather_weight_clear (wmOperatorType *ot)
void MASK_OT_switch_direction (wmOperatorType *ot)
void MASK_OT_normals_make_consistent (wmOperatorType *ot)
void MASK_OT_handle_type_set (wmOperatorType *ot)
void MASK_OT_layer_move (wmOperatorType *ot)
void MASK_OT_duplicate (wmOperatorType *ot)
void MASK_OT_copy_splines (wmOperatorType *ot)
void MASK_OT_paste_splines (wmOperatorType *ot)
void MASK_OT_parent_set (wmOperatorType *ot)
void MASK_OT_parent_clear (wmOperatorType *ot)
void MASK_OT_select (wmOperatorType *ot)
void MASK_OT_select_all (wmOperatorType *ot)
void MASK_OT_select_box (wmOperatorType *ot)
void MASK_OT_select_lasso (wmOperatorType *ot)
void MASK_OT_select_circle (wmOperatorType *ot)
void MASK_OT_select_linked_pick (wmOperatorType *ot)
void MASK_OT_select_linked (wmOperatorType *ot)
void MASK_OT_select_more (wmOperatorType *ot)
void MASK_OT_select_less (wmOperatorType *ot)
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, bool do_select)
void ED_mask_layer_select_set (MaskLayer *mask_layer, bool do_select)
void ED_mask_select_toggle_all (Mask *mask, int action)
void ED_mask_select_flush_all (Mask *mask)
void ED_mask_view_lock_state_store (const bContext *C, MaskViewLockState *state)
void ED_mask_view_lock_state_restore_no_jump (const bContext *C, const MaskViewLockState *state)
bool ED_mask_find_nearest_diff_point (const bContext *C, Mask *mask_orig, const float normal_co[2], int threshold, bool feather, float tangent[2], bool use_deform, bool use_project, MaskLayer **r_mask_layer, MaskSpline **r_spline, MaskSplinePoint **r_point, float *r_u, float *r_score)
bool ED_mask_feather_find_nearest (const bContext *C, Mask *mask_orig, const float normal_co[2], float threshold, MaskLayer **r_mask_layer, MaskSpline **r_spline, MaskSplinePoint **r_point, MaskSplinePointUW **r_uw, float *r_score)
MaskSplinePointED_mask_point_find_nearest (const bContext *C, Mask *mask_orig, const float normal_co[2], float threshold, MaskLayer **r_mask_layer, MaskSpline **r_spline, eMaskWhichHandle *r_which_handle, float *r_score)
void MASK_OT_shape_key_insert (wmOperatorType *ot)
void MASK_OT_shape_key_clear (wmOperatorType *ot)
void MASK_OT_shape_key_feather_reset (wmOperatorType *ot)
void MASK_OT_shape_key_rekey (wmOperatorType *ot)

Function Documentation

◆ ED_mask_feather_find_nearest()

◆ ED_mask_find_nearest_diff_point()

◆ ED_mask_layer_ensure()

MaskLayer * ED_mask_layer_ensure ( bContext * C,
bool * r_added_mask )

Get active layer. Will create mask/layer to be sure there's an active layer.

Definition at line 78 of file mask_ops.cc.

References BKE_mask_layer_active(), BKE_mask_layer_new(), C, CTX_data_edit_mask(), ED_mask_new(), and mask().

Referenced by create_primitive_from_points().

◆ ED_mask_layer_select_check()

◆ ED_mask_layer_select_set()

void ED_mask_layer_select_set ( MaskLayer * mask_layer,
bool do_select )

◆ ED_mask_new()

◆ ED_mask_point_find_nearest()

◆ 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,
bool do_select )

◆ ED_mask_view_lock_state_restore_no_jump()

◆ ED_mask_view_lock_state_store()

◆ MASK_OT_add_feather_vertex()

◆ MASK_OT_add_vertex()

◆ MASK_OT_copy_splines()

void MASK_OT_copy_splines ( wmOperatorType * ot)

Definition at line 2142 of file mask_ops.cc.

References copy_splines_exec(), ED_maskedit_mask_poll(), OPTYPE_REGISTER, and ot.

Referenced by ED_operatortypes_mask().

◆ MASK_OT_cyclic_toggle()

void MASK_OT_cyclic_toggle ( wmOperatorType * ot)

◆ MASK_OT_delete()

◆ MASK_OT_duplicate()

void MASK_OT_duplicate ( wmOperatorType * ot)

◆ MASK_OT_feather_weight_clear()

void MASK_OT_feather_weight_clear ( wmOperatorType * ot)

◆ MASK_OT_handle_type_set()

◆ MASK_OT_hide_view_clear()

void MASK_OT_hide_view_clear ( wmOperatorType * ot)

◆ MASK_OT_hide_view_set()

void MASK_OT_hide_view_set ( wmOperatorType * ot)

◆ MASK_OT_layer_move()

void MASK_OT_layer_move ( wmOperatorType * ot)

◆ MASK_OT_layer_new()

void MASK_OT_layer_new ( wmOperatorType * ot)

◆ MASK_OT_layer_remove()

void MASK_OT_layer_remove ( wmOperatorType * ot)

◆ MASK_OT_new()

void MASK_OT_new ( wmOperatorType * ot)

◆ MASK_OT_normals_make_consistent()

void MASK_OT_normals_make_consistent ( wmOperatorType * ot)

◆ MASK_OT_parent_clear()

void MASK_OT_parent_clear ( wmOperatorType * ot)

◆ MASK_OT_parent_set()

void MASK_OT_parent_set ( wmOperatorType * ot)

based on #OBJECT_OT_parent_set

Definition at line 155 of file mask_relationships.cc.

References ED_space_clip_maskedit_mask_poll(), mask_parent_set_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.

Referenced by ED_operatortypes_mask().

◆ MASK_OT_paste_splines()

void MASK_OT_paste_splines ( wmOperatorType * ot)

Definition at line 2186 of file mask_ops.cc.

References OPTYPE_REGISTER, OPTYPE_UNDO, ot, paste_splines_exec(), and paste_splines_poll().

Referenced by ED_operatortypes_mask().

◆ MASK_OT_primitive_circle_add()

◆ MASK_OT_primitive_square_add()

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

void MASK_OT_shape_key_clear ( wmOperatorType * ot)

◆ MASK_OT_shape_key_feather_reset()

void MASK_OT_shape_key_feather_reset ( wmOperatorType * ot)

◆ MASK_OT_shape_key_insert()

void MASK_OT_shape_key_insert ( wmOperatorType * ot)

◆ MASK_OT_shape_key_rekey()

void MASK_OT_shape_key_rekey ( wmOperatorType * ot)

◆ MASK_OT_slide_point()

◆ MASK_OT_slide_spline_curvature()

◆ MASK_OT_switch_direction()

void MASK_OT_switch_direction ( wmOperatorType * ot)