34 "DISTANCE_FROM_CAMERA",
36 "Distance from Camera",
39 "DISTANCE_FROM_OBJECT",
41 "Distance from Object",
46 {0,
nullptr, 0,
nullptr,
nullptr},
54 "DISTANCE_FROM_CAMERA",
56 "Distance from Camera",
59 "DISTANCE_FROM_OBJECT",
61 "Distance from Object",
66 {0,
nullptr, 0,
nullptr,
nullptr},
75 "DISTANCE_FROM_CAMERA",
77 "Distance from Camera",
80 "DISTANCE_FROM_OBJECT",
82 "Distance from Object",
87 {0,
nullptr, 0,
nullptr,
nullptr},
107 "SINUS_DISPLACEMENT",
109 "Sinus Displacement",
113 {0,
nullptr, 0,
nullptr,
nullptr},
120# include <fmt/format.h>
144 return RNA_LineStyleColorModifier_AlongStroke;
146 return RNA_LineStyleColorModifier_DistanceFromCamera;
148 return RNA_LineStyleColorModifier_DistanceFromObject;
150 return RNA_LineStyleColorModifier_Material;
152 return RNA_LineStyleColorModifier_Tangent;
154 return RNA_LineStyleColorModifier_Noise;
156 return RNA_LineStyleColorModifier_CreaseAngle;
158 return RNA_LineStyleColorModifier_Curvature_3D;
160 return RNA_LineStyleColorModifier;
170 return RNA_LineStyleAlphaModifier_AlongStroke;
172 return RNA_LineStyleAlphaModifier_DistanceFromCamera;
174 return RNA_LineStyleAlphaModifier_DistanceFromObject;
176 return RNA_LineStyleAlphaModifier_Material;
178 return RNA_LineStyleAlphaModifier_Tangent;
180 return RNA_LineStyleAlphaModifier_Noise;
182 return RNA_LineStyleAlphaModifier_CreaseAngle;
184 return RNA_LineStyleAlphaModifier_Curvature_3D;
186 return RNA_LineStyleAlphaModifier;
196 return RNA_LineStyleThicknessModifier_AlongStroke;
198 return RNA_LineStyleThicknessModifier_DistanceFromCamera;
200 return RNA_LineStyleThicknessModifier_DistanceFromObject;
202 return RNA_LineStyleThicknessModifier_Material;
204 return RNA_LineStyleThicknessModifier_Calligraphy;
206 return RNA_LineStyleThicknessModifier_Tangent;
208 return RNA_LineStyleThicknessModifier_Noise;
210 return RNA_LineStyleThicknessModifier_CreaseAngle;
212 return RNA_LineStyleThicknessModifier_Curvature_3D;
214 return RNA_LineStyleThicknessModifier;
224 return RNA_LineStyleGeometryModifier_Sampling;
226 return RNA_LineStyleGeometryModifier_BezierCurve;
228 return RNA_LineStyleGeometryModifier_SinusDisplacement;
230 return RNA_LineStyleGeometryModifier_SpatialNoise;
232 return RNA_LineStyleGeometryModifier_PerlinNoise1D;
234 return RNA_LineStyleGeometryModifier_PerlinNoise2D;
236 return RNA_LineStyleGeometryModifier_BackboneStretcher;
238 return RNA_LineStyleGeometryModifier_TipRemover;
240 return RNA_LineStyleGeometryModifier_Polygonalization;
242 return RNA_LineStyleGeometryModifier_GuidingLines;
244 return RNA_LineStyleGeometryModifier_Blueprint;
246 return RNA_LineStyleGeometryModifier_2DOffset;
248 return RNA_LineStyleGeometryModifier_2DTransform;
250 return RNA_LineStyleGeometryModifier_Simplification;
252 return RNA_LineStyleGeometryModifier;
256static std::optional<std::string> rna_LineStyle_color_modifier_path(
const PointerRNA *ptr)
259 char name_esc[
sizeof(m->name) * 2];
261 return fmt::format(
"color_modifiers[\"{}\"]", name_esc);
264static std::optional<std::string> rna_LineStyle_alpha_modifier_path(
const PointerRNA *ptr)
267 char name_esc[
sizeof(m->name) * 2];
269 return fmt::format(
"alpha_modifiers[\"{}\"]", name_esc);
272static std::optional<std::string> rna_LineStyle_thickness_modifier_path(
const PointerRNA *ptr)
275 char name_esc[
sizeof(m->name) * 2];
277 return fmt::format(
"thickness_modifiers[\"{}\"]", name_esc);
280static std::optional<std::string> rna_LineStyle_geometry_modifier_path(
const PointerRNA *ptr)
283 char name_esc[
sizeof(m->name) * 2];
285 return fmt::format(
"geometry_modifiers[\"{}\"]", name_esc);
288static void rna_LineStyleColorModifier_name_set(
PointerRNA *ptr,
const char *value)
302static void rna_LineStyleAlphaModifier_name_set(
PointerRNA *ptr,
const char *value)
316static void rna_LineStyleThicknessModifier_name_set(
PointerRNA *ptr,
const char *value)
330static void rna_LineStyleGeometryModifier_name_set(
PointerRNA *ptr,
const char *value)
348 iter, ptr,
static_cast<void *
>(linestyle->mtex),
sizeof(
MTex *),
MAX_MTEX, 0,
nullptr);
360static void rna_LineStyle_active_texture_set(
PointerRNA *ptr,
381 if (linestyle->use_nodes && linestyle->nodetree ==
nullptr) {
418 modifier_ptr->invalidate();
454 modifier_ptr->invalidate();
487 reports,
RPT_ERROR,
"Thickness modifier '%s' could not be removed",
modifier->name);
491 modifier_ptr->invalidate();
527 modifier_ptr->invalidate();
545 {
TEXCO_WINDOW,
"WINDOW", 0,
"Window",
"Use screen coordinates as texture coordinates"},
546 {
TEXCO_GLOB,
"GLOBAL", 0,
"Global",
"Use global coordinates for the texture coordinates"},
551 "Use stroke length for texture coordinates"},
556 "Use the original undeformed coordinates of the object"},
557 {0,
nullptr, 0,
nullptr,
nullptr},
561 {
MTEX_FLAT,
"FLAT", 0,
"Flat",
"Map X and Y coordinates directly"},
562 {
MTEX_CUBE,
"CUBE", 0,
"Cube",
"Map using the normal vector"},
563 {
MTEX_TUBE,
"TUBE", 0,
"Tube",
"Map with Z as central axis"},
564 {
MTEX_SPHERE,
"SPHERE", 0,
"Sphere",
"Map with Z as central axis"},
565 {0,
nullptr, 0,
nullptr,
nullptr},
569 {0,
"NONE", 0,
"None",
""},
570 {1,
"X", 0,
"X",
""},
571 {2,
"Y", 0,
"Y",
""},
572 {3,
"Z", 0,
"Z",
""},
573 {0,
nullptr, 0,
nullptr,
nullptr},
577 {0,
"NONE", 0,
"None",
""},
578 {1,
"X", 0,
"X",
""},
579 {2,
"Y", 0,
"Y",
""},
580 {3,
"Z", 0,
"Z",
""},
581 {0,
nullptr, 0,
nullptr,
nullptr},
585 {0,
"NONE", 0,
"None",
""},
586 {1,
"X", 0,
"X",
""},
587 {2,
"Y", 0,
"Y",
""},
588 {3,
"Z", 0,
"Z",
""},
589 {0,
nullptr, 0,
nullptr,
nullptr},
592 srna =
RNA_def_struct(brna,
"LineStyleTextureSlot",
"TextureSlot");
595 srna,
"LineStyle Texture Slot",
"Texture slot for textures in a LineStyle data-block");
637 "Texture Coordinates",
638 "Texture coordinates used to map the texture onto the background");
671 {0,
nullptr, 0,
nullptr,
nullptr},
685 prop,
"Blend",
"Specify how the modifier value is blended into the base value");
692 prop,
"Influence",
"Influence factor by which the modifier changes the property");
742 prop,
"Range Min",
"Lower bound of the input range the mapping is applied");
748 prop,
"Range Max",
"Upper bound of the input range the mapping is applied");
758 {0,
"LINEAR", 0,
"Linear",
"Use linear mapping"},
760 {0,
nullptr, 0,
nullptr,
nullptr},
784 prop,
"Range Min",
"Lower bound of the input range the mapping is applied");
790 prop,
"Range Max",
"Upper bound of the input range the mapping is applied");
827 {0,
nullptr, 0,
nullptr,
nullptr},
847 "Draw a blueprint using circular contour strokes"},
852 "Draw a blueprint using elliptic contour strokes"},
857 "Draw a blueprint using square contour strokes"},
858 {0,
nullptr, 0,
nullptr,
nullptr},
867 {0,
nullptr, 0,
nullptr,
nullptr},
875 srna =
RNA_def_struct(brna,
"LineStyleColorModifier",
"LineStyleModifier");
880 srna,
"Line Style Color Modifier",
"Base type to define line color modifiers");
889 srna =
RNA_def_struct(brna,
"LineStyleColorModifier_AlongStroke",
"LineStyleColorModifier");
895 brna,
"LineStyleColorModifier_DistanceFromCamera",
"LineStyleColorModifier");
897 srna,
"Distance from Camera",
"Change line color based on the distance from the camera");
902 brna,
"LineStyleColorModifier_DistanceFromObject",
"LineStyleColorModifier");
904 srna,
"Distance from Object",
"Change line color based on the distance from an object");
915 srna =
RNA_def_struct(brna,
"LineStyleColorModifier_Material",
"LineStyleColorModifier");
926 srna =
RNA_def_struct(brna,
"LineStyleColorModifier_Tangent",
"LineStyleColorModifier");
931 srna =
RNA_def_struct(brna,
"LineStyleColorModifier_Noise",
"LineStyleColorModifier");
952 srna =
RNA_def_struct(brna,
"LineStyleColorModifier_CreaseAngle",
"LineStyleColorModifier");
954 srna,
"Crease Angle",
"Change line color based on the underlying crease angle");
968 srna =
RNA_def_struct(brna,
"LineStyleColorModifier_Curvature_3D",
"LineStyleColorModifier");
970 srna,
"Curvature 3D",
"Change line color based on the radial curvature of 3D mesh surfaces");
986 srna =
RNA_def_struct(brna,
"LineStyleAlphaModifier",
"LineStyleModifier");
991 srna,
"Line Style Alpha Modifier",
"Base type to define alpha transparency modifiers");
1000 srna =
RNA_def_struct(brna,
"LineStyleAlphaModifier_AlongStroke",
"LineStyleAlphaModifier");
1006 brna,
"LineStyleAlphaModifier_DistanceFromCamera",
"LineStyleAlphaModifier");
1008 "Distance from Camera",
1009 "Change alpha transparency based on the distance from the camera");
1014 brna,
"LineStyleAlphaModifier_DistanceFromObject",
"LineStyleAlphaModifier");
1016 "Distance from Object",
1017 "Change alpha transparency based on the distance from an object");
1028 srna =
RNA_def_struct(brna,
"LineStyleAlphaModifier_Material",
"LineStyleAlphaModifier");
1030 srna,
"Material",
"Change alpha transparency based on a material attribute");
1035 srna =
RNA_def_struct(brna,
"LineStyleAlphaModifier_Tangent",
"LineStyleAlphaModifier");
1037 srna,
"Tangent",
"Alpha transparency based on the direction of the stroke");
1041 srna =
RNA_def_struct(brna,
"LineStyleAlphaModifier_Noise",
"LineStyleAlphaModifier");
1062 srna =
RNA_def_struct(brna,
"LineStyleAlphaModifier_CreaseAngle",
"LineStyleAlphaModifier");
1064 srna,
"Crease Angle",
"Alpha transparency based on the angle between two adjacent faces");
1078 srna =
RNA_def_struct(brna,
"LineStyleAlphaModifier_Curvature_3D",
"LineStyleAlphaModifier");
1081 "Alpha transparency based on the radial curvature of 3D mesh surfaces");
1098 srna =
RNA_def_struct(brna,
"LineStyleThicknessModifier",
"LineStyleModifier");
1103 srna,
"Line Style Thickness Modifier",
"Base type to define line thickness modifiers");
1112 srna =
RNA_def_struct(brna,
"LineStyleThicknessModifier_Tangent",
"LineStyleThicknessModifier");
1130 brna,
"LineStyleThicknessModifier_AlongStroke",
"LineStyleThicknessModifier");
1136 brna,
"LineStyleThicknessModifier_DistanceFromCamera",
"LineStyleThicknessModifier");
1138 srna,
"Distance from Camera",
"Change line thickness based on the distance from the camera");
1143 brna,
"LineStyleThicknessModifier_DistanceFromObject",
"LineStyleThicknessModifier");
1145 srna,
"Distance from Object",
"Change line thickness based on the distance from an object");
1156 srna =
RNA_def_struct(brna,
"LineStyleThicknessModifier_Material",
"LineStyleThicknessModifier");
1163 brna,
"LineStyleThicknessModifier_Calligraphy",
"LineStyleThicknessModifier");
1167 "Change line thickness so that stroke looks like made with a calligraphic pen");
1181 "Minimum thickness in the direction perpendicular to the main direction");
1190 srna =
RNA_def_struct(brna,
"LineStyleThicknessModifier_Noise",
"LineStyleThicknessModifier");
1216 brna,
"LineStyleThicknessModifier_Curvature_3D",
"LineStyleThicknessModifier");
1218 srna,
"Curvature 3D",
"Line thickness based on the radial curvature of 3D mesh surfaces");
1247 brna,
"LineStyleThicknessModifier_CreaseAngle",
"LineStyleThicknessModifier");
1249 srna,
"Crease Angle",
"Line thickness based on the angle between two adjacent faces");
1277 srna =
RNA_def_struct(brna,
"LineStyleGeometryModifier",
"LineStyleModifier");
1282 srna,
"Line Style Geometry Modifier",
"Base type to define stroke geometry modifiers");
1291 srna =
RNA_def_struct(brna,
"LineStyleGeometryModifier_Sampling",
"LineStyleGeometryModifier");
1295 "Specify a new sampling value that determines the resolution of stroke polylines");
1302 prop,
"Sampling",
"New sampling value to be used for subsequent modifiers");
1306 brna,
"LineStyleGeometryModifier_BezierCurve",
"LineStyleGeometryModifier");
1309 "Replace stroke backbone geometry by a Bézier curve approximation of the "
1310 "original backbone geometry");
1317 "Maximum distance allowed between the new Bézier curve and the "
1318 "original backbone geometry");
1323 brna,
"LineStyleGeometryModifier_SinusDisplacement",
"LineStyleGeometryModifier");
1325 srna,
"Sinus Displacement",
"Add sinus displacement to stroke backbone geometry");
1345 brna,
"LineStyleGeometryModifier_SpatialNoise",
"LineStyleGeometryModifier");
1362 prop,
"Octaves",
"Number of octaves (i.e., the amount of detail of the spatial noise)");
1374 prop,
"Pure Random",
"If true, the spatial noise does not show any coherence");
1378 brna,
"LineStyleGeometryModifier_PerlinNoise1D",
"LineStyleGeometryModifier");
1380 srna,
"Perlin Noise 1D",
"Add one-dimensional Perlin noise to stroke backbone geometry");
1396 prop,
"Octaves",
"Number of octaves (i.e., the amount of detail of the Perlin noise)");
1409 "Seed for random number generation (if negative, time is used as a seed instead)");
1413 brna,
"LineStyleGeometryModifier_PerlinNoise2D",
"LineStyleGeometryModifier");
1415 srna,
"Perlin Noise 2D",
"Add two-dimensional Perlin noise to stroke backbone geometry");
1431 prop,
"Octaves",
"Number of octaves (i.e., the amount of detail of the Perlin noise)");
1444 "Seed for random number generation (if negative, time is used as a seed instead)");
1448 brna,
"LineStyleGeometryModifier_BackboneStretcher",
"LineStyleGeometryModifier");
1450 srna,
"Backbone Stretcher",
"Stretch the beginning and the end of stroke backbone");
1458 srna =
RNA_def_struct(brna,
"LineStyleGeometryModifier_TipRemover",
"LineStyleGeometryModifier");
1462 "Remove a piece of stroke at the beginning and the end of stroke backbone");
1471 brna,
"LineStyleGeometryModifier_Polygonalization",
"LineStyleGeometryModifier");
1473 srna,
"Polygonalization",
"Modify the stroke geometry so that it looks more 'polygonal'");
1481 "Maximum distance between the original stroke and its polygonal approximation");
1486 brna,
"LineStyleGeometryModifier_GuidingLines",
"LineStyleGeometryModifier");
1490 "Modify the stroke geometry so that it corresponds to its main direction line");
1496 prop,
"Offset",
"Displacement that is applied to the main direction line along its normal");
1499 srna =
RNA_def_struct(brna,
"LineStyleGeometryModifier_Blueprint",
"LineStyleGeometryModifier");
1503 "Produce a blueprint using circular, elliptic, and square contour strokes");
1538 srna =
RNA_def_struct(brna,
"LineStyleGeometryModifier_2DOffset",
"LineStyleGeometryModifier");
1540 srna,
"2D Offset",
"Add two-dimensional offsets to stroke backbone geometry");
1546 prop,
"Start",
"Displacement that is applied from the beginning of the stroke");
1557 prop,
"X",
"Displacement that is applied to the X coordinates of stroke vertices");
1563 prop,
"Y",
"Displacement that is applied to the Y coordinates of stroke vertices");
1567 brna,
"LineStyleGeometryModifier_2DTransform",
"LineStyleGeometryModifier");
1570 "Apply two-dimensional scaling and rotation to stroke backbone geometry");
1600 "Stroke Point Parameter",
1601 "Pivot in terms of the stroke point parameter u (0 <= u <= 1)");
1615 brna,
"LineStyleGeometryModifier_Simplification",
"LineStyleGeometryModifier");
1640 func,
"name",
"ColorModifier", 0,
"",
"New name for the color modifier (not unique)");
1647 "Color modifier type to add");
1650 func,
"modifier",
"LineStyleColorModifier",
"",
"Newly added color modifier");
1654 func =
RNA_def_function(srna,
"remove",
"rna_LineStyle_color_modifier_remove");
1658 func,
"modifier",
"LineStyleColorModifier",
"",
"Color modifier to remove");
1678 func,
"name",
"AlphaModifier", 0,
"",
"New name for the alpha modifier (not unique)");
1685 "Alpha modifier type to add");
1688 func,
"modifier",
"LineStyleAlphaModifier",
"",
"Newly added alpha modifier");
1692 func =
RNA_def_function(srna,
"remove",
"rna_LineStyle_alpha_modifier_remove");
1696 func,
"modifier",
"LineStyleAlphaModifier",
"",
"Alpha modifier to remove");
1708 srna =
RNA_def_struct(brna,
"LineStyleThicknessModifiers",
nullptr);
1711 srna,
"Thickness Modifiers",
"Thickness modifiers for changing line thickness");
1713 func =
RNA_def_function(srna,
"new",
"rna_LineStyle_thickness_modifier_add");
1718 "ThicknessModifier",
1721 "New name for the thickness modifier (not unique)");
1728 "Thickness modifier type to add");
1731 func,
"modifier",
"LineStyleThicknessModifier",
"",
"Newly added thickness modifier");
1735 func =
RNA_def_function(srna,
"remove",
"rna_LineStyle_thickness_modifier_remove");
1739 func,
"modifier",
"LineStyleThicknessModifier",
"",
"Thickness modifier to remove");
1751 srna =
RNA_def_struct(brna,
"LineStyleGeometryModifiers",
nullptr);
1754 srna,
"Geometry Modifiers",
"Geometry modifiers for changing line geometries");
1756 func =
RNA_def_function(srna,
"new",
"rna_LineStyle_geometry_modifier_add");
1760 func,
"name",
"GeometryModifier", 0,
"",
"New name for the geometry modifier (not unique)");
1767 "Geometry modifier type to add");
1770 func,
"modifier",
"LineStyleGeometryModifier",
"",
"Newly added geometry modifier");
1774 func =
RNA_def_function(srna,
"remove",
"rna_LineStyle_geometry_modifier_remove");
1778 func,
"modifier",
"LineStyleGeometryModifier",
"",
"Geometry modifier to remove");
1789 {
LS_PANEL_STROKES,
"STROKES", 0,
"Strokes",
"Show the panel for stroke construction"},
1790 {
LS_PANEL_COLOR,
"COLOR", 0,
"Color",
"Show the panel for line color options"},
1791 {
LS_PANEL_ALPHA,
"ALPHA", 0,
"Alpha",
"Show the panel for alpha transparency options"},
1796 "Show the panel for line thickness options"},
1797 {
LS_PANEL_GEOMETRY,
"GEOMETRY", 0,
"Geometry",
"Show the panel for stroke geometry options"},
1798 {
LS_PANEL_TEXTURE,
"TEXTURE", 0,
"Texture",
"Show the panel for stroke texture options"},
1800 {
LS_PANEL_MISC,
"MISC", 0,
"Misc",
"Show the panel for miscellaneous options"},
1802 {0,
nullptr, 0,
nullptr,
nullptr},
1807 {0,
nullptr, 0,
nullptr,
nullptr},
1811 {
LS_CAPS_ROUND,
"ROUND", 0,
"Round",
"Round cap (half-circle)"},
1812 {
LS_CAPS_SQUARE,
"SQUARE", 0,
"Square",
"Square cap (flat and extended)"},
1813 {0,
nullptr, 0,
nullptr,
nullptr},
1820 "Silhouettes and border edges are centered along stroke geometry"},
1825 "Silhouettes and border edges are drawn inside of stroke geometry"},
1830 "Silhouettes and border edges are drawn outside of stroke geometry"},
1835 "Silhouettes and border edges are shifted by a user-defined ratio"},
1836 {0,
nullptr, 0,
nullptr,
nullptr},
1840 "DISTANCE_FROM_CAMERA",
1842 "Distance from Camera",
1843 "Sort by distance from camera (closer lines lie on top of further lines)"},
1848 "Sort by curvilinear 2D length (longer lines lie on top of shorter lines)"},
1853 "Sort by the projected X value in the image coordinate system"},
1858 "Sort by the projected Y value in the image coordinate system"},
1859 {0,
nullptr, 0,
nullptr,
nullptr},
1862 {0,
"DEFAULT", 0,
"Default",
"Default order of the sort key"},
1864 {0,
nullptr, 0,
nullptr,
nullptr},
1871 "The value computed for the chain is the mean of the values obtained for chain vertices"},
1876 "The value computed for the chain is the minimum of the values obtained for chain "
1882 "The value computed for the chain is the maximum of the values obtained for chain "
1888 "The value computed for the chain is the value obtained for the first chain vertex"},
1893 "The value computed for the chain is the value obtained for the last chain vertex"},
1894 {0,
nullptr, 0,
nullptr,
nullptr},
1899 srna,
"Freestyle Line Style",
"Freestyle line style, reusable by multiple line sets");
1904 "rna_LineStyle_mtex_begin",
1905 "rna_LineStyle_active_texture_get",
1906 "rna_LineStyle_active_texture_set",
1908 "LineStyleTextureSlot",
1909 "LineStyleTextureSlots",
1910 "rna_LineStyle_update",
1911 "rna_LineStyle_update");
1923 prop,
"Color",
"Base line color, possibly modified by line color modifiers");
1931 "Alpha Transparency",
1932 "Base alpha transparency, possibly modified by alpha transparency modifiers");
1939 prop,
"Thickness",
"Base line thickness, possibly modified by line thickness modifiers");
1946 "Thickness Position",
1947 "Thickness position of silhouettes and border edges (applicable when "
1948 "plain chaining is used with the Same Object option)");
1957 "A number between 0 (inside) and 1 (outside) specifying the relative position of "
1958 "stroke thickness");
1994 prop,
"Chaining Method",
"Select the way how feature edges are jointed to form chains");
2006 prop,
"Same Object",
"If true, only feature edges of the same object are joined");
2012 prop,
"Use Split Length",
"Enable chain splitting by curvilinear 2D length");
2025 "Split chains at points with angles smaller than the minimum 2D angle");
2038 "Split chains at points with angles larger than the maximum 2D angle");
2050 prop,
"Use Min 2D Length",
"Enable the selection of chains by a minimum 2D length");
2057 prop,
"Min 2D Length",
"Minimum curvilinear 2D length for the selection of chains");
2063 prop,
"Use Max 2D Length",
"Enable the selection of chains by a maximum 2D length");
2070 prop,
"Max 2D Length",
"Maximum curvilinear 2D length for the selection of chains");
2086 prop,
"Use Split Pattern",
"Enable chain splitting by dashed line patterns");
2128 "Material Boundary",
2129 "If true, chains of feature edges are split at material boundaries");
2141 prop,
"Sort Key",
"Select the sort key to determine the stacking order of chains");
2154 prop,
"Integration Type",
"Select the way how the sort key is computed for each chain");
Blender kernel freestyle line style functionality.
#define STRNCPY_UTF8(dst, src)
#define BLT_I18NCONTEXT_ID_FREESTYLELINESTYLE
#define BLT_I18NCONTEXT_AMOUNT
#define BLT_I18NCONTEXT_ID_IMAGE
#define BLT_I18NCONTEXT_ID_TEXTURE
void WM_main_add_notifier(uint type, void *reference)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
LineStyleModifier * BKE_linestyle_geometry_modifier_add(FreestyleLineStyle *linestyle, const char *name, eLineStyleModifier_Type type)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_linestyle(BlenderRNA *brna)
static void rna_def_alpha_modifier(StructRNA *srna)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
@ LS_SORT_KEY_DISTANCE_FROM_CAMERA
@ LS_SORT_KEY_PROJECTED_Y
@ LS_SORT_KEY_PROJECTED_X
@ LS_MODIFIER_2D_TRANSFORM_PIVOT_PARAM
@ LS_MODIFIER_2D_TRANSFORM_PIVOT_CENTER
@ LS_MODIFIER_2D_TRANSFORM_PIVOT_ABSOLUTE
@ LS_MODIFIER_2D_TRANSFORM_PIVOT_START
@ LS_MODIFIER_2D_TRANSFORM_PIVOT_END
static void rna_def_thickness_modifier(StructRNA *srna)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
static void rna_def_geometry_modifier(StructRNA *srna)
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
PointerRNA RNA_id_pointer_create(ID *id)
static void rna_def_freestyle_alpha_modifiers(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_struct_refine_func(StructRNA *srna, const char *refine)
const EnumPropertyItem rna_enum_ramp_blend_items[]
int BKE_linestyle_thickness_modifier_remove(FreestyleLineStyle *linestyle, LineStyleModifier *modifier)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
@ LS_MODIFIER_BLUEPRINT_SQUARES
@ LS_MODIFIER_BLUEPRINT_CIRCLES
@ LS_MODIFIER_BLUEPRINT_ELLIPSES
const EnumPropertyItem rna_enum_linestyle_thickness_modifier_type_items[]
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
const EnumPropertyItem rna_enum_linestyle_geometry_modifier_type_items[]
void rna_def_mtex_common(BlenderRNA *brna, StructRNA *srna, const char *begin, const char *activeget, const char *activeset, const char *activeeditable, const char *name, const char *name_slots, const char *update, const char *update_index)
int BKE_linestyle_alpha_modifier_remove(FreestyleLineStyle *linestyle, LineStyleModifier *modifier)
@ LS_MODIFIER_MATERIAL_LINE_B
@ LS_MODIFIER_MATERIAL_SPEC_HARD
@ LS_MODIFIER_MATERIAL_LINE_A
@ LS_MODIFIER_MATERIAL_LINE
@ LS_MODIFIER_MATERIAL_DIFF_B
@ LS_MODIFIER_MATERIAL_SPEC_R
@ LS_MODIFIER_MATERIAL_SPEC
@ LS_MODIFIER_MATERIAL_LINE_R
@ LS_MODIFIER_MATERIAL_DIFF_G
@ LS_MODIFIER_MATERIAL_DIFF
@ LS_MODIFIER_MATERIAL_SPEC_G
@ LS_MODIFIER_MATERIAL_ALPHA
@ LS_MODIFIER_MATERIAL_SPEC_B
@ LS_MODIFIER_MATERIAL_LINE_G
@ LS_MODIFIER_MATERIAL_DIFF_R
void RNA_def_property_enum_bitflag_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
static void rna_def_modifier_type_common(StructRNA *srna, const EnumPropertyItem *modifier_type_items, const bool blend, const bool color)
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
void rna_def_animdata_common(StructRNA *srna)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier_c_str, int type, int subtype)
void BLI_uniquename(const ListBase *list, void *vlink, const char *defname, char delim, int name_offset, size_t name_maxncpy) ATTR_NONNULL(1
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
@ LS_MODIFIER_SPATIAL_NOISE_SMOOTH
@ LS_MODIFIER_SPATIAL_NOISE_PURERANDOM
static void rna_def_color_modifier(StructRNA *srna)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
const EnumPropertyItem rna_enum_linestyle_alpha_modifier_type_items[]
void DEG_id_tag_update(ID *id, unsigned int flags)
void BKE_report(ReportList *reports, eReportType type, const char *message)
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
struct Tex * give_current_linestyle_texture(struct FreestyleLineStyle *linestyle)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
char char size_t BLI_str_escape(char *__restrict dst, StringRef src, size_t dst_maxncpy) ATTR_NONNULL(1)
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
@ LS_THICKNESS_ASYMMETRIC
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
void set_current_linestyle_texture(struct FreestyleLineStyle *linestyle, struct Tex *tex)
@ LS_MODIFIER_PERLIN_NOISE_2D
@ LS_MODIFIER_CALLIGRAPHY
@ LS_MODIFIER_BACKBONE_STRETCHER
@ LS_MODIFIER_PERLIN_NOISE_1D
@ LS_MODIFIER_2D_TRANSFORM
@ LS_MODIFIER_DISTANCE_FROM_CAMERA
@ LS_MODIFIER_BEZIER_CURVE
@ LS_MODIFIER_GUIDING_LINES
@ LS_MODIFIER_DISTANCE_FROM_OBJECT
@ LS_MODIFIER_SINUS_DISPLACEMENT
@ LS_MODIFIER_ALONG_STROKE
@ LS_MODIFIER_SPATIAL_NOISE
@ LS_MODIFIER_CURVATURE_3D
@ LS_MODIFIER_CREASE_ANGLE
@ LS_MODIFIER_SIMPLIFICATION
@ LS_MODIFIER_TIP_REMOVER
@ LS_MODIFIER_POLYGONIZATION
static void rna_def_freestyle_geometry_modifiers(BlenderRNA *brna, PropertyRNA *cprop)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier_c_str, const char *call)
LineStyleModifier * BKE_linestyle_alpha_modifier_add(FreestyleLineStyle *linestyle, const char *name, eLineStyleModifier_Type type)
static void rna_def_modifier_material_common(StructRNA *srna)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
static void rna_def_linestyle(BlenderRNA *brna)
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_function_flag(FunctionRNA *func, FunctionFlag flag)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
static void rna_def_freestyle_thickness_modifiers(BlenderRNA *brna, PropertyRNA *cprop)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
Main * CTX_data_main(const bContext *C)
static void rna_def_modifier_curve_common(StructRNA *srna, bool range, bool value)
static void rna_def_linestyle_mtex(BlenderRNA *brna)
LineStyleModifier * BKE_linestyle_thickness_modifier_add(FreestyleLineStyle *linestyle, const char *name, eLineStyleModifier_Type type)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
const EnumPropertyItem rna_enum_linestyle_color_modifier_type_items[]
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
static void rna_def_modifier_color_ramp_common(StructRNA *srna, int range)
Scene * CTX_data_scene(const bContext *C)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
LineStyleModifier * BKE_linestyle_color_modifier_add(FreestyleLineStyle *linestyle, const char *name, eLineStyleModifier_Type type)
int BKE_linestyle_color_modifier_remove(FreestyleLineStyle *linestyle, LineStyleModifier *modifier)
void RNA_def_struct_name_property(StructRNA *srna, PropertyRNA *prop, const bool allow_replace)
void BKE_linestyle_default_shader(const struct bContext *C, FreestyleLineStyle *linestyle)
void RNA_def_property_array(PropertyRNA *prop, int length)
static void rna_def_freestyle_color_modifiers(BlenderRNA *brna, PropertyRNA *cprop)
static void rna_def_linestyle_modifiers(BlenderRNA *brna)
void rna_iterator_array_begin(CollectionPropertyIterator *iter, PointerRNA *ptr, void *data, size_t itemsize, int64_t length, bool free_ptr, IteratorSkipFunc skip)
int BKE_linestyle_geometry_modifier_remove(FreestyleLineStyle *linestyle, LineStyleModifier *modifier)