[Bf-blender-cvs] [c80388c2545] soc-2019-bevel-profiles: Reorganize BKE_profile_widget.h
Hans Goudey
noreply at git.blender.org
Fri Jul 26 23:26:43 CEST 2019
Commit: c80388c2545b2dc6479d21db07716a7337c1fd72
Author: Hans Goudey
Date: Fri Jul 26 10:19:39 2019 -0400
Branches: soc-2019-bevel-profiles
https://developer.blender.org/rBc80388c2545b2dc6479d21db07716a7337c1fd72
Reorganize BKE_profile_widget.h
===================================================================
M source/blender/blenkernel/BKE_profile_widget.h
===================================================================
diff --git a/source/blender/blenkernel/BKE_profile_widget.h b/source/blender/blenkernel/BKE_profile_widget.h
index 49b48124e38..0048b0bba09 100644
--- a/source/blender/blenkernel/BKE_profile_widget.h
+++ b/source/blender/blenkernel/BKE_profile_widget.h
@@ -27,8 +27,6 @@
struct ProfileWidget;
struct ProfilePoint;
-/* HANS-TODO: Organize */
-
void profilewidget_set_defaults(struct ProfileWidget *prwdgt);
struct ProfileWidget *profilewidget_add(int preset);
@@ -41,49 +39,41 @@ void profilewidget_copy_data(struct ProfileWidget *target, const struct ProfileW
struct ProfileWidget *profilewidget_copy(const struct ProfileWidget *prwdgt);
-void profilewidget_create_samples(const struct ProfileWidget *prwdgt,
- float *locations,
- int n_segments,
- bool sample_straight_edges);
-
-/* Evaluates along the length of the path rather than with X coord */
-void profilewidget_evaluate(const struct ProfileWidget *prwdgt,
- int segment,
- float *x_out,
- float *y_out);
-
-/* Length portion is the fraction of the total path length where we want the location */
-void profilewidget_evaluate_portion(const struct ProfileWidget *prwdgt,
- float length_portion,
- float *x_out,
- float *y_out);
+bool profilewidget_remove_point(struct ProfileWidget *prwdgt, struct ProfilePoint *point);
-void profilewidget_initialize(struct ProfileWidget *prwdgt, short nsegments);
+void profilewidget_remove(struct ProfileWidget *prwdgt, const short flag);
-/* Need to find the total length of the curve to sample a portion of it */
-float profilewidget_total_length(const struct ProfileWidget *prwdgt);
+struct ProfilePoint *profilewidget_insert(struct ProfileWidget *prwdgt, float x, float y);
-/* Distance in 2D to the next point */
-float profilewidget_distance_to_next_point(const struct ProfileWidget *prwdgt, int i);
+void profilewidget_handle_set(struct ProfileWidget *prwdgt, int type);
+void profilewidget_reverse(struct ProfileWidget *prwdgt);
void profilewidget_reset(struct ProfileWidget *prwdgt);
-void profilewidget_remove(struct ProfileWidget *prwdgt, const short flag);
-
-bool profilewidget_remove_point(struct ProfileWidget *prwdgt, struct ProfilePoint *point);
-
-struct ProfilePoint *profilewidget_insert(struct ProfileWidget *prwdgt, float x, float y);
-
-void profilewidget_reverse(struct ProfileWidget *prwdgt);
+void profilewidget_create_samples(const struct ProfileWidget *prwdgt,
+ float *locations,
+ int n_segments,
+ bool sample_straight_edges);
-void profilewidget_handle_set(struct ProfileWidget *prwdgt, int type);
+void profilewidget_initialize(struct ProfileWidget *prwdgt, short nsegments);
/* Called for a complete update of the widget after modifications */
void profilewidget_changed(struct ProfileWidget *prwdgt, const bool rem_doubles);
+/* Distance in 2D to the next point */
+float profilewidget_distance_to_next_point(const struct ProfileWidget *prwdgt, int i);
+
+/* Need to find the total length of the curve to sample a portion of it */
+float profilewidget_total_length(const struct ProfileWidget *prwdgt);
+
void profilewidget_fill_segment_table(const struct ProfileWidget *prwdgt,
double *x_table_out,
double *y_table_out);
+/* Length portion is the fraction of the total path length where we want the location */
+void profilewidget_evaluate_portion(const struct ProfileWidget *prwdgt,
+ float length_portion,
+ float *x_out,
+ float *y_out);
#endif
More information about the Bf-blender-cvs
mailing list