40 "Class defining the ViewMap.\n"
42 ".. method:: __init__()\n"
44 " Default constructor.");
48 static const char *kwlist[] = {
nullptr};
50 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
60 Py_TYPE(
self)->tp_free((PyObject *)
self);
65 return PyUnicode_FromFormat(
"ViewMap - address: %p",
self->vm);
70 ViewMap_get_closest_viewedge_doc,
71 ".. method:: get_closest_viewedge(x, y)\n"
73 " Gets the ViewEdge nearest to the 2D point specified as arguments.\n"
75 " :arg x: X coordinate of a 2D point.\n"
77 " :arg y: Y coordinate of a 2D point.\n"
79 " :return: The ViewEdge nearest to the specified 2D point.\n"
80 " :rtype: :class:`ViewEdge`");
84 static const char *kwlist[] = {
"x",
"y",
nullptr};
87 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"dd", (
char **)kwlist, &
x, &
y)) {
99 ViewMap_get_closest_fedge_doc,
100 ".. method:: get_closest_fedge(x, y)\n"
102 " Gets the FEdge nearest to the 2D point specified as arguments.\n"
104 " :arg x: X coordinate of a 2D point.\n"
106 " :arg y: Y coordinate of a 2D point.\n"
108 " :return: The FEdge nearest to the specified 2D point.\n"
109 " :rtype: :class:`FEdge`");
113 static const char *kwlist[] = {
"x",
"y",
nullptr};
116 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"dd", (
char **)kwlist, &
x, &
y)) {
130# pragma clang diagnostic push
131# pragma clang diagnostic ignored "-Wcast-function-type"
133# pragma GCC diagnostic push
134# pragma GCC diagnostic ignored "-Wcast-function-type"
139 {
"get_closest_viewedge",
141 METH_VARARGS | METH_KEYWORDS,
142 ViewMap_get_closest_viewedge_doc},
143 {
"get_closest_fedge",
145 METH_VARARGS | METH_KEYWORDS,
146 ViewMap_get_closest_fedge_doc},
147 {
nullptr,
nullptr, 0,
nullptr},
152# pragma clang diagnostic pop
154# pragma GCC diagnostic pop
162 ViewMap_scene_bbox_doc,
163 "The 3D bounding box of the scene.\n"
165 ":type: :class:`BBox`");
175 PyErr_SetString(PyExc_TypeError,
"value must be a BBox");
186 ViewMap_scene_bbox_doc,
188 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
194 PyVarObject_HEAD_INIT(
nullptr, 0)
213 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)
PyDoc_STRVAR(ViewMap_doc, "Class defining the ViewMap.\n" "\n" ".. method:: __init__()\n" "\n" " Default constructor.")
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
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