|
Blender V5.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__(*args)\n" "\n" " Accepted call signatures:\n" "\n" " - ``__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" " :param upred: The unary predicate that the next ViewEdge must satisfy.\n" " :type upred: :class:`freestyle.types.UnaryPredicate1D`\n" " :param 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" " :param 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" " :param 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" " :param begin: The ViewEdge from where to start the iteration.\n" " :type begin: :class:`freestyle.types.ViewEdge` | None\n" " :param 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" " :param brother: A ChainPredicateIterator object.\n" " :type brother: :class:`ChainPredicateIterator`\n") | |
| 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 159 of file BPy_ChainPredicateIterator.cpp.
References BPy_ChainPredicateIterator::bpred, ChainingIterator_Type, ChainPredicateIterator_dealloc(), and BPy_ChainPredicateIterator::upred.
Referenced by ChainPredicateIterator_dealloc().
|
static |
Definition at line 81 of file BPy_ChainPredicateIterator.cpp.
References BinaryPredicate1D_Type, bool_from_PyBool(), BPy_ChainPredicateIterator::bpred, BPy_ChainingIterator::c_it, Freestyle::ChainPredicateIterator::ChainPredicateIterator(), ChainPredicateIterator_init(), ChainPredicateIterator_Type, check_begin(), BPy_ChainPredicateIterator::cp_it, BPy_Iterator::it, BPy_ChainPredicateIterator::py_c_it, BPy_ViewEdgeIterator::py_it, BPy_ChainingIterator::py_ve_it, UnaryPredicate1D_Type, BPy_ChainPredicateIterator::upred, and BPy_ViewEdgeIterator::ve_it.
Referenced by ChainPredicateIterator_init().
|
static |
Definition at line 72 of file BPy_ChainPredicateIterator.cpp.
References BPy_ViewEdge_Check, and check_begin().
Referenced by ChainPredicateIterator_init(), and check_begin().
| 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__ *args\n" "\n" " Accepted call signatures:\n" "\n" " - ``__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" " :param upred:The unary predicate that the next ViewEdge must satisfy.\n" " :type upred::class:`freestyle.types.UnaryPredicate1D`\n" " :param 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" " :param 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" " :param 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" " :param begin:The ViewEdge from where to start the iteration.\n" " :type begin::class:`freestyle.types.ViewEdge`|None\n" " :param 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" " :param brother:A ChainPredicateIterator object.\n" " :type brother::class:`ChainPredicateIterator`\n" | ) |
References PyDoc_STRVAR().
| PyTypeObject ChainPredicateIterator_Type |
Definition at line 168 of file BPy_ChainPredicateIterator.cpp.
Referenced by BPy_ChainPredicateIterator_from_ChainPredicateIterator(), ChainPredicateIterator_init(), and Iterator_Init().