Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-03-25 11:06:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-25 11:06:17 +0300
commit4c57f07a0fde0ca067e5b0e6609ded6c0e170cc2 (patch)
tree652abc47c4f68fd7377c031d82ada29949bb4f28 /source/blender/editors/mask/mask_intern.h
parent2bc791437e3b8e42c1369daf15c72934474b1e73 (diff)
Cleanup: move mask queries into own file
Similar functions to lookup nearest mask points were in mask_add.c & mask_edit.c
Diffstat (limited to 'source/blender/editors/mask/mask_intern.h')
-rw-r--r--source/blender/editors/mask/mask_intern.h65
1 files changed, 32 insertions, 33 deletions
diff --git a/source/blender/editors/mask/mask_intern.h b/source/blender/editors/mask/mask_intern.h
index e194a68c45d..6a45af4d2a6 100644
--- a/source/blender/editors/mask/mask_intern.h
+++ b/source/blender/editors/mask/mask_intern.h
@@ -31,20 +31,6 @@ struct wmOperatorType;
/* internal exports only */
/* mask_add.c */
-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],
- const bool use_deform,
- const bool use_project,
- struct MaskLayer **r_mask_layer,
- struct MaskSpline **r_spline,
- struct MaskSplinePoint **r_point,
- float *r_u,
- float *r_score);
-
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);
@@ -72,25 +58,6 @@ void MASK_OT_normals_make_consistent(struct wmOperatorType *ot);
void MASK_OT_handle_type_set(struct wmOperatorType *ot);
-bool ED_mask_feather_find_nearest(const struct bContext *C,
- struct Mask *mask,
- const float normal_co[2],
- const float threshold,
- struct MaskLayer **r_mask_layer,
- struct MaskSpline **r_spline,
- struct MaskSplinePoint **r_point,
- struct MaskSplinePointUW **r_uw,
- float *r_score);
-
-struct MaskSplinePoint *ED_mask_point_find_nearest(const struct bContext *C,
- struct Mask *mask,
- const float normal_co[2],
- const float threshold,
- struct MaskLayer **r_mask_layer,
- struct MaskSpline **r_spline,
- eMaskWhichHandle *r_which_handle,
- float *r_score);
-
void MASK_OT_layer_move(struct wmOperatorType *ot);
void MASK_OT_duplicate(struct wmOperatorType *ot);
@@ -126,6 +93,38 @@ void ED_mask_select_flush_all(struct Mask *mask);
bool ED_maskedit_poll(struct bContext *C);
bool ED_maskedit_mask_poll(struct bContext *C);
+/* mask_query.c */
+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],
+ const bool use_deform,
+ const 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],
+ const float threshold,
+ struct MaskLayer **r_mask_layer,
+ struct MaskSpline **r_spline,
+ struct MaskSplinePoint **r_point,
+ struct MaskSplinePointUW **r_uw,
+ float *r_score);
+struct MaskSplinePoint *ED_mask_point_find_nearest(const struct bContext *C,
+ struct Mask *mask,
+ const float normal_co[2],
+ const float threshold,
+ struct MaskLayer **r_mask_layer,
+ struct MaskSpline **r_spline,
+ eMaskWhichHandle *r_which_handle,
+ float *r_score);
+
/* mask_shapekey.c */
void MASK_OT_shape_key_insert(struct wmOperatorType *ot);
void MASK_OT_shape_key_clear(struct wmOperatorType *ot);