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