28 "Class hierarchy: :class:`Interface1D` > :class:`Curve` > :class:`Chain`\n"
30 "Class to represent a 1D elements issued from the chaining process. A\n"
31 "Chain is the last step before the :class:`Stroke` and is used in the\n"
32 "Splitting and Creation processes.\n"
34 ".. method:: __init__()\n"
35 " __init__(brother)\n"
38 " Builds a :class:`Chain` using the default constructor,\n"
39 " copy constructor or from an :class:`Id`.\n"
41 " :arg brother: A Chain object.\n"
42 " :type brother: :class:`Chain`\n"
43 " :arg id: An Id object.\n"
44 " :type id: :class:`Id`");
48 static const char *kwlist_1[] = {
"brother",
nullptr};
49 static const char *kwlist_2[] = {
"id",
nullptr};
50 PyObject *obj =
nullptr;
52 if (PyArg_ParseTupleAndKeywords(args, kwds,
"|O!", (
char **)kwlist_1, &
Chain_Type, &obj)) {
60 else if ((
void)PyErr_Clear(),
61 PyArg_ParseTupleAndKeywords(args, kwds,
"O!", (
char **)kwlist_2, &
Id_Type, &obj))
66 PyErr_SetString(PyExc_TypeError,
"invalid argument(s)");
71 self->py_c.py_if1D.borrowed =
false;
77 Chain_push_viewedge_back_doc,
78 ".. method:: push_viewedge_back(viewedge, orientation)\n"
80 " Adds a ViewEdge at the end of the Chain.\n"
82 " :arg viewedge: The ViewEdge that must be added.\n"
83 " :type viewedge: :class:`ViewEdge`\n"
84 " :arg orientation: The orientation with which the ViewEdge must be\n"
86 " :type orientation: bool");
90 static const char *kwlist[] = {
"viewedge",
"orientation",
nullptr};
91 PyObject *obj1 =
nullptr, *obj2 =
nullptr;
93 if (!PyArg_ParseTupleAndKeywords(
94 args, kwds,
"O!O!", (
char **)kwlist, &
ViewEdge_Type, &obj1, &PyBool_Type, &obj2))
100 self->c->push_viewedge_back(ve, orientation);
106 Chain_push_viewedge_front_doc,
107 ".. method:: push_viewedge_front(viewedge, orientation)\n"
109 " Adds a ViewEdge at the beginning of the Chain.\n"
111 " :arg viewedge: The ViewEdge that must be added.\n"
112 " :type viewedge: :class:`ViewEdge`\n"
113 " :arg orientation: The orientation with which the ViewEdge must be\n"
115 " :type orientation: bool");
119 static const char *kwlist[] = {
"viewedge",
"orientation",
nullptr};
120 PyObject *obj1 =
nullptr, *obj2 =
nullptr;
122 if (!PyArg_ParseTupleAndKeywords(
123 args, kwds,
"O!O!", (
char **)kwlist, &
ViewEdge_Type, &obj1, &PyBool_Type, &obj2))
129 self->c->push_viewedge_front(ve, orientation);
134 {
"push_viewedge_back",
136 METH_VARARGS | METH_KEYWORDS,
137 Chain_push_viewedge_back_doc},
138 {
"push_viewedge_front",
140 METH_VARARGS | METH_KEYWORDS,
141 Chain_push_viewedge_front_doc},
142 {
nullptr,
nullptr, 0,
nullptr},
148 PyVarObject_HEAD_INIT(
nullptr, 0)
167 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`")
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