Differential D9170 Diff 29818 source/blender/freestyle/intern/python/Iterator/BPy_ViewEdgeIterator.cpp
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/Iterator/BPy_ViewEdgeIterator.cpp
| Show All 34 Lines | PyDoc_STRVAR(ViewEdgeIterator_doc, | ||||
| "Class hierarchy: :class:`Iterator` > :class:`ViewEdgeIterator`\n" | "Class hierarchy: :class:`Iterator` > :class:`ViewEdgeIterator`\n" | ||||
| "\n" | "\n" | ||||
| "Base class for iterators over ViewEdges of the :class:`ViewMap` Graph.\n" | "Base class for iterators over ViewEdges of the :class:`ViewMap` Graph.\n" | ||||
| "Basically the increment() operator of this class should be able to\n" | "Basically the increment() operator of this class should be able to\n" | ||||
| "take the decision of \"where\" (on which ViewEdge) to go when pointing\n" | "take the decision of \"where\" (on which ViewEdge) to go when pointing\n" | ||||
| "on a given ViewEdge.\n" | "on a given ViewEdge.\n" | ||||
| "\n" | "\n" | ||||
| ".. method:: __init__(begin=None, orientation=True)\n" | ".. method:: __init__(begin=None, orientation=True)\n" | ||||
| " __init__(brother)\n" | |||||
| "\n" | "\n" | ||||
| " Builds a ViewEdgeIterator from a starting ViewEdge and its\n" | " Builds a ViewEdgeIterator from a starting ViewEdge and its\n" | ||||
| " orientation.\n" | " orientation or the copy constructor.\n" | ||||
| "\n" | "\n" | ||||
| " :arg begin: The ViewEdge from where to start the iteration.\n" | " :arg begin: The ViewEdge from where to start the iteration.\n" | ||||
| " :type begin: :class:`ViewEdge` or None\n" | " :type begin: :class:`ViewEdge` or None\n" | ||||
| " :arg orientation: If true, we'll look for the next ViewEdge among\n" | " :arg orientation: If true, we'll look for the next ViewEdge among\n" | ||||
| " the ViewEdges that surround the ending ViewVertex of begin. If\n" | " the ViewEdges that surround the ending ViewVertex of begin. If\n" | ||||
| " false, we'll search over the ViewEdges surrounding the ending\n" | " false, we'll search over the ViewEdges surrounding the ending\n" | ||||
| " ViewVertex of begin.\n" | " ViewVertex of begin.\n" | ||||
| " :type orientation: bool\n" | " :type orientation: bool\n" | ||||
| "\n" | |||||
| ".. method:: __init__(brother)\n" | |||||
| "\n" | |||||
| " Copy constructor.\n" | |||||
| "\n" | |||||
| " :arg brother: A ViewEdgeIterator object.\n" | " :arg brother: A ViewEdgeIterator object.\n" | ||||
| " :type brother: :class:`ViewEdgeIterator`"); | " :type brother: :class:`ViewEdgeIterator`"); | ||||
| static int check_begin(PyObject *obj, void *v) | static int check_begin(PyObject *obj, void *v) | ||||
| { | { | ||||
| if (obj != NULL && obj != Py_None && !BPy_ViewEdge_Check(obj)) { | if (obj != NULL && obj != Py_None && !BPy_ViewEdge_Check(obj)) { | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 220 Lines • Show Last 20 Lines | |||||