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/UnaryFunction1D/UnaryFunction1D
_vector_ViewShape/BPy_GetShapeF1D.cpp |
| 29 * \ingroup freestyle |
| 30 */ |
| 31 |
| 32 #include "BPy_GetShapeF1D.h" |
| 33 |
| 34 #include "../../../view_map/Functions1D.h" |
| 35 #include "../../BPy_Convert.h" |
| 36 #include "../../BPy_IntegrationType.h" |
| 37 |
| 38 #ifdef __cplusplus |
| 39 extern "C" { |
| 40 #endif |
| 41 |
| 42 ////////////////////////////////////////////////////////////////////////////////
/////////// |
| 43 |
| 44 //------------------------INSTANCE METHODS ---------------------------------- |
| 45 |
| 46 static char GetShapeF1D___doc__[] = |
| 47 "Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DVectorViewSh
ape` > :class:`GetShapeF1D`\n" |
| 48 "\n" |
| 49 ".. method:: __init__()\n" |
| 50 "\n" |
| 51 " Builds a GetShapeF1D object.\n" |
| 52 "\n" |
| 53 ".. method:: __call__(inter)\n" |
| 54 "\n" |
| 55 " Returns a list of shapes covered by this Interface1D.\n" |
| 56 "\n" |
| 57 " :arg inter: An Interface1D object.\n" |
| 58 " :type inter: :class:`Interface1D`\n" |
| 59 " :return: A list of shapes covered by the Interface1D.\n" |
| 60 " :rtype: list of :class:`ViewShape` objects\n"; |
| 61 |
| 62 static int GetShapeF1D___init__(BPy_GetShapeF1D* self, PyObject *args, PyObject
*kwds) |
| 63 { |
| 64 static const char *kwlist[] = {NULL}; |
| 65 |
| 66 if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) |
| 67 return -1; |
| 68 self->py_uf1D_vectorviewshape.uf1D_vectorviewshape = new Functions1D::Ge
tShapeF1D(); |
| 69 return 0; |
| 70 } |
| 71 |
| 72 /*-----------------------BPy_GetShapeF1D type definition -----------------------
-------*/ |
| 73 |
| 74 PyTypeObject GetShapeF1D_Type = { |
| 75 PyVarObject_HEAD_INIT(NULL, 0) |
| 76 "GetShapeF1D", /* tp_name */ |
| 77 sizeof(BPy_GetShapeF1D), /* tp_basicsize */ |
| 78 0, /* tp_itemsize */ |
| 79 0, /* tp_dealloc */ |
| 80 0, /* tp_print */ |
| 81 0, /* tp_getattr */ |
| 82 0, /* tp_setattr */ |
| 83 0, /* tp_reserved */ |
| 84 0, /* tp_repr */ |
| 85 0, /* tp_as_number */ |
| 86 0, /* tp_as_sequence */ |
| 87 0, /* tp_as_mapping */ |
| 88 0, /* tp_hash */ |
| 89 0, /* tp_call */ |
| 90 0, /* tp_str */ |
| 91 0, /* tp_getattro */ |
| 92 0, /* tp_setattro */ |
| 93 0, /* tp_as_buffer */ |
| 94 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */ |
| 95 GetShapeF1D___doc__, /* tp_doc */ |
| 96 0, /* tp_traverse */ |
| 97 0, /* tp_clear */ |
| 98 0, /* tp_richcompare */ |
| 99 0, /* tp_weaklistoffset */ |
| 100 0, /* tp_iter */ |
| 101 0, /* tp_iternext */ |
| 102 0, /* tp_methods */ |
| 103 0, /* tp_members */ |
| 104 0, /* tp_getset */ |
| 105 &UnaryFunction1DVectorViewShape_Type, /* tp_base */ |
| 106 0, /* tp_dict */ |
| 107 0, /* tp_descr_get */ |
| 108 0, /* tp_descr_set */ |
| 109 0, /* tp_dictoffset */ |
| 110 (initproc)GetShapeF1D___init__, /* tp_init */ |
| 111 0, /* tp_alloc */ |
| 112 0, /* tp_new */ |
| 113 }; |
| 114 |
| 115 ////////////////////////////////////////////////////////////////////////////////
/////////// |
| 116 |
| 117 #ifdef __cplusplus |
| 118 } |
| 119 #endif |
OLD | NEW |