Differential D9170 Diff 29817 source/blender/freestyle/intern/python/Iterator/BPy_ChainPredicateIterator.cpp
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/Iterator/BPy_ChainPredicateIterator.cpp
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | PyDoc_STRVAR(ChainPredicateIterator_doc, | ||||
| "ViewEdges in order to only keep the ones respecting a certain\n" | "ViewEdges in order to only keep the ones respecting a certain\n" | ||||
| "constraint. Then, the binary predicate is evaluated on the current\n" | "constraint. Then, the binary predicate is evaluated on the current\n" | ||||
| "ViewEdge together with each ViewEdge of the previous selection. The\n" | "ViewEdge together with each ViewEdge of the previous selection. The\n" | ||||
| "first ViewEdge respecting both the unary predicate and the binary\n" | "first ViewEdge respecting both the unary predicate and the binary\n" | ||||
| "predicate is kept as the next one. If none of the potential next\n" | "predicate is kept as the next one. If none of the potential next\n" | ||||
| "ViewEdge respects these two predicates, None is returned.\n" | "ViewEdge respects these two predicates, None is returned.\n" | ||||
| "\n" | "\n" | ||||
| ".. method:: __init__(upred, bpred, restrict_to_selection=True, " | ".. method:: __init__(upred, bpred, restrict_to_selection=True, " | ||||
| "restrict_to_unvisited=True, begin=None, " | " restrict_to_unvisited=True, begin=None, " | ||||
| "orientation=True)\n" | " orientation=True)\n" | ||||
| " __init__(brother)\n" | |||||
| "\n" | "\n" | ||||
| " Builds a ChainPredicateIterator from a unary predicate, a binary\n" | " Builds a ChainPredicateIterator from a unary predicate, a binary\n" | ||||
| " predicate, a starting ViewEdge and its orientation.\n" | " predicate, a starting ViewEdge and its orientation or using the copy constructor.\n" | ||||
| "\n" | "\n" | ||||
| " :arg upred: The unary predicate that the next ViewEdge must satisfy.\n" | " :arg upred: The unary predicate that the next ViewEdge must satisfy.\n" | ||||
| " :type upred: :class:`freestyle.types.UnaryPredicate1D`\n" | " :type upred: :class:`freestyle.types.UnaryPredicate1D`\n" | ||||
| " :arg bpred: The binary predicate that the next ViewEdge must\n" | " :arg bpred: The binary predicate that the next ViewEdge must\n" | ||||
| " satisfy together with the actual pointed ViewEdge.\n" | " satisfy together with the actual pointed ViewEdge.\n" | ||||
| " :type bpred: :class:`freestyle.types.BinaryPredicate1D`\n" | " :type bpred: :class:`freestyle.types.BinaryPredicate1D`\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 where to start the iteration.\n" | " :arg begin: The ViewEdge from where to start the iteration.\n" | ||||
| " :type begin: :class:`freestyle.types.ViewEdge` or None\n" | " :type begin: :class:`freestyle.types.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 ChainPredicateIterator object.\n" | " :arg brother: A ChainPredicateIterator object.\n" | ||||
| " :type brother: :class:`ChainPredicateIterator`"); | " :type brother: :class:`ChainPredicateIterator`"); | ||||
| 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 121 Lines • Show Last 20 Lines | |||||