Blender V4.3
BPy_StrokeShader.cpp File Reference

Go to the source code of this file.

Functions

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 *)
 

Variables

static PyMethodDef BPy_StrokeShader_methods []
 
static PyGetSetDef BPy_StrokeShader_getseters []
 
PyTypeObject StrokeShader_Type
 

Function Documentation

◆ 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__()

static void StrokeShader___dealloc__ ( BPy_StrokeShader * self)
static

Definition at line 188 of file BPy_StrokeShader.cpp.

References self.

◆ StrokeShader___init__()

static int StrokeShader___init__ ( BPy_StrokeShader * self,
PyObject * args,
PyObject * kwds )
static

Definition at line 176 of file BPy_StrokeShader.cpp.

References self.

◆ StrokeShader___repr__()

static PyObject * StrokeShader___repr__ ( BPy_StrokeShader * self)
static

Definition at line 194 of file BPy_StrokeShader.cpp.

References self.

◆ StrokeShader_Init()

◆ StrokeShader_name_get()

static PyObject * StrokeShader_name_get ( BPy_StrokeShader * self,
void *  )
static

Definition at line 249 of file BPy_StrokeShader.cpp.

References self.

◆ StrokeShader_shade()

static PyObject * StrokeShader_shade ( BPy_StrokeShader * self,
PyObject * args,
PyObject * kwds )
static

Definition at line 209 of file BPy_StrokeShader.cpp.

References self, and Stroke_Type.

Variable Documentation

◆ BPy_StrokeShader_getseters

PyGetSetDef BPy_StrokeShader_getseters[]
static
Initial value:
= {
{"name", (getter)StrokeShader_name_get, (setter) nullptr, StrokeShader_name_doc, nullptr},
{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",
(PyCFunction)StrokeShader_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

Definition at line 261 of file BPy_StrokeShader.cpp.

Referenced by StrokeShader_Init().