41 "Class defining the ViewMap.\n"
43 ".. method:: __init__()\n"
45 " Default constructor.");
49 static const char *kwlist[] = {
nullptr};
51 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
61 Py_TYPE(
self)->tp_free((PyObject *)
self);
66 return PyUnicode_FromFormat(
"ViewMap - address: %p",
self->vm);
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`");
83 static const char *kwlist[] = {
"x",
"y",
nullptr};
86 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"dd", (
char **)kwlist, &
x, &
y)) {
97 ".. method:: get_closest_fedge(x, y)\n"
99 " Gets the FEdge nearest to the 2D point specified as arguments.\n"
101 " :arg x: X coordinate of a 2D point.\n"
103 " :arg y: Y coordinate of a 2D point.\n"
105 " :return: The FEdge nearest to the specified 2D point.\n"
106 " :rtype: :class:`FEdge`");
110 static const char *kwlist[] = {
"x",
"y",
nullptr};
113 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"dd", (
char **)kwlist, &
x, &
y)) {
116 FEdge *fe =
const_cast<FEdge *
>(
self->vm->getClosestFEdge(
x,
y));
126 {
"get_closest_viewedge",
128 METH_VARARGS | METH_KEYWORDS,
129 ViewMap_get_closest_viewedge_doc},
130 {
"get_closest_fedge",
132 METH_VARARGS | METH_KEYWORDS,
133 ViewMap_get_closest_fedge_doc},
134 {
nullptr,
nullptr, 0,
nullptr},
140 "The 3D bounding box of the scene.\n"
142 ":type: :class:`BBox`");
152 PyErr_SetString(PyExc_TypeError,
"value must be a BBox");
155 self->vm->setScene3dBBox(*(((
BPy_BBox *)value)->bb));
163 ViewMap_scene_bbox_doc,
165 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
171 PyVarObject_HEAD_INIT(
nullptr, 0)
"ViewMap",
189 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