22 AdjacencyIterator_doc,
23 "Class hierarchy: :class:`Iterator` > :class:`AdjacencyIterator`\n"
25 "Class for representing adjacency iterators used in the chaining\n"
26 "process. An AdjacencyIterator is created in the increment() and\n"
27 "decrement() methods of a :class:`ChainingIterator` and passed to the\n"
28 "traverse() method of the ChainingIterator.\n"
30 ".. method:: __init__(*args, **kwargs)\n"
32 " Accepted call signatures:\n"
35 " - ``__init__(brother)``\n"
36 " - ``__init__(vertex, restrict_to_selection=True, restrict_to_unvisited=True)``\n"
38 " Builds an :class:`AdjacencyIterator` using the default constructor,\n"
39 " copy constructor or the overloaded constructor.\n"
41 " :param brother: An AdjacencyIterator object.\n"
42 " :type brother: :class:`AdjacencyIterator`\n"
43 " :param vertex: The vertex which is the next crossing.\n"
44 " :type vertex: :class:`ViewVertex`\n"
45 " :param restrict_to_selection: Indicates whether to force the chaining\n"
46 " to stay within the set of selected ViewEdges or not.\n"
47 " :type restrict_to_selection: bool\n"
48 " :param restrict_to_unvisited: Indicates whether a ViewEdge that has\n"
49 " already been chained must be ignored ot not.\n"
50 " :type restrict_to_unvisited: bool\n");
53 static const char *kwlist_1[] = {
"brother",
nullptr};
54 static const char *kwlist_2[] = {
55 "vertex",
"restrict_to_selection",
"restrict_to_unvisited",
nullptr};
56 PyObject *obj1 =
nullptr, *obj2 =
nullptr, *obj3 =
nullptr;
58 if (PyArg_ParseTupleAndKeywords(args,
76 else if ((
void)PyErr_Clear(),
77 (
void)(obj2 = obj3 =
nullptr),
78 PyArg_ParseTupleAndKeywords(args,
96 ((
BPy_ViewVertex *)obj1)->vv, restrictToSelection, restrictToUnvisited);
100 PyErr_SetString(PyExc_TypeError,
"invalid argument(s)");
111 return (PyObject *)self;
116 if (self->
a_it->isEnd()) {
117 PyErr_SetNone(PyExc_StopIteration);
124 self->
a_it->increment();
125 if (self->
a_it->isEnd()) {
126 PyErr_SetNone(PyExc_StopIteration);
138 AdjacencyIterator_object_doc,
139 "The ViewEdge object currently pointed to by this iterator.\n"
141 ":type: :class:`ViewEdge`\n");
144 if (self->
a_it->isEnd()) {
145 PyErr_SetString(PyExc_RuntimeError,
"iteration has stopped");
157 AdjacencyIterator_is_incoming_doc,
158 "True if the current ViewEdge is coming towards the iteration vertex, and\n"
164 if (self->
a_it->isEnd()) {
165 PyErr_SetString(PyExc_RuntimeError,
"iteration has stopped");
175 AdjacencyIterator_is_incoming_doc,
180 AdjacencyIterator_object_doc,
182 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
188 PyVarObject_HEAD_INIT(
nullptr, 0)
207 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
208 AdjacencyIterator_doc,
static PyObject * AdjacencyIterator_iternext(BPy_AdjacencyIterator *self)
static PyObject * AdjacencyIterator_iter(BPy_AdjacencyIterator *self)
PyTypeObject AdjacencyIterator_Type
static int AdjacencyIterator_init(BPy_AdjacencyIterator *self, PyObject *args, PyObject *kwds)
static PyObject * AdjacencyIterator_is_incoming_get(BPy_AdjacencyIterator *self, void *)
static PyObject * AdjacencyIterator_object_get(BPy_AdjacencyIterator *self, void *)
static PyGetSetDef BPy_AdjacencyIterator_getseters[]
bool bool_from_PyBool(PyObject *b)
PyObject * BPy_ViewEdge_from_ViewEdge(ViewEdge &ve)
PyObject * PyBool_from_bool(bool 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 Iterator_Type
PyTypeObject ViewVertex_Type
Freestyle::AdjacencyIterator * a_it
PyObject_HEAD Freestyle::Iterator * it