Blender  V3.3
BPy_ShapeUP1D.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #include "BPy_ShapeUP1D.h"
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 using namespace Freestyle;
14 
16 
17 //------------------------INSTANCE METHODS ----------------------------------
18 
19 static char ShapeUP1D___doc__[] =
20  "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > :class:`ShapeUP1D`\n"
21  "\n"
22  ".. method:: __init__(first, second=0)\n"
23  "\n"
24  " Builds a ShapeUP1D object.\n"
25  "\n"
26  " :arg first: The first Id component.\n"
27  " :type first: int\n"
28  " :arg second: The second Id component.\n"
29  " :type second: int\n"
30  "\n"
31  ".. method:: __call__(inter)\n"
32  "\n"
33  " Returns true if the shape to which the Interface1D belongs to has the\n"
34  " same :class:`freestyle.types.Id` as the one specified by the user.\n"
35  "\n"
36  " :arg inter: An Interface1D object.\n"
37  " :type inter: :class:`freestyle.types.Interface1D`\n"
38  " :return: True if Interface1D belongs to the shape of the\n"
39  " user-specified Id.\n"
40  " :rtype: bool\n";
41 
42 static int ShapeUP1D___init__(BPy_ShapeUP1D *self, PyObject *args, PyObject *kwds)
43 {
44  static const char *kwlist[] = {"first", "second", nullptr};
45  unsigned u1, u2 = 0;
46 
47  if (!PyArg_ParseTupleAndKeywords(args, kwds, "I|I", (char **)kwlist, &u1, &u2)) {
48  return -1;
49  }
50  self->py_up1D.up1D = new Predicates1D::ShapeUP1D(u1, u2);
51  return 0;
52 }
53 
54 /*-----------------------BPy_ShapeUP1D type definition ------------------------------*/
55 
56 PyTypeObject ShapeUP1D_Type = {
57  PyVarObject_HEAD_INIT(nullptr, 0) "ShapeUP1D", /* tp_name */
58  sizeof(BPy_ShapeUP1D), /* 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 */
76  ShapeUP1D___doc__, /* tp_doc */
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)ShapeUP1D___init__, /* tp_init */
92  nullptr, /* tp_alloc */
93  nullptr, /* tp_new */
94 };
95 
97 
98 #ifdef __cplusplus
99 }
100 #endif
static int ShapeUP1D___init__(BPy_ShapeUP1D *self, PyObject *args, PyObject *kwds)
PyTypeObject ShapeUP1D_Type
static char ShapeUP1D___doc__[]
PyTypeObject UnaryPredicate1D_Type
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble u2
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble u1
inherits from class Rep
Definition: AppCanvas.cpp:18