25 orientedViewEdgeIterator_doc,
26 "Class hierarchy: :class:`Iterator` > :class:`orientedViewEdgeIterator`\n"
28 "Class representing an iterator over oriented ViewEdges around a\n"
29 ":class:`ViewVertex`. This iterator allows a CCW iteration (in the image\n"
30 "plane). An instance of an orientedViewEdgeIterator can only be\n"
31 "obtained from a ViewVertex by calling edges_begin() or edges_end().\n"
33 ".. method:: __init__()\n"
34 " __init__(iBrother)\n"
36 " Creates an :class:`orientedViewEdgeIterator` using either the\n"
37 " default constructor or the copy constructor.\n"
39 " :arg iBrother: An orientedViewEdgeIterator object.\n"
40 " :type iBrother: :class:`orientedViewEdgeIterator`");
46 static const char *kwlist[] = {
"brother",
nullptr};
47 PyObject *brother =
nullptr;
49 if (!PyArg_ParseTupleAndKeywords(
56 self->at_start =
true;
57 self->reversed =
false;
72 self->at_start =
true;
73 return (PyObject *)
self;
79 if (
self->ove_it->isBegin()) {
80 PyErr_SetNone(PyExc_StopIteration);
83 self->ove_it->decrement();
86 if (
self->ove_it->isEnd()) {
87 PyErr_SetNone(PyExc_StopIteration);
91 self->at_start =
false;
94 self->ove_it->increment();
95 if (
self->ove_it->isEnd()) {
96 PyErr_SetNone(PyExc_StopIteration);
109 orientedViewEdgeIterator_object_doc,
110 "The oriented ViewEdge (i.e., a tuple of the pointed ViewEdge and a boolean\n"
111 "value) currently pointed to by this iterator. If the boolean value is true,\n"
112 "the ViewEdge is incoming.\n"
114 ":type: (:class:`ViewEdge`, bool)");
119 if (
self->ove_it->isEnd()) {
120 PyErr_SetString(PyExc_RuntimeError,
"iteration has stopped");
130 orientedViewEdgeIterator_object_doc,
132 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
138 PyVarObject_HEAD_INIT(
nullptr, 0)
139 "orientedViewEdgeIterator",
157 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
158 orientedViewEdgeIterator_doc,
PyObject * BPy_directedViewEdge_from_directedViewEdge(ViewVertex::directedViewEdge &dve)
PyTypeObject Iterator_Type
static PyObject * orientedViewEdgeIterator_object_get(BPy_orientedViewEdgeIterator *self, void *)
static int orientedViewEdgeIterator_init(BPy_orientedViewEdgeIterator *self, PyObject *args, PyObject *kwds)
PyDoc_STRVAR(orientedViewEdgeIterator_doc, "Class hierarchy: :class:`Iterator` > :class:`orientedViewEdgeIterator`\n" "\n" "Class representing an iterator over oriented ViewEdges around a\n" ":class:`ViewVertex`. This iterator allows a CCW iteration (in the image\n" "plane). An instance of an orientedViewEdgeIterator can only be\n" "obtained from a ViewVertex by calling edges_begin() or edges_end().\n" "\n" ".. method:: __init__()\n" " __init__(iBrother)\n" "\n" " Creates an :class:`orientedViewEdgeIterator` using either the\n" " default constructor or the copy constructor.\n" "\n" " :arg iBrother: An orientedViewEdgeIterator object.\n" " :type iBrother: :class:`orientedViewEdgeIterator`")
static PyObject * orientedViewEdgeIterator_iter(BPy_orientedViewEdgeIterator *self)
static PyObject * orientedViewEdgeIterator_iternext(BPy_orientedViewEdgeIterator *self)
PyTypeObject orientedViewEdgeIterator_Type
static PyGetSetDef BPy_orientedViewEdgeIterator_getseters[]
pair< ViewEdge *, bool > directedViewEdge