Go to the source code of this file.
|
| int | StrokeShader_Init (PyObject *module) |
| |
| | PyDoc_STRVAR (StrokeShader___doc__, "Base class for stroke shaders. Any stroke shader must inherit from\n" "this class and overload the shade() method. A StrokeShader is\n" "designed to modify stroke attributes such as thickness, color,\n" "geometry, texture, blending mode, and so on. The basic way for this\n" "operation is to iterate over the stroke vertices of the :class:`Stroke`\n" "and to modify the :class:`StrokeAttribute` of each vertex. Here is a\n" "code example of such an iteration::\n" "\n" " it = ioStroke.strokeVerticesBegin()\n" " while not it.is_end:\n" " att = it.object.attribute\n" " ## perform here any attribute modification\n" " it.increment()\n" "\n" ".. method:: __init__()\n" "\n" " Default constructor.\n") |
| |
| static int | StrokeShader___init__ (BPy_StrokeShader *self, PyObject *args, PyObject *kwds) |
| |
| static void | StrokeShader___dealloc__ (BPy_StrokeShader *self) |
| |
| static PyObject * | StrokeShader___repr__ (BPy_StrokeShader *self) |
| |
| | PyDoc_STRVAR (StrokeShader_shade___doc__, ".. method:: shade(stroke)\n" "\n" " The shading method. Must be overloaded by inherited classes.\n" "\n" " :arg stroke: A Stroke object.\n" " :type stroke: :class:`Stroke`\n") |
| |
| static PyObject * | StrokeShader_shade (BPy_StrokeShader *self, PyObject *args, PyObject *kwds) |
| |
| | PyDoc_STRVAR (StrokeShader_name_doc, "The name of the stroke shader.\n" "\n" ":type: str") |
| |
| static PyObject * | StrokeShader_name_get (BPy_StrokeShader *self, void *) |
| |
◆ PyDoc_STRVAR() [1/3]
| PyDoc_STRVAR |
( |
StrokeShader___doc__ | , |
|
|
"Base class for stroke shaders. Any stroke shader must inherit from\n" "this class and overload the shade() method. A StrokeShader is\n" "designed to modify stroke attributes such as | thickness, |
|
|
color | , |
|
|
\n" " | geometry, |
|
|
texture | , |
|
|
blending | mode ) |
◆ PyDoc_STRVAR() [2/3]
| PyDoc_STRVAR |
( |
StrokeShader_name_doc | , |
|
|
"The name of the stroke shader.\n" "\n" ":type: str" | ) |
◆ PyDoc_STRVAR() [3/3]
| PyDoc_STRVAR |
( |
StrokeShader_shade___doc__ | , |
|
|
".. method:: shade(stroke)\n" "\n" " The shading method. Must be overloaded by inherited classes.\n" "\n" " :arg stroke: A Stroke object.\n" " :type stroke: :class:`Stroke`\n" | ) |
◆ StrokeShader___dealloc__()
◆ StrokeShader___init__()
◆ StrokeShader___repr__()
◆ StrokeShader_Init()
| int StrokeShader_Init |
( |
PyObject * | module | ) |
|
Definition at line 42 of file BPy_StrokeShader.cpp.
References BackboneStretcherShader_Type, BezierCurveShader_Type, BlenderTextureShader_Type, CalligraphicShader_Type, ColorNoiseShader_Type, ConstantColorShader_Type, ConstantThicknessShader_Type, ConstrainedIncreasingThicknessShader_Type, GuidingLinesShader_Type, IncreasingColorShader_Type, IncreasingThicknessShader_Type, module, PolygonalizationShader_Type, SamplingShader_Type, SmoothingShader_Type, SpatialNoiseShader_Type, StrokeShader_Type, StrokeTextureStepShader_Type, ThicknessNoiseShader_Type, and TipRemoverShader_Type.
Referenced by Freestyle_Init().
◆ StrokeShader_name_get()
◆ StrokeShader_shade()
| static PyObject * StrokeShader_shade |
( |
BPy_StrokeShader * | self, |
|
|
PyObject * | args, |
|
|
PyObject * | kwds ) |
|
static |
◆ BPy_StrokeShader_getseters
| PyGetSetDef BPy_StrokeShader_getseters[] |
|
static |
Initial value:= {
{nullptr, nullptr, nullptr, nullptr, nullptr}
}
static PyObject * StrokeShader_name_get(BPy_StrokeShader *self, void *)
Definition at line 254 of file BPy_StrokeShader.cpp.
◆ BPy_StrokeShader_methods
| PyMethodDef BPy_StrokeShader_methods[] |
|
static |
Initial value:= {
{"shade",
METH_VARARGS | METH_KEYWORDS,
StrokeShader_shade___doc__},
{nullptr, nullptr, 0, nullptr},
}
static PyObject * StrokeShader_shade(BPy_StrokeShader *self, PyObject *args, PyObject *kwds)
Definition at line 232 of file BPy_StrokeShader.cpp.
◆ StrokeShader_Type
| PyTypeObject StrokeShader_Type |