Blender  V3.3
BPy_EqualToChainingTimeStampUP1D.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 using namespace Freestyle;
14 
16 
17 //------------------------INSTANCE METHODS ----------------------------------
18 
20  "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > "
21  ":class:`freestyle.types.EqualToChainingTimeStampUP1D`\n"
22  "\n"
23  ".. method:: __init__(ts)\n"
24  "\n"
25  " Builds a EqualToChainingTimeStampUP1D object.\n"
26  "\n"
27  " :arg ts: A time stamp value.\n"
28  " :type ts: int\n"
29  "\n"
30  ".. method:: __call__(inter)\n"
31  "\n"
32  " Returns true if the Interface1D's time stamp is equal to a certain\n"
33  " user-defined value.\n"
34  "\n"
35  " :arg inter: An Interface1D object.\n"
36  " :type inter: :class:`freestyle.types.Interface1D`\n"
37  " :return: True if the time stamp is equal to a user-defined value.\n"
38  " :rtype: bool\n";
39 
41  PyObject *args,
42  PyObject *kwds)
43 {
44  static const char *kwlist[] = {"ts", nullptr};
45  unsigned u;
46 
47  if (!PyArg_ParseTupleAndKeywords(args, kwds, "I", (char **)kwlist, &u)) {
48  return -1;
49  }
50  self->py_up1D.up1D = new Predicates1D::EqualToChainingTimeStampUP1D(u);
51  return 0;
52 }
53 
54 /*-----------------------BPy_EqualToChainingTimeStampUP1D type definition -----------------------*/
55 
57  PyVarObject_HEAD_INIT(nullptr, 0) "EqualToChainingTimeStampUP1D", /* tp_name */
58  sizeof(BPy_EqualToChainingTimeStampUP1D), /* tp_basicsize */
59  0, /* tp_itemsize */
60  nullptr, /* tp_dealloc */
61  0, /* tp_vectorcall_offset */
62  nullptr, /* tp_getattr */
63  nullptr, /* tp_setattr */
64  nullptr, /* tp_reserved */
65  nullptr, /* tp_repr */
66  nullptr, /* tp_as_number */
67  nullptr, /* tp_as_sequence */
68  nullptr, /* tp_as_mapping */
69  nullptr, /* tp_hash */
70  nullptr, /* tp_call */
71  nullptr, /* tp_str */
72  nullptr, /* tp_getattro */
73  nullptr, /* tp_setattro */
74  nullptr, /* tp_as_buffer */
75  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
77  nullptr, /* tp_traverse */
78  nullptr, /* tp_clear */
79  nullptr, /* tp_richcompare */
80  0, /* tp_weaklistoffset */
81  nullptr, /* tp_iter */
82  nullptr, /* tp_iternext */
83  nullptr, /* tp_methods */
84  nullptr, /* tp_members */
85  nullptr, /* tp_getset */
86  &UnaryPredicate1D_Type, /* tp_base */
87  nullptr, /* tp_dict */
88  nullptr, /* tp_descr_get */
89  nullptr, /* tp_descr_set */
90  0, /* tp_dictoffset */
91  (initproc)EqualToChainingTimeStampUP1D___init__, /* tp_init */
92  nullptr, /* tp_alloc */
93  nullptr, /* tp_new */
94 };
95 
97 
98 #ifdef __cplusplus
99 }
100 #endif
PyTypeObject EqualToChainingTimeStampUP1D_Type
static int EqualToChainingTimeStampUP1D___init__(BPy_EqualToChainingTimeStampUP1D *self, PyObject *args, PyObject *kwds)
static char EqualToChainingTimeStampUP1D___doc__[]
PyTypeObject UnaryPredicate1D_Type
inherits from class Rep
Definition: AppCanvas.cpp:18