33static void rna_CurveProfilePoint_handle_type_set(
PointerRNA *
ptr,
int value)
45static void rna_CurveProfile_clip_set(
PointerRNA *
ptr,
bool value)
53 profile->flag &= ~PROF_USE_CLIP;
59static void rna_CurveProfile_sample_straight_set(
PointerRNA *
ptr,
bool value)
67 profile->flag &= ~PROF_SAMPLE_STRAIGHT_EDGES;
73static void rna_CurveProfile_sample_even_set(
PointerRNA *
ptr,
bool value)
81 profile->flag &= ~PROF_SAMPLE_EVEN_LENGTHS;
87static void rna_CurveProfile_remove_point(
CurveProfile *profile,
100static void rna_CurveProfile_evaluate(
CurveProfile *profile,
102 float length_portion,
105 if (!profile->table) {
111static void rna_CurveProfile_initialize(
CurveProfile *profile,
int segments_len)
116static void rna_CurveProfile_update(
CurveProfile *profile)
124 {
HD_AUTO,
"AUTO", ICON_HANDLE_AUTO,
"Auto Handle",
""},
125 {
HD_VECT,
"VECTOR", ICON_HANDLE_VECTOR,
"Vector Handle",
""},
126 {
HD_FREE,
"FREE", ICON_HANDLE_FREE,
"Free Handle",
""},
127 {
HD_ALIGN,
"ALIGN", ICON_HANDLE_ALIGNED,
"Aligned Free Handles",
""},
128 {0,
nullptr, 0,
nullptr,
nullptr},
180 "X Position for new point",
190 "Y Position for new point",
194 parm =
RNA_def_pointer(func,
"point",
"CurveProfilePoint",
"",
"New point");
200 parm =
RNA_def_pointer(func,
"point",
"CurveProfilePoint",
"",
"Point to remove");
217 {
PROF_PRESET_STEPS,
"STEPS", 0,
"Steps",
"A number of steps defined by the segments"},
218 {0,
nullptr, 0,
nullptr,
nullptr},
258 "The number of segment values to"
259 " initialize the segments table with",
285 "Portion of the path length to travel before evaluation",
296 "The location at the given portion of the profile",
void BKE_curveprofile_selected_handle_set(struct CurveProfile *profile, int type_1, int type_2)
bool BKE_curveprofile_remove_point(struct CurveProfile *profile, struct CurveProfilePoint *point)
void BKE_curveprofile_update(struct CurveProfile *profile, int update_flags)
@ PROF_UPDATE_REMOVE_DOUBLES
void BKE_curveprofile_evaluate_length_portion(const struct CurveProfile *profile, float length_portion, float *x_out, float *y_out)
void BKE_curveprofile_init(struct CurveProfile *profile, short segments_len)
void BKE_report(ReportList *reports, eReportType type, const char *message)
#define BLT_I18NCONTEXT_ID_MESH
@ PROF_SAMPLE_EVEN_LENGTHS
@ PROF_SAMPLE_STRAIGHT_EDGES
#define RNA_POINTER_INVALIDATE(ptr)
static void rna_def_curveprofile(BlenderRNA *brna)
static const EnumPropertyItem prop_handle_type_items[]
static void rna_def_curveprofilepoint(BlenderRNA *brna)
static void rna_def_curveprofile_points_api(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_profile(BlenderRNA *brna)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
PropertyRNA * RNA_def_float_vector(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
void RNA_def_property_array(PropertyRNA *prop, int length)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_function_flag(FunctionRNA *func, int flag)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
void RNA_def_function_output(FunctionRNA *, PropertyRNA *ret)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void WM_main_add_notifier(uint type, void *reference)