Blender  V3.3
Functions | Variables
BPy_StrokeShader.cpp File Reference
#include "BPy_StrokeShader.h"
#include "BPy_Convert.h"
#include "Interface1D/BPy_Stroke.h"
#include "StrokeShader/BPy_BackboneStretcherShader.h"
#include "StrokeShader/BPy_BezierCurveShader.h"
#include "StrokeShader/BPy_BlenderTextureShader.h"
#include "StrokeShader/BPy_CalligraphicShader.h"
#include "StrokeShader/BPy_ColorNoiseShader.h"
#include "StrokeShader/BPy_ConstantColorShader.h"
#include "StrokeShader/BPy_ConstantThicknessShader.h"
#include "StrokeShader/BPy_ConstrainedIncreasingThicknessShader.h"
#include "StrokeShader/BPy_GuidingLinesShader.h"
#include "StrokeShader/BPy_IncreasingColorShader.h"
#include "StrokeShader/BPy_IncreasingThicknessShader.h"
#include "StrokeShader/BPy_PolygonalizationShader.h"
#include "StrokeShader/BPy_SamplingShader.h"
#include "StrokeShader/BPy_SmoothingShader.h"
#include "StrokeShader/BPy_SpatialNoiseShader.h"
#include "StrokeShader/BPy_StrokeTextureStepShader.h"
#include "StrokeShader/BPy_ThicknessNoiseShader.h"
#include "StrokeShader/BPy_TipRemoverShader.h"

Go to the source code of this file.

Functions

int StrokeShader_Init (PyObject *module)
 
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)
 
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 *UNUSED(closure))
 

Variables

static char StrokeShader___doc__ []
 
static char StrokeShader_shade___doc__ []
 
static PyMethodDef BPy_StrokeShader_methods []
 
static PyGetSetDef BPy_StrokeShader_getseters []
 
PyTypeObject StrokeShader_Type
 

Function Documentation

◆ PyDoc_STRVAR()

PyDoc_STRVAR ( StrokeShader_name_doc  ,
"The name of the stroke shader.\n" "\n" ":type: str  
)

◆ StrokeShader___dealloc__()

static void StrokeShader___dealloc__ ( BPy_StrokeShader self)
static

Definition at line 199 of file BPy_StrokeShader.cpp.

◆ StrokeShader___init__()

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

Definition at line 187 of file BPy_StrokeShader.cpp.

◆ StrokeShader___repr__()

static PyObject* StrokeShader___repr__ ( BPy_StrokeShader self)
static

Definition at line 205 of file BPy_StrokeShader.cpp.

References self.

◆ StrokeShader_Init()

int StrokeShader_Init ( PyObject *  module)

◆ StrokeShader_name_get()

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

Definition at line 256 of file BPy_StrokeShader.cpp.

◆ StrokeShader_shade()

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

Definition at line 218 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 *UNUSED(closure))

Definition at line 261 of file BPy_StrokeShader.cpp.

◆ BPy_StrokeShader_methods

PyMethodDef BPy_StrokeShader_methods[]
static
Initial value:
= {
{"shade",
(PyCFunction)StrokeShader_shade,
METH_VARARGS | METH_KEYWORDS,
{nullptr, nullptr, 0, nullptr},
}
static PyObject * StrokeShader_shade(BPy_StrokeShader *self, PyObject *args, PyObject *kwds)
static char StrokeShader_shade___doc__[]

Definition at line 241 of file BPy_StrokeShader.cpp.

◆ StrokeShader___doc__

char StrokeShader___doc__[]
static
Initial value:
=
"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"

Definition at line 168 of file BPy_StrokeShader.cpp.

◆ StrokeShader_shade___doc__

char StrokeShader_shade___doc__[]
static
Initial value:
=
".. 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"

Definition at line 210 of file BPy_StrokeShader.cpp.

◆ StrokeShader_Type

PyTypeObject StrokeShader_Type

Definition at line 268 of file BPy_StrokeShader.cpp.

Referenced by StrokeShader_Init().