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__()\n"
31 " __init__(brother)\n"
34 " Builds a :class:`Chain` using the default constructor,\n"
35 " copy constructor or from an :class:`Id`.\n"
37 " :arg brother: A Chain object.\n"
38 " :type brother: :class:`Chain`\n"
39 " :arg id: An Id object.\n"
40 " :type id: :class:`Id`\n");
43 static const char *kwlist_1[] = {
"brother",
nullptr};
44 static const char *kwlist_2[] = {
"id",
nullptr};
45 PyObject *obj =
nullptr;
47 if (PyArg_ParseTupleAndKeywords(args, kwds,
"|O!", (
char **)kwlist_1, &
Chain_Type, &obj)) {
55 else if ((
void)PyErr_Clear(),
56 PyArg_ParseTupleAndKeywords(args, kwds,
"O!", (
char **)kwlist_2, &
Id_Type, &obj))
61 PyErr_SetString(PyExc_TypeError,
"invalid argument(s)");
66 self->py_c.py_if1D.borrowed =
false;
72 Chain_push_viewedge_back_doc,
73 ".. method:: push_viewedge_back(viewedge, orientation)\n"
75 " Adds a ViewEdge at the end of the Chain.\n"
77 " :arg viewedge: The ViewEdge that must be added.\n"
78 " :type viewedge: :class:`ViewEdge`\n"
79 " :arg orientation: The orientation with which the ViewEdge must be processed.\n"
80 " :type orientation: bool\n");
83 static const char *kwlist[] = {
"viewedge",
"orientation",
nullptr};
84 PyObject *obj1 =
nullptr, *obj2 =
nullptr;
86 if (!PyArg_ParseTupleAndKeywords(
87 args, kwds,
"O!O!", (
char **)kwlist, &
ViewEdge_Type, &obj1, &PyBool_Type, &obj2))
93 self->c->push_viewedge_back(ve, orientation);
99 Chain_push_viewedge_front_doc,
100 ".. method:: push_viewedge_front(viewedge, orientation)\n"
102 " Adds a ViewEdge at the beginning of the Chain.\n"
104 " :arg viewedge: The ViewEdge that must be added.\n"
105 " :type viewedge: :class:`ViewEdge`\n"
106 " :arg orientation: The orientation with which the ViewEdge must be\n"
108 " :type orientation: bool\n");
111 static const char *kwlist[] = {
"viewedge",
"orientation",
nullptr};
112 PyObject *obj1 =
nullptr, *obj2 =
nullptr;
114 if (!PyArg_ParseTupleAndKeywords(
115 args, kwds,
"O!O!", (
char **)kwlist, &
ViewEdge_Type, &obj1, &PyBool_Type, &obj2))
121 self->c->push_viewedge_front(ve, orientation);
127# pragma clang diagnostic push
128# pragma clang diagnostic ignored "-Wcast-function-type"
130# pragma GCC diagnostic push
131# pragma GCC diagnostic ignored "-Wcast-function-type"
136 {
"push_viewedge_back",
138 METH_VARARGS | METH_KEYWORDS,
139 Chain_push_viewedge_back_doc},
140 {
"push_viewedge_front",
142 METH_VARARGS | METH_KEYWORDS,
143 Chain_push_viewedge_front_doc},
144 {
nullptr,
nullptr, 0,
nullptr},
149# pragma clang diagnostic pop
151# pragma GCC diagnostic pop
158 PyVarObject_HEAD_INIT(
nullptr, 0)
177 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
static PyObject * Chain_push_viewedge_front(BPy_Chain *self, PyObject *args, PyObject *kwds)
PyDoc_STRVAR(Chain_doc, "Class hierarchy: :class:`Interface1D` > :class:`Curve` > :class:`Chain`\n" "\n" "Class to represent a 1D elements issued from the chaining process. A\n" "Chain is the last step before the :class:`Stroke` and is used in the\n" "Splitting and Creation processes.\n" "\n" ".. method:: __init__()\n" " __init__(brother)\n" " __init__(id)\n" "\n" " Builds a :class:`Chain` using the default constructor,\n" " copy constructor or from an :class:`Id`.\n" "\n" " :arg brother: A Chain object.\n" " :type brother: :class:`Chain`\n" " :arg id: An Id object.\n" " :type id: :class:`Id`\n")
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)
PyTypeObject FrsCurve_Type
PyTypeObject ViewEdge_Type