Blender V4.3
mask_intern.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#include "ED_clip.hh"
12
13struct Mask;
14struct bContext;
15struct wmOperatorType;
16
17/* internal exports only */
18
19/* `mask_add.cc` */
20
25
26/* `mask_ops.cc` */
27
28Mask *ED_mask_new(bContext *C, const char *name);
32MaskLayer *ED_mask_layer_ensure(bContext *C, bool *r_added_mask);
33
38
41
43
48/* Named to match mesh recalculate normals. */
50
52
54
58
59/* `mask_relationships.cc` */
60
64
65/* `mask_select.cc` */
66
69
77
78/* 'check' select */
79bool ED_mask_spline_select_check(const MaskSpline *spline);
80bool ED_mask_layer_select_check(const MaskLayer *mask_layer);
81bool ED_mask_select_check(const Mask *mask);
82
83void ED_mask_spline_select_set(MaskSpline *spline, bool do_select);
84void ED_mask_layer_select_set(MaskLayer *mask_layer, bool do_select);
85void ED_mask_select_toggle_all(Mask *mask, int action);
87
88/* mask_editor.c */
89
90/* Generalized solution for preserving editor viewport when making changes while lock-to-selection
91 * is enabled.
92 * Any mask operator can use this API, without worrying that some editors do not have an idea of
93 * lock-to-selection. */
94
98
101
102/* `mask_query.cc` */
103
105 Mask *mask_orig,
106 const float normal_co[2],
107 int threshold,
108 bool feather,
109 float tangent[2],
110 bool use_deform,
111 bool use_project,
112 MaskLayer **r_mask_layer,
113 MaskSpline **r_spline,
114 MaskSplinePoint **r_point,
115 float *r_u,
116 float *r_score);
118 Mask *mask_orig,
119 const float normal_co[2],
120 float threshold,
121 MaskLayer **r_mask_layer,
122 MaskSpline **r_spline,
123 MaskSplinePoint **r_point,
124 MaskSplinePointUW **r_uw,
125 float *r_score);
127 Mask *mask_orig,
128 const float normal_co[2],
129 float threshold,
130 MaskLayer **r_mask_layer,
131 MaskSpline **r_spline,
132 eMaskWhichHandle *r_which_handle,
133 float *r_score);
134
135/* `mask_shapekey.cc` */
136
eMaskWhichHandle
Definition BKE_mask.h:32
void MASK_OT_select_circle(wmOperatorType *ot)
void MASK_OT_add_feather_vertex(wmOperatorType *ot)
Definition mask_add.cc:679
void ED_mask_spline_select_set(MaskSpline *spline, bool do_select)
bool ED_mask_spline_select_check(const MaskSpline *spline)
void MASK_OT_slide_spline_curvature(wmOperatorType *ot)
Definition mask_ops.cc:1309
void MASK_OT_copy_splines(wmOperatorType *ot)
Definition mask_ops.cc:2132
void MASK_OT_layer_move(wmOperatorType *ot)
Definition mask_ops.cc:1952
void MASK_OT_select_more(wmOperatorType *ot)
void MASK_OT_feather_weight_clear(wmOperatorType *ot)
Definition mask_ops.cc:1883
void MASK_OT_layer_remove(wmOperatorType *ot)
Definition mask_ops.cc:180
void MASK_OT_shape_key_insert(wmOperatorType *ot)
void MASK_OT_paste_splines(wmOperatorType *ot)
Definition mask_ops.cc:2176
void MASK_OT_select(wmOperatorType *ot)
MaskSplinePoint * ED_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_primitive_square_add(wmOperatorType *ot)
Definition mask_add.cc:898
bool ED_mask_select_check(const Mask *mask)
void MASK_OT_shape_key_feather_reset(wmOperatorType *ot)
void MASK_OT_layer_new(wmOperatorType *ot)
Definition mask_ops.cc:145
void MASK_OT_parent_clear(wmOperatorType *ot)
void MASK_OT_primitive_circle_add(wmOperatorType *ot)
Definition mask_add.cc:863
void MASK_OT_shape_key_rekey(wmOperatorType *ot)
void ED_mask_view_lock_state_restore_no_jump(const bContext *C, const MaskViewLockState *state)
Definition mask_edit.cc:217
void MASK_OT_shape_key_clear(wmOperatorType *ot)
void MASK_OT_select_less(wmOperatorType *ot)
MaskLayer * ED_mask_layer_ensure(bContext *C, bool *r_added_mask)
Definition mask_ops.cc:76
void MASK_OT_select_linked(wmOperatorType *ot)
bool ED_mask_layer_select_check(const MaskLayer *mask_layer)
Mask * ED_mask_new(bContext *C, const char *name)
Definition mask_ops.cc:46
void MASK_OT_select_box(wmOperatorType *ot)
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)
void MASK_OT_hide_view_clear(wmOperatorType *ot)
Definition mask_ops.cc:1770
void MASK_OT_new(wmOperatorType *ot)
Definition mask_ops.cc:109
void MASK_OT_handle_type_set(wmOperatorType *ot)
Definition mask_ops.cc:1717
void ED_mask_select_flush_all(Mask *mask)
void MASK_OT_select_all(wmOperatorType *ot)
void MASK_OT_select_lasso(wmOperatorType *ot)
void MASK_OT_duplicate(wmOperatorType *ot)
Definition mask_ops.cc:2101
void MASK_OT_cyclic_toggle(wmOperatorType *ot)
Definition mask_ops.cc:1349
void ED_mask_view_lock_state_store(const bContext *C, MaskViewLockState *state)
Definition mask_edit.cc:209
void MASK_OT_delete(wmOperatorType *ot)
Definition mask_ops.cc:1525
void ED_mask_select_toggle_all(Mask *mask, int action)
void MASK_OT_add_vertex(wmOperatorType *ot)
Definition mask_add.cc:582
void MASK_OT_hide_view_set(wmOperatorType *ot)
Definition mask_ops.cc:1831
void MASK_OT_slide_point(wmOperatorType *ot)
Definition mask_ops.cc:914
void MASK_OT_switch_direction(wmOperatorType *ot)
Definition mask_ops.cc:1585
void ED_mask_layer_select_set(MaskLayer *mask_layer, bool do_select)
void MASK_OT_normals_make_consistent(wmOperatorType *ot)
Definition mask_ops.cc:1647
void MASK_OT_parent_set(wmOperatorType *ot)
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)
Definition mask_query.cc:36
void MASK_OT_select_linked_pick(wmOperatorType *ot)
static ulong state[N]
ClipViewLockState space_clip_state
wmOperatorType * ot
Definition wm_files.cc:4125