Blender  V3.3
Classes | Typedefs | Functions
mask_intern.h File Reference
#include "ED_clip.h"

Go to the source code of this file.

Classes

struct  MaskViewLockState
 

Typedefs

typedef struct MaskViewLockState MaskViewLockState
 

Functions

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

Typedef Documentation

◆ MaskViewLockState

Function Documentation

◆ ED_mask_feather_find_nearest()

bool ED_mask_feather_find_nearest ( const struct bContext C,
struct Mask mask,
const float  normal_co[2],
float  threshold,
struct MaskLayer **  r_mask_layer,
struct MaskSpline **  r_spline,
struct MaskSplinePoint **  r_point,
struct MaskSplinePointUW **  r_uw,
float r_score 
)

◆ ED_mask_find_nearest_diff_point()

bool ED_mask_find_nearest_diff_point ( const struct bContext C,
struct Mask mask,
const float  normal_co[2],
int  threshold,
bool  feather,
float  tangent[2],
bool  use_deform,
bool  use_project,
struct MaskLayer **  r_mask_layer,
struct MaskSpline **  r_spline,
struct MaskSplinePoint **  r_point,
float r_u,
float r_score 
)

◆ ED_mask_layer_ensure()

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

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

Definition at line 71 of file mask_ops.c.

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

Referenced by create_primitive_from_points().

◆ ED_mask_layer_select_check()

bool ED_mask_layer_select_check ( const struct MaskLayer mask_layer)

◆ ED_mask_layer_select_set()

void ED_mask_layer_select_set ( struct MaskLayer mask_layer,
bool  do_select 
)

◆ ED_mask_new()

struct Mask* ED_mask_new ( struct bContext C,
const char *  name 
)

◆ ED_mask_point_find_nearest()

struct MaskSplinePoint* ED_mask_point_find_nearest ( const struct bContext C,
struct Mask mask,
const float  normal_co[2],
float  threshold,
struct MaskLayer **  r_mask_layer,
struct MaskSpline **  r_spline,
eMaskWhichHandle r_which_handle,
float r_score 
)

◆ ED_mask_select_check()

bool ED_mask_select_check ( const struct Mask mask)

◆ ED_mask_select_flush_all()

void ED_mask_select_flush_all ( struct Mask mask)

◆ ED_mask_select_toggle_all()

void ED_mask_select_toggle_all ( struct Mask mask,
int  action 
)

◆ ED_mask_spline_select_check()

bool ED_mask_spline_select_check ( const struct MaskSpline spline)

◆ ED_mask_spline_select_set()

void ED_mask_spline_select_set ( struct MaskSpline spline,
bool  do_select 
)

◆ ED_mask_view_lock_state_restore_no_jump()

void ED_mask_view_lock_state_restore_no_jump ( const struct bContext C,
const MaskViewLockState state 
)

◆ ED_mask_view_lock_state_store()

void ED_mask_view_lock_state_store ( const struct bContext C,
MaskViewLockState state 
)

◆ MASK_OT_add_feather_vertex()

void MASK_OT_add_feather_vertex ( struct wmOperatorType ot)

◆ MASK_OT_add_vertex()

void MASK_OT_add_vertex ( struct wmOperatorType ot)

◆ MASK_OT_copy_splines()

void MASK_OT_copy_splines ( struct wmOperatorType ot)

◆ MASK_OT_cyclic_toggle()

void MASK_OT_cyclic_toggle ( struct wmOperatorType ot)

◆ MASK_OT_delete()

void MASK_OT_delete ( struct wmOperatorType ot)

◆ MASK_OT_duplicate()

void MASK_OT_duplicate ( struct wmOperatorType ot)

◆ MASK_OT_feather_weight_clear()

void MASK_OT_feather_weight_clear ( struct wmOperatorType ot)

◆ MASK_OT_handle_type_set()

void MASK_OT_handle_type_set ( struct wmOperatorType ot)

◆ MASK_OT_hide_view_clear()

void MASK_OT_hide_view_clear ( struct wmOperatorType ot)

◆ MASK_OT_hide_view_set()

void MASK_OT_hide_view_set ( struct wmOperatorType ot)

◆ MASK_OT_layer_move()

void MASK_OT_layer_move ( struct wmOperatorType ot)

◆ MASK_OT_layer_new()

void MASK_OT_layer_new ( struct wmOperatorType ot)

◆ MASK_OT_layer_remove()

void MASK_OT_layer_remove ( struct wmOperatorType ot)

◆ MASK_OT_new()

void MASK_OT_new ( struct wmOperatorType ot)

◆ MASK_OT_normals_make_consistent()

void MASK_OT_normals_make_consistent ( struct wmOperatorType ot)

◆ MASK_OT_parent_clear()

void MASK_OT_parent_clear ( struct wmOperatorType ot)

◆ MASK_OT_parent_set()

void MASK_OT_parent_set ( struct wmOperatorType ot)

◆ MASK_OT_paste_splines()

void MASK_OT_paste_splines ( struct wmOperatorType ot)

◆ MASK_OT_primitive_circle_add()

void MASK_OT_primitive_circle_add ( struct wmOperatorType ot)

◆ MASK_OT_primitive_square_add()

void MASK_OT_primitive_square_add ( struct wmOperatorType ot)

◆ MASK_OT_select()

void MASK_OT_select ( struct wmOperatorType ot)

◆ MASK_OT_select_all()

void MASK_OT_select_all ( struct wmOperatorType ot)

◆ MASK_OT_select_box()

void MASK_OT_select_box ( struct wmOperatorType ot)

◆ MASK_OT_select_circle()

void MASK_OT_select_circle ( struct wmOperatorType ot)

◆ MASK_OT_select_lasso()

void MASK_OT_select_lasso ( struct wmOperatorType ot)

◆ MASK_OT_select_less()

void MASK_OT_select_less ( struct wmOperatorType ot)

◆ MASK_OT_select_linked()

void MASK_OT_select_linked ( struct wmOperatorType ot)

◆ MASK_OT_select_linked_pick()

void MASK_OT_select_linked_pick ( struct wmOperatorType ot)

◆ MASK_OT_select_more()

void MASK_OT_select_more ( struct wmOperatorType ot)

◆ MASK_OT_shape_key_clear()

void MASK_OT_shape_key_clear ( struct wmOperatorType ot)

◆ MASK_OT_shape_key_feather_reset()

void MASK_OT_shape_key_feather_reset ( struct wmOperatorType ot)

◆ MASK_OT_shape_key_insert()

void MASK_OT_shape_key_insert ( struct wmOperatorType ot)

◆ MASK_OT_shape_key_rekey()

void MASK_OT_shape_key_rekey ( struct wmOperatorType ot)

◆ MASK_OT_slide_point()

void MASK_OT_slide_point ( struct wmOperatorType ot)

◆ MASK_OT_slide_spline_curvature()

void MASK_OT_slide_spline_curvature ( struct wmOperatorType ot)

◆ MASK_OT_switch_direction()

void MASK_OT_switch_direction ( struct wmOperatorType ot)