Blender V5.0
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.h"
12
13#include "ED_clip.hh"
14
15struct Mask;
16struct MaskLayer;
17struct MaskSpline;
18struct MaskSplinePoint;
20struct bContext;
21struct wmOperatorType;
22
23/* internal exports only */
24
25/* `mask_add.cc` */
26
31
32/* `mask_ops.cc` */
33
34Mask *ED_mask_new(bContext *C, const char *name);
38MaskLayer *ED_mask_layer_ensure(bContext *C, bool *r_added_mask);
39
44
47
49
54/* Named to match mesh recalculate normals. */
56
58
60
64
65/* `mask_relationships.cc` */
66
70
71/* `mask_select.cc` */
72
75
83
84/* 'check' select */
85bool ED_mask_spline_select_check(const MaskSpline *spline);
86bool ED_mask_layer_select_check(const MaskLayer *mask_layer);
87bool ED_mask_select_check(const Mask *mask);
88
89void ED_mask_spline_select_set(MaskSpline *spline, bool do_select);
90void ED_mask_layer_select_set(MaskLayer *mask_layer, bool do_select);
91void ED_mask_select_toggle_all(Mask *mask, int action);
93
94/* mask_editor.c */
95
96/* Generalized solution for preserving editor viewport when making changes while lock-to-selection
97 * is enabled.
98 * Any mask operator can use this API, without worrying that some editors do not have an idea of
99 * lock-to-selection. */
100
104
107
108/* `mask_query.cc` */
109
111 Mask *mask_orig,
112 const float normal_co[2],
113 int threshold,
114 bool feather,
115 float tangent[2],
116 bool use_deform,
117 bool use_project,
118 MaskLayer **r_mask_layer,
119 MaskSpline **r_spline,
120 MaskSplinePoint **r_point,
121 float *r_u,
122 float *r_score);
124 Mask *mask_orig,
125 const float normal_co[2],
126 float threshold,
127 MaskLayer **r_mask_layer,
128 MaskSpline **r_spline,
129 MaskSplinePoint **r_point,
130 MaskSplinePointUW **r_uw,
131 float *r_score);
133 Mask *mask_orig,
134 const float normal_co[2],
135 float threshold,
136 MaskLayer **r_mask_layer,
137 MaskSpline **r_spline,
138 eMaskWhichHandle *r_which_handle,
139 float *r_score);
140
141/* `mask_shapekey.cc` */
142
eMaskWhichHandle
Definition BKE_mask.h:28
#define C
Definition RandGen.cpp:29
void MASK_OT_select_circle(wmOperatorType *ot)
void MASK_OT_add_feather_vertex(wmOperatorType *ot)
Definition mask_add.cc:683
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:1319
void MASK_OT_copy_splines(wmOperatorType *ot)
Definition mask_ops.cc:2142
void MASK_OT_layer_move(wmOperatorType *ot)
Definition mask_ops.cc:1962
void MASK_OT_select_more(wmOperatorType *ot)
void MASK_OT_feather_weight_clear(wmOperatorType *ot)
Definition mask_ops.cc:1893
void MASK_OT_layer_remove(wmOperatorType *ot)
Definition mask_ops.cc:182
void MASK_OT_shape_key_insert(wmOperatorType *ot)
void MASK_OT_paste_splines(wmOperatorType *ot)
Definition mask_ops.cc:2186
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:904
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:147
void MASK_OT_parent_clear(wmOperatorType *ot)
void MASK_OT_primitive_circle_add(wmOperatorType *ot)
Definition mask_add.cc:869
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:215
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:78
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:48
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:1780
void MASK_OT_new(wmOperatorType *ot)
Definition mask_ops.cc:111
void MASK_OT_handle_type_set(wmOperatorType *ot)
Definition mask_ops.cc:1727
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:2111
void MASK_OT_cyclic_toggle(wmOperatorType *ot)
Definition mask_ops.cc:1359
void ED_mask_view_lock_state_store(const bContext *C, MaskViewLockState *state)
Definition mask_edit.cc:207
void MASK_OT_delete(wmOperatorType *ot)
Definition mask_ops.cc:1535
void ED_mask_select_toggle_all(Mask *mask, int action)
void MASK_OT_add_vertex(wmOperatorType *ot)
Definition mask_add.cc:584
void MASK_OT_hide_view_set(wmOperatorType *ot)
Definition mask_ops.cc:1841
void MASK_OT_slide_point(wmOperatorType *ot)
Definition mask_ops.cc:917
void MASK_OT_switch_direction(wmOperatorType *ot)
Definition mask_ops.cc:1595
void ED_mask_layer_select_set(MaskLayer *mask_layer, bool do_select)
void MASK_OT_normals_make_consistent(wmOperatorType *ot)
Definition mask_ops.cc:1657
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)
ccl_device_inline float2 mask(const MaskType mask, const float2 a)
static ulong state[N]
const char * name
ClipViewLockState space_clip_state
wmOperatorType * ot
Definition wm_files.cc:4237