40 "Class defining the ViewMap.\n"
42 ".. method:: __init__()\n"
44 " Default constructor.\n");
47 static const char *kwlist[] = {
nullptr};
49 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
59 Py_TYPE(
self)->tp_free((PyObject *)
self);
64 return PyUnicode_FromFormat(
"ViewMap - address: %p",
self->vm);
69 ViewMap_get_closest_viewedge_doc,
70 ".. method:: get_closest_viewedge(x, y)\n"
72 " Gets the ViewEdge nearest to the 2D point specified as arguments.\n"
74 " :arg x: X coordinate of a 2D point.\n"
76 " :arg y: Y coordinate of a 2D point.\n"
78 " :return: The ViewEdge nearest to the specified 2D point.\n"
79 " :rtype: :class:`ViewEdge`\n");
82 static const char *kwlist[] = {
"x",
"y",
nullptr};
85 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"dd", (
char **)kwlist, &
x, &
y)) {
97 ViewMap_get_closest_fedge_doc,
98 ".. method:: get_closest_fedge(x, y)\n"
100 " Gets the FEdge nearest to the 2D point specified as arguments.\n"
102 " :arg x: X coordinate of a 2D point.\n"
104 " :arg y: Y coordinate of a 2D point.\n"
106 " :return: The FEdge nearest to the specified 2D point.\n"
107 " :rtype: :class:`FEdge`\n");
110 static const char *kwlist[] = {
"x",
"y",
nullptr};
113 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"dd", (
char **)kwlist, &
x, &
y)) {
127# pragma clang diagnostic push
128# pragma clang diagnostic ignored "-Wcast-function-type"
130# pragma GCC diagnostic push
131# pragma GCC diagnostic ignored "-Wcast-function-type"
136 {
"get_closest_viewedge",
138 METH_VARARGS | METH_KEYWORDS,
139 ViewMap_get_closest_viewedge_doc},
140 {
"get_closest_fedge",
142 METH_VARARGS | METH_KEYWORDS,
143 ViewMap_get_closest_fedge_doc},
144 {
nullptr,
nullptr, 0,
nullptr},
149# pragma clang diagnostic pop
151# pragma GCC diagnostic pop
159 ViewMap_scene_bbox_doc,
160 "The 3D bounding box of the scene.\n"
162 ":type: :class:`BBox`\n");
171 PyErr_SetString(PyExc_TypeError,
"value must be a BBox");
182 ViewMap_scene_bbox_doc,
184 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
190 PyVarObject_HEAD_INIT(
nullptr, 0)
209 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
#define BPy_BBox_Check(v)
PyObject * Any_BPy_FEdge_from_FEdge(FEdge &fe)
PyObject * BPy_ViewEdge_from_ViewEdge(ViewEdge &ve)
PyObject * BPy_BBox_from_BBox(const BBox< Vec3r > &bb)
int ViewMap_Init(PyObject *module)
static PyMethodDef BPy_ViewMap_methods[]
static PyObject * ViewMap_repr(BPy_ViewMap *self)
static int ViewMap_init(BPy_ViewMap *self, PyObject *args, PyObject *kwds)
static void ViewMap_dealloc(BPy_ViewMap *self)
static PyObject * ViewMap_scene_bbox_get(BPy_ViewMap *self, void *)
static PyGetSetDef BPy_ViewMap_getseters[]
static PyObject * ViewMap_get_closest_viewedge(BPy_ViewMap *self, PyObject *args, PyObject *kwds)
PyTypeObject ViewMap_Type
PyDoc_STRVAR(ViewMap_doc, "Class defining the ViewMap.\n" "\n" ".. method:: __init__()\n" "\n" " Default constructor.\n")
static PyObject * ViewMap_get_closest_fedge(BPy_ViewMap *self, PyObject *args, PyObject *kwds)
static int ViewMap_scene_bbox_set(BPy_ViewMap *self, PyObject *value, void *)
static struct PyModuleDef module