55 "Class defining the ViewMap.\n"
57 ".. method:: __init__()\n"
59 " Default constructor.");
63 static const char *kwlist[] = {
nullptr};
65 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
75 Py_TYPE(
self)->tp_free((PyObject *)
self);
80 return PyUnicode_FromFormat(
"ViewMap - address: %p",
self->vm);
84 ".. method:: get_closest_viewedge(x, y)\n"
86 " Gets the ViewEdge nearest to the 2D point specified as arguments.\n"
88 " :arg x: X coordinate of a 2D point.\n"
90 " :arg y: Y coordinate of a 2D point.\n"
92 " :return: The ViewEdge nearest to the specified 2D point.\n"
93 " :rtype: :class:`ViewEdge`");
97 static const char *kwlist[] = {
"x",
"y",
nullptr};
100 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"dd", (
char **)kwlist, &
x, &
y)) {
111 ".. method:: get_closest_fedge(x, y)\n"
113 " Gets the FEdge nearest to the 2D point specified as arguments.\n"
115 " :arg x: X coordinate of a 2D point.\n"
117 " :arg y: Y coordinate of a 2D point.\n"
119 " :return: The FEdge nearest to the specified 2D point.\n"
120 " :rtype: :class:`FEdge`");
124 static const char *kwlist[] = {
"x",
"y",
nullptr};
127 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"dd", (
char **)kwlist, &
x, &
y)) {
130 FEdge *fe =
const_cast<FEdge *
>(
self->vm->getClosestFEdge(
x,
y));
140 {
"get_closest_viewedge",
142 METH_VARARGS | METH_KEYWORDS,
143 ViewMap_get_closest_viewedge_doc},
144 {
"get_closest_fedge",
146 METH_VARARGS | METH_KEYWORDS,
147 ViewMap_get_closest_fedge_doc},
148 {
nullptr,
nullptr, 0,
nullptr},
154 "The 3D bounding box of the scene.\n"
156 ":type: :class:`BBox`");
166 PyErr_SetString(PyExc_TypeError,
"value must be a BBox");
169 self->vm->setScene3dBBox(*(((
BPy_BBox *)value)->bb));
177 ViewMap_scene_bbox_doc,
179 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
185 PyVarObject_HEAD_INIT(
nullptr, 0)
"ViewMap",
203 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
#define BPy_BBox_Check(v)
PyObject * BPy_ViewEdge_from_ViewEdge(ViewEdge &ve)
PyObject * Any_BPy_FEdge_from_FEdge(FEdge &fe)
PyObject * BPy_BBox_from_BBox(const BBox< Vec3r > &bb)
int ViewMap_Init(PyObject *module)
static int ViewMap_scene_bbox_set(BPy_ViewMap *self, PyObject *value, void *UNUSED(closure))
PyDoc_STRVAR(ViewMap_doc, "Class defining the ViewMap.\n" "\n" ".. method:: __init__()\n" "\n" " Default constructor.")
static PyObject * ViewMap_get_closest_fedge(BPy_ViewMap *self, PyObject *args, PyObject *kwds)
static PyMethodDef BPy_ViewMap_methods[]
static int ViewMap_init(BPy_ViewMap *self, PyObject *args, PyObject *kwds)
static void ViewMap_dealloc(BPy_ViewMap *self)
static PyGetSetDef BPy_ViewMap_getseters[]
static PyObject * ViewMap_scene_bbox_get(BPy_ViewMap *self, void *UNUSED(closure))
static PyObject * ViewMap_get_closest_viewedge(BPy_ViewMap *self, PyObject *args, PyObject *kwds)
PyTypeObject ViewMap_Type
static PyObject * ViewMap_repr(BPy_ViewMap *self)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
static struct PyModuleDef module