Blender
V3.3
|
#include "BPy_ChainPredicateIterator.h"
#include "../BPy_BinaryPredicate1D.h"
#include "../BPy_Convert.h"
#include "../BPy_UnaryPredicate1D.h"
#include "../Interface1D/BPy_ViewEdge.h"
Go to the source code of this file.
Functions | |
PyDoc_STRVAR (ChainPredicateIterator_doc, "Class hierarchy: :class:`freestyle.types.Iterator` >\n" ":class:`freestyle.types.ViewEdgeIterator` >\n" ":class:`freestyle.types.ChainingIterator` >\n" ":class:`ChainPredicateIterator`\n" "\n" "A \"generic\" user-controlled ViewEdge iterator. This iterator is in\n" "particular built from a unary predicate and a binary predicate.\n" "First, the unary predicate is evaluated for all potential next\n" "ViewEdges in order to only keep the ones respecting a certain\n" "constraint. Then, the binary predicate is evaluated on the current\n" "ViewEdge together with each ViewEdge of the previous selection. The\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" "ViewEdge respects these two predicates, None is returned.\n" "\n" ".. method:: __init__(upred, bpred, restrict_to_selection=True, " " restrict_to_unvisited=True, begin=None, " " orientation=True)\n" " __init__(brother)\n" "\n" " Builds a ChainPredicateIterator from a unary predicate, a binary\n" " predicate, a starting ViewEdge and its orientation or using the copy constructor.\n" "\n" " :arg upred: The unary predicate that the next ViewEdge must satisfy.\n" " :type upred: :class:`freestyle.types.UnaryPredicate1D`\n" " :arg bpred: The binary predicate that the next ViewEdge must\n" " satisfy together with the actual pointed ViewEdge.\n" " :type bpred: :class:`freestyle.types.BinaryPredicate1D`\n" " :arg restrict_to_selection: Indicates whether to force the chaining\n" " to stay within the set of selected ViewEdges or not.\n" " :type restrict_to_selection: bool\n" " :arg restrict_to_unvisited: Indicates whether a ViewEdge that has\n" " already been chained must be ignored ot not.\n" " :type restrict_to_unvisited: bool\n" " :arg begin: The ViewEdge from where to start the iteration.\n" " :type begin: :class:`freestyle.types.ViewEdge` or None\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" " false, we'll search over the ViewEdges surrounding the ending\n" " ViewVertex of begin.\n" " :type orientation: bool\n" " :arg brother: A ChainPredicateIterator object.\n" " :type brother: :class:`ChainPredicateIterator`") | |
static int | check_begin (PyObject *obj, void *v) |
static int | ChainPredicateIterator_init (BPy_ChainPredicateIterator *self, PyObject *args, PyObject *kwds) |
static void | ChainPredicateIterator_dealloc (BPy_ChainPredicateIterator *self) |
Variables | |
PyTypeObject | ChainPredicateIterator_Type |
|
static |
Definition at line 144 of file BPy_ChainPredicateIterator.cpp.
References ChainingIterator_Type, and self.
|
static |
Definition at line 80 of file BPy_ChainPredicateIterator.cpp.
References BinaryPredicate1D_Type, bool_from_PyBool(), ChainPredicateIterator_Type, check_begin(), self, and UnaryPredicate1D_Type.
|
static |
Definition at line 71 of file BPy_ChainPredicateIterator.cpp.
References BPy_ViewEdge_Check, and v.
Referenced by ChainPredicateIterator_init().
PyDoc_STRVAR | ( | ChainPredicateIterator_doc | , |
"Class hierarchy: :class:`freestyle.types.Iterator` | , | ||
\n" ":class:`freestyle.types.ViewEdgeIterator` | , | ||
\n" ":class:`freestyle.types.ChainingIterator` | , | ||
\n" ":class:`ChainPredicateIterator`\n" "\n" "A \"generic\" user-controlled ViewEdge iterator. This iterator is in\n" "particular built from a unary predicate and a binary predicate.\n" " | First, | ||
the unary predicate is evaluated for all potential next\n" "ViewEdges in order to only keep the ones respecting a certain\n" "constraint. | Then, | ||
the binary predicate is evaluated on the current\n" "ViewEdge together with each ViewEdge of the previous selection. The\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" "ViewEdge respects these two | predicates, | ||
None is returned.\n" "\n" ".. method::__init__(upred, bpred, restrict_to_selection=True, " " restrict_to_unvisited=True, begin=None, " " orientation=True)\n" " __init__(brother)\n" "\n" " Builds a ChainPredicateIterator from a unary | predicate, | ||
a binary\n" " | predicate, | ||
a starting ViewEdge and its orientation or using the copy constructor.\n" "\n" " :arg upred:The unary predicate that the next ViewEdge must satisfy.\n" " :type upred::class:`freestyle.types.UnaryPredicate1D`\n" " :arg bpred:The binary predicate that the next ViewEdge must\n" " satisfy together with the actual pointed ViewEdge.\n" " :type bpred::class:`freestyle.types.BinaryPredicate1D`\n" " :arg restrict_to_selection:Indicates whether to force the chaining\n" " to stay within the set of selected ViewEdges or not.\n" " :type restrict_to_selection:bool\n" " :arg restrict_to_unvisited:Indicates whether a ViewEdge that has\n" " already been chained must be ignored ot not.\n" " :type restrict_to_unvisited:bool\n" " :arg begin:The ViewEdge from where to start the iteration.\n" " :type begin::class:`freestyle.types.ViewEdge` or None\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" " | false, | ||
we 'll search over the ViewEdges surrounding the ending\n" " ViewVertex of begin.\n" " :type orientation:bool\n" " :arg brother:A ChainPredicateIterator object.\n" " :type brother::class:`ChainPredicateIterator`" | |||
) |
PyTypeObject ChainPredicateIterator_Type |
Definition at line 153 of file BPy_ChainPredicateIterator.cpp.
Referenced by BPy_ChainPredicateIterator_from_ChainPredicateIterator(), ChainPredicateIterator_init(), and Iterator_Init().