Differential D9170 Diff 29817 source/blender/freestyle/intern/python/Iterator/BPy_ChainingIterator.cpp
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/Iterator/BPy_ChainingIterator.cpp
| Show All 40 Lines | PyDoc_STRVAR( | ||||
| "overloaded in order to describe chaining rules. It makes the\n" | "overloaded in order to describe chaining rules. It makes the\n" | ||||
| "description of chaining rules easier. The two main methods that need\n" | "description of chaining rules easier. The two main methods that need\n" | ||||
| "to overloaded are traverse() and init(). traverse() tells which\n" | "to overloaded are traverse() and init(). traverse() tells which\n" | ||||
| ":class:`ViewEdge` to follow, among the adjacent ones. If you specify\n" | ":class:`ViewEdge` to follow, among the adjacent ones. If you specify\n" | ||||
| "restriction rules (such as \"Chain only ViewEdges of the selection\"),\n" | "restriction rules (such as \"Chain only ViewEdges of the selection\"),\n" | ||||
| "they will be included in the adjacency iterator (i.e, the adjacent\n" | "they will be included in the adjacency iterator (i.e, the adjacent\n" | ||||
| "iterator will only stop on \"valid\" edges).\n" | "iterator will only stop on \"valid\" edges).\n" | ||||
| "\n" | "\n" | ||||
| ".. method:: __init__(restrict_to_selection=True, restrict_to_unvisited=True, begin=None, " | ".. method:: __init__(restrict_to_selection=True, restrict_to_unvisited=True," | ||||
| "orientation=True)\n" | " begin=None, orientation=True)\n" | ||||
| " __init__(brother)\n" | |||||
| "\n" | "\n" | ||||
| " Builds a Chaining Iterator from the first ViewEdge used for\n" | " Builds a Chaining Iterator from the first ViewEdge used for\n" | ||||
| " iteration and its orientation.\n" | " iteration and its orientation or by using the copy constructor.\n" | ||||
| "\n" | "\n" | ||||
| " :arg restrict_to_selection: Indicates whether to force the chaining\n" | " :arg restrict_to_selection: Indicates whether to force the chaining\n" | ||||
| " to stay within the set of selected ViewEdges or not.\n" | " to stay within the set of selected ViewEdges or not.\n" | ||||
| " :type restrict_to_selection: bool\n" | " :type restrict_to_selection: bool\n" | ||||
| " :arg restrict_to_unvisited: Indicates whether a ViewEdge that has\n" | " :arg restrict_to_unvisited: Indicates whether a ViewEdge that has\n" | ||||
| " already been chained must be ignored ot not.\n" | " already been chained must be ignored ot not.\n" | ||||
| " :type restrict_to_unvisited: bool\n" | " :type restrict_to_unvisited: bool\n" | ||||
| " :arg begin: The ViewEdge from which to start the chain.\n" | " :arg begin: The ViewEdge from which to start the chain.\n" | ||||
| " :type begin: :class:`ViewEdge` or None\n" | " :type begin: :class:`ViewEdge` or None\n" | ||||
| " :arg orientation: The direction to follow to explore the graph. If\n" | " :arg orientation: The direction to follow to explore the graph. If\n" | ||||
| " true, the direction indicated by the first ViewEdge is used.\n" | " true, the direction indicated by the first ViewEdge is used.\n" | ||||
| " :type orientation: bool\n" | " :type orientation: bool\n" | ||||
| "\n" | |||||
| ".. method:: __init__(brother)\n" | |||||
| "\n" | |||||
| " Copy constructor.\n" | |||||
| "\n" | |||||
| " :arg brother: \n" | " :arg brother: \n" | ||||
| " :type brother: ChainingIterator"); | " :type brother: ChainingIterator"); | ||||
| 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 223 Lines • Show Last 20 Lines | |||||