Blender V5.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
8
9#pragma once
10
11#include "BKE_mask.hh"
12
13#include "ED_clip.hh"
14
15namespace blender {
16
17struct Mask;
18struct MaskLayer;
19struct MaskSpline;
20struct MaskSplinePoint;
22struct bContext;
23struct wmOperatorType;
24
25/* internal exports only */
26
27/* `mask_add.cc` */
28
33
34/* `mask_ops.cc` */
35
36Mask *ED_mask_new(bContext *C, const char *name);
40MaskLayer *ED_mask_layer_ensure(bContext *C, bool *r_added_mask);
41
46
49
51
56/* Named to match mesh recalculate normals. */
58
60
63
67
68/* `mask_relationships.cc` */
69
73
74/* `mask_select.cc` */
75
78
86
87/* 'check' select */
88bool ED_mask_spline_select_check(const MaskSpline *spline);
89bool ED_mask_layer_select_check(const MaskLayer *mask_layer);
90bool ED_mask_select_check(const Mask *mask);
91
92void ED_mask_spline_select_set(MaskSpline *spline, bool do_select);
93void ED_mask_layer_select_set(MaskLayer *mask_layer, bool do_select);
94void ED_mask_select_toggle_all(Mask *mask, int action);
96
97/* mask_edit.cc */
98
99/* Generalized solution for preserving editor viewport when making changes while lock-to-selection
100 * is enabled.
101 * Any mask operator can use this API, without worrying that some editors do not have an idea of
102 * lock-to-selection. */
103
107
110
111/* `mask_query.cc` */
112
114 Mask *mask_orig,
115 const float normal_co[2],
116 int threshold,
117 bool feather,
118 float tangent[2],
119 bool use_deform,
120 bool use_project,
121 MaskLayer **r_mask_layer,
122 MaskSpline **r_spline,
123 MaskSplinePoint **r_point,
124 float *r_u,
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 MaskSplinePoint **r_point,
133 MaskSplinePointUW **r_uw,
134 float *r_score);
136 Mask *mask_orig,
137 const float normal_co[2],
138 float threshold,
139 MaskLayer **r_mask_layer,
140 MaskSpline **r_spline,
141 eMaskWhichHandle *r_which_handle,
142 float *r_score);
143
144/* `mask_shapekey.cc` */
145
150
151} // namespace blender
#define C
Definition RandGen.cpp:29
const int state
BMesh Iterators.
void MASK_OT_primitive_square_add(wmOperatorType *ot)
Definition mask_add.cc:915
eMaskWhichHandle
Definition BKE_mask.hh:44
void MASK_OT_switch_direction(wmOperatorType *ot)
Definition mask_ops.cc:1640
void MASK_OT_select_box(wmOperatorType *ot)
void ED_mask_select_toggle_all(Mask *mask, int action)
void ED_mask_view_lock_state_store(const bContext *C, MaskViewLockState *state)
Definition mask_edit.cc:209
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_layer_remove(wmOperatorType *ot)
Definition mask_ops.cc:227
void MASK_OT_delete(wmOperatorType *ot)
Definition mask_ops.cc:1580
void MASK_OT_hide_view_set(wmOperatorType *ot)
Definition mask_ops.cc:1886
void MASK_OT_select_circle(wmOperatorType *ot)
void MASK_OT_slide_point(wmOperatorType *ot)
Definition mask_ops.cc:962
MaskLayer * ED_mask_layer_ensure(bContext *C, bool *r_added_mask)
Definition mask_ops.cc:85
void MASK_OT_layer_move(wmOperatorType *ot)
Definition mask_ops.cc:2007
void MASK_OT_duplicate(wmOperatorType *ot)
Definition mask_ops.cc:2273
void MASK_OT_parent_clear(wmOperatorType *ot)
void MASK_OT_cyclic_toggle(wmOperatorType *ot)
Definition mask_ops.cc:1404
void MASK_OT_select(wmOperatorType *ot)
void MASK_OT_feather_weight_clear(wmOperatorType *ot)
Definition mask_ops.cc:1938
bool ED_mask_spline_select_check(const MaskSpline *spline)
void MASK_OT_parent_set(wmOperatorType *ot)
void MASK_OT_new(wmOperatorType *ot)
Definition mask_ops.cc:156
void MASK_OT_select_less(wmOperatorType *ot)
bool ED_mask_select_check(const Mask *mask)
void MASK_OT_select_linked_pick(wmOperatorType *ot)
void ED_mask_select_flush_all(Mask *mask)
void ED_mask_view_lock_state_restore_no_jump(const bContext *C, const MaskViewLockState *state)
Definition mask_edit.cc:217
void MASK_OT_normals_make_consistent(wmOperatorType *ot)
Definition mask_ops.cc:1702
void MASK_OT_paste_splines(wmOperatorType *ot)
Definition mask_ops.cc:2348
void ED_mask_layer_select_set(MaskLayer *mask_layer, bool do_select)
void MASK_OT_shape_key_insert(wmOperatorType *ot)
void MASK_OT_select_all(wmOperatorType *ot)
void MASK_OT_select_lasso(wmOperatorType *ot)
void MASK_OT_select_more(wmOperatorType *ot)
void MASK_OT_copy_splines(wmOperatorType *ot)
Definition mask_ops.cc:2304
void ED_mask_spline_select_set(MaskSpline *spline, bool do_select)
void MASK_OT_move_to_layer(wmOperatorType *ot)
Definition mask_ops.cc:2127
void MASK_OT_handle_type_set(wmOperatorType *ot)
Definition mask_ops.cc:1772
void MASK_OT_select_linked(wmOperatorType *ot)
void MASK_OT_hide_view_clear(wmOperatorType *ot)
Definition mask_ops.cc:1825
bool ED_mask_layer_select_check(const MaskLayer *mask_layer)
void MASK_OT_add_vertex(wmOperatorType *ot)
Definition mask_add.cc:585
void MASK_OT_shape_key_clear(wmOperatorType *ot)
void MASK_OT_add_feather_vertex(wmOperatorType *ot)
Definition mask_add.cc:684
void MASK_OT_primitive_circle_add(wmOperatorType *ot)
Definition mask_add.cc:880
Mask * ED_mask_new(bContext *C, const char *name)
Definition mask_ops.cc:55
void MASK_OT_slide_spline_curvature(wmOperatorType *ot)
Definition mask_ops.cc:1364
void MASK_OT_shape_key_rekey(wmOperatorType *ot)
void MASK_OT_shape_key_feather_reset(wmOperatorType *ot)
void MASK_OT_layer_new(wmOperatorType *ot)
Definition mask_ops.cc:192
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:37
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)
ClipViewLockState space_clip_state