44 "Class defining the ViewMap.\n"
46 ".. method:: __init__()\n"
48 " Default constructor.");
52 static const char *kwlist[] = {
nullptr};
54 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
64 Py_TYPE(
self)->tp_free((PyObject *)
self);
69 return PyUnicode_FromFormat(
"ViewMap - address: %p",
self->vm);
74 ViewMap_get_closest_viewedge_doc,
75 ".. method:: get_closest_viewedge(x, y)\n"
77 " Gets the ViewEdge nearest to the 2D point specified as arguments.\n"
79 " :arg x: X coordinate of a 2D point.\n"
81 " :arg y: Y coordinate of a 2D point.\n"
83 " :return: The ViewEdge nearest to the specified 2D point.\n"
84 " :rtype: :class:`ViewEdge`");
88 static const char *kwlist[] = {
"x",
"y",
nullptr};
91 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"dd", (
char **)kwlist, &x, &y)) {
103 ViewMap_get_closest_fedge_doc,
104 ".. method:: get_closest_fedge(x, y)\n"
106 " Gets the FEdge nearest to the 2D point specified as arguments.\n"
108 " :arg x: X coordinate of a 2D point.\n"
110 " :arg y: Y coordinate of a 2D point.\n"
112 " :return: The FEdge nearest to the specified 2D point.\n"
113 " :rtype: :class:`FEdge`");
117 static const char *kwlist[] = {
"x",
"y",
nullptr};
120 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"dd", (
char **)kwlist, &x, &y)) {
133 {
"get_closest_viewedge",
135 METH_VARARGS | METH_KEYWORDS,
136 ViewMap_get_closest_viewedge_doc},
137 {
"get_closest_fedge",
139 METH_VARARGS | METH_KEYWORDS,
140 ViewMap_get_closest_fedge_doc},
141 {
nullptr,
nullptr, 0,
nullptr},
148 ViewMap_scene_bbox_doc,
149 "The 3D bounding box of the scene.\n"
151 ":type: :class:`BBox`");
161 PyErr_SetString(PyExc_TypeError,
"value must be a BBox");
172 ViewMap_scene_bbox_doc,
174 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
180 PyVarObject_HEAD_INIT(
nullptr, 0)
199 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