23 if (module ==
nullptr) {
30 PyModule_AddObjectRef(module,
"ViewMap", (PyObject *)&
ViewMap_Type);
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 " :param x: X coordinate of a 2D point.\n"
76 " :param 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,
89 ":get_closest_viewedge",
105 ViewMap_get_closest_fedge_doc,
106 ".. method:: get_closest_fedge(x, y)\n"
108 " Gets the FEdge nearest to the 2D point specified as arguments.\n"
110 " :param x: X coordinate of a 2D point.\n"
112 " :param y: Y coordinate of a 2D point.\n"
114 " :return: The FEdge nearest to the specified 2D point.\n"
115 " :rtype: :class:`FEdge`\n");
118 static const char *kwlist[] = {
"x",
"y",
nullptr};
121 if (!PyArg_ParseTupleAndKeywords(args,
125 ":get_closest_fedge",
143# pragma clang diagnostic push
144# pragma clang diagnostic ignored "-Wcast-function-type"
146# pragma GCC diagnostic push
147# pragma GCC diagnostic ignored "-Wcast-function-type"
152 {
"get_closest_viewedge",
154 METH_VARARGS | METH_KEYWORDS,
155 ViewMap_get_closest_viewedge_doc},
156 {
"get_closest_fedge",
158 METH_VARARGS | METH_KEYWORDS,
159 ViewMap_get_closest_fedge_doc},
160 {
nullptr,
nullptr, 0,
nullptr},
165# pragma clang diagnostic pop
167# pragma GCC diagnostic pop
175 ViewMap_scene_bbox_doc,
176 "The 3D bounding box of the scene.\n"
178 ":type: :class:`BBox`\n");
187 PyErr_SetString(PyExc_TypeError,
"value must be a BBox");
198 ViewMap_scene_bbox_doc,
200 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
206 PyVarObject_HEAD_INIT(
nullptr, 0)
225 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)
PyDoc_STRVAR(FalseBP1D___doc__, "Class hierarchy: :class:`freestyle.types.BinaryPredicate1D` > :class:`FalseBP1D`\n" "\n" ".. method:: __call__(inter1, inter2)\n" "\n" " Always returns false.\n" "\n" " :param inter1: The first Interface1D object.\n" " :type inter1: :class:`freestyle.types.Interface1D`\n" " :param inter2: The second Interface1D object.\n" " :type inter2: :class:`freestyle.types.Interface1D`\n" " :return: False.\n" " :rtype: bool\n")
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
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 *)
const FEdge * getClosestFEdge(real x, real y) const
const ViewEdge * getClosestViewEdge(real x, real y) const
BBox< Vec3r > getScene3dBBox() const
void setScene3dBBox(const BBox< Vec3r > &bbox)
PyObject_HEAD Freestyle::ViewMap * vm