Blender  V2.93
BPy_TimeStampF1D.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 
21 #include "BPy_TimeStampF1D.h"
22 
23 #include "../../../view_map/Functions1D.h"
24 #include "../../BPy_Convert.h"
25 #include "../../BPy_IntegrationType.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 using namespace Freestyle;
32 
34 
35 //------------------------INSTANCE METHODS ----------------------------------
36 
37 static char TimeStampF1D___doc__[] =
38  "Class hierarchy: :class:`freestyle.types.UnaryFunction1D` > "
39  ":class:`freestyle.types.UnaryFunction1DVoid` > :class:`TimeStampF1D`\n"
40  "\n"
41  ".. method:: __init__()\n"
42  "\n"
43  " Builds a TimeStampF1D object.\n"
44  "\n"
45  ".. method:: __call__(inter)\n"
46  "\n"
47  " Returns the time stamp of the Interface1D.\n"
48  "\n"
49  " :arg inter: An Interface1D object.\n"
50  " :type inter: :class:`freestyle.types.Interface1D`\n";
51 
52 static int TimeStampF1D___init__(BPy_TimeStampF1D *self, PyObject *args, PyObject *kwds)
53 {
54  static const char *kwlist[] = {nullptr};
55 
56  if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
57  return -1;
58  }
59  self->py_uf1D_void.uf1D_void = new Functions1D::TimeStampF1D();
60  return 0;
61 }
62 
63 /*-----------------------BPy_TimeStampF1D type definition ------------------------------*/
64 
65 PyTypeObject TimeStampF1D_Type = {
66  PyVarObject_HEAD_INIT(nullptr, 0) "TimeStampF1D", /* tp_name */
67  sizeof(BPy_TimeStampF1D), /* tp_basicsize */
68  0, /* tp_itemsize */
69  nullptr, /* tp_dealloc */
70  0, /* tp_vectorcall_offset */
71  nullptr, /* tp_getattr */
72  nullptr, /* tp_setattr */
73  nullptr, /* tp_reserved */
74  nullptr, /* tp_repr */
75  nullptr, /* tp_as_number */
76  nullptr, /* tp_as_sequence */
77  nullptr, /* tp_as_mapping */
78  nullptr, /* tp_hash */
79  nullptr, /* tp_call */
80  nullptr, /* tp_str */
81  nullptr, /* tp_getattro */
82  nullptr, /* tp_setattro */
83  nullptr, /* tp_as_buffer */
84  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
85  TimeStampF1D___doc__, /* tp_doc */
86  nullptr, /* tp_traverse */
87  nullptr, /* tp_clear */
88  nullptr, /* tp_richcompare */
89  0, /* tp_weaklistoffset */
90  nullptr, /* tp_iter */
91  nullptr, /* tp_iternext */
92  nullptr, /* tp_methods */
93  nullptr, /* tp_members */
94  nullptr, /* tp_getset */
95  &UnaryFunction1DVoid_Type, /* tp_base */
96  nullptr, /* tp_dict */
97  nullptr, /* tp_descr_get */
98  nullptr, /* tp_descr_set */
99  0, /* tp_dictoffset */
100  (initproc)TimeStampF1D___init__, /* tp_init */
101  nullptr, /* tp_alloc */
102  nullptr, /* tp_new */
103 };
104 
106 
107 #ifdef __cplusplus
108 }
109 #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:32