29 if (module ==
nullptr) {
36 PyModule_AddObjectRef(
61 UnaryFunction1DVectorViewShape___doc__,
62 "Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DVectorViewShape`\n"
64 "Base class for unary functions (functors) that work on\n"
65 ":class:`Interface1D` and return a list of :class:`ViewShape`\n"
68 ".. method:: __init__(*args)\n"
70 " Accepted call signatures:\n"
73 " - ``__init__(integration_type)``\n"
75 " Builds a unary 1D function using the default constructor\n"
76 " or the integration method given as an argument.\n"
78 " :param integration_type: An integration method.\n"
79 " :type integration_type: :class:`IntegrationType`\n");
84 static const char *kwlist[] = {
"integration",
nullptr};
85 PyObject *obj =
nullptr;
87 if (!PyArg_ParseTupleAndKeywords(args,
120 return PyUnicode_FromFormat(
128 static const char *kwlist[] = {
"inter",
nullptr};
129 PyObject *obj =
nullptr;
131 if (!PyArg_ParseTupleAndKeywords(args,
143 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
147 if (!PyErr_Occurred()) {
148 string class_name(Py_TYPE(self)->tp_name);
149 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
155 PyObject *list = PyList_New(list_len);
156 for (uint i = 0; i < list_len; i++) {
168 integration_type_doc,
169 "The integration method.\n"
171 ":type: :class:`IntegrationType`\n");
183 PyErr_SetString(PyExc_TypeError,
"value must be an IntegrationType");
194 integration_type_doc,
196 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
202 PyVarObject_HEAD_INIT(
nullptr, 0)
203 "UnaryFunction1DVectorViewShape",
221 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
222 UnaryFunction1DVectorViewShape___doc__,
IntegrationType IntegrationType_from_BPy_IntegrationType(PyObject *obj)
PyObject * BPy_IntegrationType_from_IntegrationType(IntegrationType i)
PyObject * BPy_ViewShape_from_ViewShape(ViewShape &vs)
PyDoc_STRVAR(FalseBP1D___doc__, "Class hierarchy: :class:`freestyle.types.BinaryPredicate1D` > :class:`FalseBP1D`\n" "\n" ".. method:: __call__(inter1, inter2)\n" "\n" " Always returns false.\n" "\n" " :param inter1: The first Interface1D object.\n" " :type inter1: :class:`freestyle.types.Interface1D`\n" " :param inter2: The second Interface1D object.\n" " :type inter2: :class:`freestyle.types.Interface1D`\n" " :return: False.\n" " :rtype: bool\n")
PyTypeObject GetOccludeeF1D_Type
PyTypeObject GetOccludersF1D_Type
PyTypeObject GetShapeF1D_Type
PyTypeObject IntegrationType_Type
#define BPy_IntegrationType_Check(v)
PyTypeObject Interface1D_Type
static int UnaryFunction1DVectorViewShape___init__(BPy_UnaryFunction1DVectorViewShape *self, PyObject *args, PyObject *kwds)
static int integration_type_set(BPy_UnaryFunction1DVectorViewShape *self, PyObject *value, void *)
static PyObject * UnaryFunction1DVectorViewShape___repr__(BPy_UnaryFunction1DVectorViewShape *self)
static PyGetSetDef BPy_UnaryFunction1DVectorViewShape_getseters[]
static PyObject * UnaryFunction1DVectorViewShape___call__(BPy_UnaryFunction1DVectorViewShape *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction1DVectorViewShape_Type
int UnaryFunction1DVectorViewShape_Init(PyObject *module)
static void UnaryFunction1DVectorViewShape___dealloc__(BPy_UnaryFunction1DVectorViewShape *self)
static PyObject * integration_type_get(BPy_UnaryFunction1DVectorViewShape *self, void *)
PyTypeObject UnaryFunction1D_Type
IntegrationType getIntegrationType() const
void setIntegrationType(IntegrationType integration)
Freestyle::UnaryFunction1D< std::vector< Freestyle::ViewShape * > > * uf1D_vectorviewshape