Blender  V2.93
BPy_EqualToChainingTimeStampUP1D.cpp
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 using namespace Freestyle;
28 
30 
31 //------------------------INSTANCE METHODS ----------------------------------
32 
34  "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > "
35  ":class:`freestyle.types.EqualToChainingTimeStampUP1D`\n"
36  "\n"
37  ".. method:: __init__(ts)\n"
38  "\n"
39  " Builds a EqualToChainingTimeStampUP1D object.\n"
40  "\n"
41  " :arg ts: A time stamp value.\n"
42  " :type ts: int\n"
43  "\n"
44  ".. method:: __call__(inter)\n"
45  "\n"
46  " Returns true if the Interface1D's time stamp is equal to a certain\n"
47  " user-defined value.\n"
48  "\n"
49  " :arg inter: An Interface1D object.\n"
50  " :type inter: :class:`freestyle.types.Interface1D`\n"
51  " :return: True if the time stamp is equal to a user-defined value.\n"
52  " :rtype: bool\n";
53 
55  PyObject *args,
56  PyObject *kwds)
57 {
58  static const char *kwlist[] = {"ts", nullptr};
59  unsigned u;
60 
61  if (!PyArg_ParseTupleAndKeywords(args, kwds, "I", (char **)kwlist, &u)) {
62  return -1;
63  }
64  self->py_up1D.up1D = new Predicates1D::EqualToChainingTimeStampUP1D(u);
65  return 0;
66 }
67 
68 /*-----------------------BPy_EqualToChainingTimeStampUP1D type definition -----------------------*/
69 
71  PyVarObject_HEAD_INIT(nullptr, 0) "EqualToChainingTimeStampUP1D", /* tp_name */
72  sizeof(BPy_EqualToChainingTimeStampUP1D), /* tp_basicsize */
73  0, /* tp_itemsize */
74  nullptr, /* tp_dealloc */
75  0, /* tp_vectorcall_offset */
76  nullptr, /* tp_getattr */
77  nullptr, /* tp_setattr */
78  nullptr, /* tp_reserved */
79  nullptr, /* tp_repr */
80  nullptr, /* tp_as_number */
81  nullptr, /* tp_as_sequence */
82  nullptr, /* tp_as_mapping */
83  nullptr, /* tp_hash */
84  nullptr, /* tp_call */
85  nullptr, /* tp_str */
86  nullptr, /* tp_getattro */
87  nullptr, /* tp_setattro */
88  nullptr, /* tp_as_buffer */
89  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
91  nullptr, /* tp_traverse */
92  nullptr, /* tp_clear */
93  nullptr, /* tp_richcompare */
94  0, /* tp_weaklistoffset */
95  nullptr, /* tp_iter */
96  nullptr, /* tp_iternext */
97  nullptr, /* tp_methods */
98  nullptr, /* tp_members */
99  nullptr, /* tp_getset */
100  &UnaryPredicate1D_Type, /* tp_base */
101  nullptr, /* tp_dict */
102  nullptr, /* tp_descr_get */
103  nullptr, /* tp_descr_set */
104  0, /* tp_dictoffset */
105  (initproc)EqualToChainingTimeStampUP1D___init__, /* tp_init */
106  nullptr, /* tp_alloc */
107  nullptr, /* tp_new */
108 };
109 
111 
112 #ifdef __cplusplus
113 }
114 #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:32