OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
| 3 * |
| 4 * This program is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU General Public License |
| 6 * as published by the Free Software Foundation; either version 2 |
| 7 * of the License, or (at your option) any later version. |
| 8 * |
| 9 * This program is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. |
| 13 * |
| 14 * You should have received a copy of the GNU General Public License |
| 15 * along with this program; if not, write to the Free Software Foundation, |
| 16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 * |
| 18 * The Original Code is Copyright (C) 2010 Blender Foundation. |
| 19 * All rights reserved. |
| 20 * |
| 21 * The Original Code is: all of this file. |
| 22 * |
| 23 * Contributor(s): none yet. |
| 24 * |
| 25 * ***** END GPL LICENSE BLOCK ***** |
| 26 */ |
| 27 |
| 28 /** \file source/blender/freestyle/intern/python/BinaryPredicate1D/BPy_FalseBP1D
.cpp |
| 29 * \ingroup freestyle |
| 30 */ |
| 31 |
| 32 #include "BPy_FalseBP1D.h" |
| 33 |
| 34 #ifdef __cplusplus |
| 35 extern "C" { |
| 36 #endif |
| 37 |
| 38 ////////////////////////////////////////////////////////////////////////////////
/////////// |
| 39 |
| 40 //------------------------INSTANCE METHODS ---------------------------------- |
| 41 |
| 42 static char FalseBP1D___doc__[] = |
| 43 "Class hierarchy: :class:`BinaryPredicate1D` > :class:`FalseBP1D`\n" |
| 44 "\n" |
| 45 ".. method:: __call__(inter1, inter2)\n" |
| 46 "\n" |
| 47 " Always returns false.\n" |
| 48 "\n" |
| 49 " :arg inter1: The first Interface1D object.\n" |
| 50 " :type inter1: :class:`Interface1D`\n" |
| 51 " :arg inter2: The second Interface1D object.\n" |
| 52 " :type inter2: :class:`Interface1D`\n" |
| 53 " :return: False.\n" |
| 54 " :rtype: bool\n"; |
| 55 |
| 56 static int FalseBP1D___init__(BPy_FalseBP1D* self, PyObject *args, PyObject *kwd
s) |
| 57 { |
| 58 static const char *kwlist[] = {NULL}; |
| 59 |
| 60 if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) |
| 61 return -1; |
| 62 self->py_bp1D.bp1D = new Predicates1D::FalseBP1D(); |
| 63 return 0; |
| 64 } |
| 65 |
| 66 /*-----------------------BPy_FalseBP1D type definition -------------------------
-----*/ |
| 67 PyTypeObject FalseBP1D_Type = { |
| 68 PyVarObject_HEAD_INIT(NULL, 0) |
| 69 "FalseBP1D", /* tp_name */ |
| 70 sizeof(BPy_FalseBP1D), /* tp_basicsize */ |
| 71 0, /* tp_itemsize */ |
| 72 0, /* tp_dealloc */ |
| 73 0, /* tp_print */ |
| 74 0, /* tp_getattr */ |
| 75 0, /* tp_setattr */ |
| 76 0, /* tp_reserved */ |
| 77 0, /* tp_repr */ |
| 78 0, /* tp_as_number */ |
| 79 0, /* tp_as_sequence */ |
| 80 0, /* tp_as_mapping */ |
| 81 0, /* tp_hash */ |
| 82 0, /* tp_call */ |
| 83 0, /* tp_str */ |
| 84 0, /* tp_getattro */ |
| 85 0, /* tp_setattro */ |
| 86 0, /* tp_as_buffer */ |
| 87 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */ |
| 88 FalseBP1D___doc__, /* tp_doc */ |
| 89 0, /* tp_traverse */ |
| 90 0, /* tp_clear */ |
| 91 0, /* tp_richcompare */ |
| 92 0, /* tp_weaklistoffset */ |
| 93 0, /* tp_iter */ |
| 94 0, /* tp_iternext */ |
| 95 0, /* tp_methods */ |
| 96 0, /* tp_members */ |
| 97 0, /* tp_getset */ |
| 98 &BinaryPredicate1D_Type, /* tp_base */ |
| 99 0, /* tp_dict */ |
| 100 0, /* tp_descr_get */ |
| 101 0, /* tp_descr_set */ |
| 102 0, /* tp_dictoffset */ |
| 103 (initproc)FalseBP1D___init__, /* tp_init */ |
| 104 0, /* tp_alloc */ |
| 105 0, /* tp_new */ |
| 106 }; |
| 107 |
| 108 ////////////////////////////////////////////////////////////////////////////////
/////////// |
| 109 |
| 110 #ifdef __cplusplus |
| 111 } |
| 112 #endif |
OLD | NEW |