24 "Class hierarchy: :class:`Interface1D` > :class:`Curve` > :class:`Chain`\n"
26 "Class to represent a 1D elements issued from the chaining process. A\n"
27 "Chain is the last step before the :class:`Stroke` and is used in the\n"
28 "Splitting and Creation processes.\n"
30 ".. method:: __init__(*args)\n"
32 " Accepted call signatures:\n"
35 " - ``__init__(brother)``\n"
36 " - ``__init__(id)``\n"
38 " Builds a :class:`Chain` using the default constructor,\n"
39 " copy constructor or from an :class:`Id`.\n"
41 " :param brother: A Chain object.\n"
42 " :type brother: :class:`Chain`\n"
43 " :param id: An Id object.\n"
44 " :type id: :class:`Id`\n");
47 static const char *kwlist_1[] = {
"brother",
nullptr};
48 static const char *kwlist_2[] = {
"id",
nullptr};
49 PyObject *obj =
nullptr;
51 if (PyArg_ParseTupleAndKeywords(args,
67 else if ((
void)PyErr_Clear(),
68 PyArg_ParseTupleAndKeywords(args,
79 PyErr_SetString(PyExc_TypeError,
"invalid argument(s)");
90 Chain_push_viewedge_back_doc,
91 ".. method:: push_viewedge_back(viewedge, orientation)\n"
93 " Adds a ViewEdge at the end of the Chain.\n"
95 " :param viewedge: The ViewEdge that must be added.\n"
96 " :type viewedge: :class:`ViewEdge`\n"
97 " :param orientation: The orientation with which the ViewEdge must be processed.\n"
98 " :type orientation: bool\n");
101 static const char *kwlist[] = {
"viewedge",
"orientation",
nullptr};
102 PyObject *obj1 =
nullptr, *obj2 =
nullptr;
104 if (!PyArg_ParseTupleAndKeywords(args,
108 ":push_viewedge_back",
125 Chain_push_viewedge_front_doc,
126 ".. method:: push_viewedge_front(viewedge, orientation)\n"
128 " Adds a ViewEdge at the beginning of the Chain.\n"
130 " :param viewedge: The ViewEdge that must be added.\n"
131 " :type viewedge: :class:`ViewEdge`\n"
132 " :param orientation: The orientation with which the ViewEdge must be\n"
134 " :type orientation: bool\n");
137 static const char *kwlist[] = {
"viewedge",
"orientation",
nullptr};
138 PyObject *obj1 =
nullptr, *obj2 =
nullptr;
140 if (!PyArg_ParseTupleAndKeywords(args,
144 ":push_viewedge_front",
161# pragma clang diagnostic push
162# pragma clang diagnostic ignored "-Wcast-function-type"
164# pragma GCC diagnostic push
165# pragma GCC diagnostic ignored "-Wcast-function-type"
170 {
"push_viewedge_back",
172 METH_VARARGS | METH_KEYWORDS,
173 Chain_push_viewedge_back_doc},
174 {
"push_viewedge_front",
176 METH_VARARGS | METH_KEYWORDS,
177 Chain_push_viewedge_front_doc},
178 {
nullptr,
nullptr, 0,
nullptr},
183# pragma clang diagnostic pop
185# pragma GCC diagnostic pop
192 PyVarObject_HEAD_INIT(
nullptr, 0)
211 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
static PyObject * Chain_push_viewedge_front(BPy_Chain *self, PyObject *args, PyObject *kwds)
static PyMethodDef BPy_Chain_methods[]
static int Chain_init(BPy_Chain *self, PyObject *args, PyObject *kwds)
static PyObject * Chain_push_viewedge_back(BPy_Chain *self, PyObject *args, PyObject *kwds)
bool bool_from_PyBool(PyObject *b)
PyDoc_STRVAR(FalseBP1D___doc__, "Class hierarchy: :class:`freestyle.types.BinaryPredicate1D` > :class:`FalseBP1D`\n" "\n" ".. method:: __call__(inter1, inter2)\n" "\n" " Always returns false.\n" "\n" " :param inter1: The first Interface1D object.\n" " :type inter1: :class:`freestyle.types.Interface1D`\n" " :param inter2: The second Interface1D object.\n" " :type inter2: :class:`freestyle.types.Interface1D`\n" " :return: False.\n" " :rtype: bool\n")
PyTypeObject FrsCurve_Type
PyTypeObject ViewEdge_Type
void push_viewedge_front(ViewEdge *iViewEdge, bool orientation)
void push_viewedge_back(ViewEdge *iViewEdge, bool orientation)
PyObject_HEAD Freestyle::Interface1D * if1D