Blender V5.0
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
8
10
12
13using namespace Freestyle;
14
16
17//------------------------INSTANCE METHODS ----------------------------------
18
20 /* Wrap. */
21 BackboneStretcherShader___doc__,
22 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`BackboneStretcherShader`\n"
23 "\n"
24 "[Geometry shader]\n"
25 "\n"
26 ".. method:: __init__(amount=2.0)\n"
27 "\n"
28 " Builds a BackboneStretcherShader object.\n"
29 "\n"
30 " :arg amount: The stretching amount value.\n"
31 " :type amount: float\n"
32 "\n"
33 ".. method:: shade(stroke)\n"
34 "\n"
35 " Stretches the stroke at its two extremities and following the\n"
36 " respective directions: v(1)v(0) and v(n-1)v(n).\n"
37 "\n"
38 " :arg stroke: A Stroke object.\n"
39 " :type stroke: :class:`freestyle.types.Stroke`\n");
41 PyObject *args,
42 PyObject *kwds)
43{
44 static const char *kwlist[] = {"amount", nullptr};
45 float f = 2.0;
46
47 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|f", (char **)kwlist, &f)) {
48 return -1;
49 }
51 return 0;
52}
53
54/*-----------------------BPy_BackboneStretcherShader type definition ----------------------------*/
55
57 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
58 /*tp_name*/ "BackboneStretcherShader",
59 /*tp_basicsize*/ sizeof(BPy_BackboneStretcherShader),
60 /*tp_itemsize*/ 0,
61 /*tp_dealloc*/ nullptr,
62 /*tp_vectorcall_offset*/ 0,
63 /*tp_getattr*/ nullptr,
64 /*tp_setattr*/ nullptr,
65 /*tp_as_async*/ nullptr,
66 /*tp_repr*/ nullptr,
67 /*tp_as_number*/ nullptr,
68 /*tp_as_sequence*/ nullptr,
69 /*tp_as_mapping*/ nullptr,
70 /*tp_hash*/ nullptr,
71 /*tp_call*/ nullptr,
72 /*tp_str*/ nullptr,
73 /*tp_getattro*/ nullptr,
74 /*tp_setattro*/ nullptr,
75 /*tp_as_buffer*/ nullptr,
76 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
77 /*tp_doc*/ BackboneStretcherShader___doc__,
78 /*tp_traverse*/ nullptr,
79 /*tp_clear*/ nullptr,
80 /*tp_richcompare*/ nullptr,
81 /*tp_weaklistoffset*/ 0,
82 /*tp_iter*/ nullptr,
83 /*tp_iternext*/ nullptr,
84 /*tp_methods*/ nullptr,
85 /*tp_members*/ nullptr,
86 /*tp_getset*/ nullptr,
87 /*tp_base*/ &StrokeShader_Type,
88 /*tp_dict*/ nullptr,
89 /*tp_descr_get*/ nullptr,
90 /*tp_descr_set*/ nullptr,
91 /*tp_dictoffset*/ 0,
92 /*tp_init*/ (initproc)BackboneStretcherShader___init__,
93 /*tp_alloc*/ nullptr,
94 /*tp_new*/ nullptr,
95};
96
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