70 static void rna_CurveProfilePoint_handle_type_set(
PointerRNA *
ptr,
int value)
82 static void rna_CurveProfile_clip_set(
PointerRNA *
ptr,
bool value)
96 static void rna_CurveProfile_sample_straight_set(
PointerRNA *
ptr,
bool value)
110 static void rna_CurveProfile_sample_even_set(
PointerRNA *
ptr,
bool value)
124 static void rna_CurveProfile_remove_point(
CurveProfile *profile,
137 static void rna_CurveProfile_evaluate(
struct CurveProfile *profile,
139 float length_portion,
142 if (!profile->
table) {
148 static void rna_CurveProfile_initialize(
struct CurveProfile *profile,
int segments_len)
153 static void rna_CurveProfile_update(
struct CurveProfile *profile)
161 {
HD_AUTO,
"AUTO", ICON_HANDLE_AUTO,
"Auto Handle",
""},
162 {
HD_VECT,
"VECTOR", ICON_HANDLE_VECTOR,
"Vector Handle",
""},
163 {
HD_FREE,
"FREE", ICON_HANDLE_FREE,
"Free Handle",
""},
164 {
HD_ALIGN,
"ALIGN", ICON_HANDLE_ALIGNED,
"Aligned Free Handles",
""},
217 "X Position for new point",
227 "Y Position for new point",
231 parm =
RNA_def_pointer(func,
"point",
"CurveProfilePoint",
"",
"New point");
237 parm =
RNA_def_pointer(func,
"point",
"CurveProfilePoint",
"",
"Point to remove");
254 {
PROF_PRESET_STEPS,
"STEPS", 0,
"Steps",
"A number of steps defined by the segments"},
294 "The number of segment values to"
295 " initialize the segments table with",
321 "Portion of the path length to travel before evaluation",
332 "The location at the given portion of the profile",
@ PROF_UPDATE_REMOVE_DOUBLES
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, const int update_flags)
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)
Blender kernel freestyle line style functionality.
void BKE_report(ReportList *reports, ReportType type, const char *message)
@ PROF_SAMPLE_EVEN_LENGTHS
@ PROF_SAMPLE_STRAIGHT_EDGES
Object is a sort of wrapper for general info.
Read Guarded memory(de)allocation.
#define RNA_POINTER_INVALIDATE(ptr)
const EnumPropertyItem rna_enum_curveprofile_preset_items[]
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)
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, float default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
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)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_function_output(FunctionRNA *UNUSED(func), PropertyRNA *ret)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
PropertyRNA * RNA_def_float_vector(StructOrFunctionRNA *cont_, const char *identifier, int len, const float *default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_property_array(PropertyRNA *prop, int length)
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)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
void RNA_def_function_flag(FunctionRNA *func, int flag)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, int default_value, int hardmin, int hardmax, const char *ui_name, const char *ui_description, int softmin, int softmax)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
struct CurveProfile * profile
CurveProfilePoint * table
void WM_main_add_notifier(unsigned int type, void *reference)