Blender V4.3
BPy_BackboneStretcherShader.cpp
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2004-2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17using namespace Freestyle;
18
20
21//------------------------INSTANCE METHODS ----------------------------------
22
24 /* Wrap. */
25 BackboneStretcherShader___doc__,
26 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`BackboneStretcherShader`\n"
27 "\n"
28 "[Geometry shader]\n"
29 "\n"
30 ".. method:: __init__(amount=2.0)\n"
31 "\n"
32 " Builds a BackboneStretcherShader object.\n"
33 "\n"
34 " :arg amount: The stretching amount value.\n"
35 " :type amount: float\n"
36 "\n"
37 ".. method:: shade(stroke)\n"
38 "\n"
39 " Stretches the stroke at its two extremities and following the\n"
40 " respective directions: v(1)v(0) and v(n-1)v(n).\n"
41 "\n"
42 " :arg stroke: A Stroke object.\n"
43 " :type stroke: :class:`freestyle.types.Stroke`\n");
44
46 PyObject *args,
47 PyObject *kwds)
48{
49 static const char *kwlist[] = {"amount", nullptr};
50 float f = 2.0;
51
52 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|f", (char **)kwlist, &f)) {
53 return -1;
54 }
56 return 0;
57}
58
59/*-----------------------BPy_BackboneStretcherShader type definition ----------------------------*/
60
62 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
63 /*tp_name*/ "BackboneStretcherShader",
64 /*tp_basicsize*/ sizeof(BPy_BackboneStretcherShader),
65 /*tp_itemsize*/ 0,
66 /*tp_dealloc*/ nullptr,
67 /*tp_vectorcall_offset*/ 0,
68 /*tp_getattr*/ nullptr,
69 /*tp_setattr*/ nullptr,
70 /*tp_as_async*/ nullptr,
71 /*tp_repr*/ nullptr,
72 /*tp_as_number*/ nullptr,
73 /*tp_as_sequence*/ nullptr,
74 /*tp_as_mapping*/ nullptr,
75 /*tp_hash*/ nullptr,
76 /*tp_call*/ nullptr,
77 /*tp_str*/ nullptr,
78 /*tp_getattro*/ nullptr,
79 /*tp_setattro*/ nullptr,
80 /*tp_as_buffer*/ nullptr,
81 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
82 /*tp_doc*/ BackboneStretcherShader___doc__,
83 /*tp_traverse*/ nullptr,
84 /*tp_clear*/ nullptr,
85 /*tp_richcompare*/ nullptr,
86 /*tp_weaklistoffset*/ 0,
87 /*tp_iter*/ nullptr,
88 /*tp_iternext*/ nullptr,
89 /*tp_methods*/ nullptr,
90 /*tp_members*/ nullptr,
91 /*tp_getset*/ nullptr,
92 /*tp_base*/ &StrokeShader_Type,
93 /*tp_dict*/ nullptr,
94 /*tp_descr_get*/ nullptr,
95 /*tp_descr_set*/ nullptr,
96 /*tp_dictoffset*/ 0,
97 /*tp_init*/ (initproc)BackboneStretcherShader___init__,
98 /*tp_alloc*/ nullptr,
99 /*tp_new*/ nullptr,
100};
101
103
104#ifdef __cplusplus
105}
106#endif
PyTypeObject BackboneStretcherShader_Type
static int BackboneStretcherShader___init__(BPy_BackboneStretcherShader *self, PyObject *args, PyObject *kwds)
PyDoc_STRVAR(BackboneStretcherShader___doc__, "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`BackboneStretcherShader`\n" "\n" "[Geometry shader]\n" "\n" ".. method:: __init__(amount=2.0)\n" "\n" " Builds a BackboneStretcherShader object.\n" "\n" " :arg amount: The stretching amount value.\n" " :type amount: float\n" "\n" ".. method:: shade(stroke)\n" "\n" " Stretches the stroke at its two extremities and following the\n" " respective directions: v(1)v(0) and v(n-1)v(n).\n" "\n" " :arg stroke: A Stroke object.\n" " :type stroke: :class:`freestyle.types.Stroke`\n")
PyTypeObject StrokeShader_Type
Class gathering basic stroke shaders.
PyObject * self
inherits from class Rep
Definition AppCanvas.cpp:20