28 "Class hierarchy: :class:`Interface1D` > :class:`ViewEdge`\n"
30 "Class defining a ViewEdge. A ViewEdge in an edge of the image graph.\n"
31 "it connects two :class:`ViewVertex` objects. It is made by connecting\n"
34 ".. method:: __init__()\n"
35 " __init__(brother)\n"
37 " Builds a :class:`ViewEdge` using the default constructor or the copy constructor.\n"
39 " :arg brother: A ViewEdge object.\n"
40 " :type brother: :class:`ViewEdge`");
44 static const char *kwlist[] = {
"brother",
nullptr};
45 PyObject *brother =
nullptr;
47 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"|O!", (
char **)kwlist, &
ViewEdge_Type, &brother)) {
57 self->py_if1D.borrowed =
false;
63 ViewEdge_update_fedges_doc,
64 ".. method:: update_fedges()\n"
66 " Sets Viewedge to this for all embedded fedges.\n");
70 self->ve->UpdateFEdges();
76# pragma clang diagnostic push
77# pragma clang diagnostic ignored "-Wcast-function-type"
79# pragma GCC diagnostic push
80# pragma GCC diagnostic ignored "-Wcast-function-type"
88 ViewEdge_update_fedges_doc},
89 {
nullptr,
nullptr, 0,
nullptr},
94# pragma clang diagnostic pop
96# pragma GCC diagnostic pop
104 ViewEdge_first_viewvertex_doc,
105 "The first ViewVertex.\n"
107 ":type: :class:`ViewVertex`");
129 ViewEdge_last_viewvertex_doc,
130 "The second ViewVertex.\n"
132 ":type: :class:`ViewVertex`");
154 ViewEdge_first_fedge_doc,
155 "The first FEdge that constitutes this ViewEdge.\n"
157 ":type: :class:`FEdge`");
179 ViewEdge_last_fedge_doc,
180 "The last FEdge that constitutes this ViewEdge.\n"
182 ":type: :class:`FEdge`");
204 ViewEdge_viewshape_doc,
205 "The ViewShape to which this ViewEdge belongs to.\n"
207 ":type: :class:`ViewShape`");
229 ViewEdge_occludee_doc,
230 "The shape that is occluded by the ViewShape to which this ViewEdge\n"
231 "belongs to. If no object is occluded, this property is set to None.\n"
233 ":type: :class:`ViewShape`");
255 ViewEdge_is_closed_doc,
256 "True if this ViewEdge forms a closed loop.\n"
268 "The Id of this ViewEdge.\n"
270 ":type: :class:`Id`");
281 PyErr_SetString(PyExc_TypeError,
"value must be an Id");
291 "The nature of this ViewEdge.\n"
293 ":type: :class:`Nature`");
303 PyErr_SetString(PyExc_TypeError,
"value must be a Nature");
306 self->ve->setNature(PyLong_AsLong((PyObject *)&((
BPy_Nature *)value)->
i));
313 "The quantitative invisibility.\n"
319 return PyLong_FromLong(
self->ve->qi());
326 if ((qi = PyLong_AsLong(value)) == -1 && PyErr_Occurred()) {
335 ViewEdge_chaining_time_stamp_doc,
336 "The time stamp of this ViewEdge.\n"
342 return PyLong_FromLong(
self->ve->getChainingTimeStamp());
351 if ((timestamp = PyLong_AsLong(value)) == -1 && PyErr_Occurred()) {
354 self->ve->setChainingTimeStamp(timestamp);
362 ViewEdge_first_viewvertex_doc,
367 ViewEdge_last_viewvertex_doc,
372 ViewEdge_first_fedge_doc,
377 ViewEdge_last_fedge_doc,
382 ViewEdge_viewshape_doc,
387 ViewEdge_occludee_doc,
392 ViewEdge_is_closed_doc,
401 {
"chaining_time_stamp",
404 ViewEdge_chaining_time_stamp_doc,
406 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
412 PyVarObject_HEAD_INIT(
nullptr, 0)
431 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
PyObject * BPy_Id_from_Id(Id &id)
PyObject * Any_BPy_FEdge_from_FEdge(FEdge &fe)
PyObject * BPy_Nature_from_Nature(ushort n)
PyObject * Any_BPy_ViewVertex_from_ViewVertex(ViewVertex &vv)
PyObject * PyBool_from_bool(bool b)
PyObject * BPy_ViewShape_from_ViewShape(ViewShape &vs)
#define BPy_FEdge_Check(v)
PyTypeObject Interface1D_Type
#define BPy_Nature_Check(v)
static PyObject * ViewEdge_update_fedges(BPy_ViewEdge *self)
static PyObject * ViewEdge_is_closed_get(BPy_ViewEdge *self, void *)
static int ViewEdge_occludee_set(BPy_ViewEdge *self, PyObject *value, void *)
static PyGetSetDef BPy_ViewEdge_getseters[]
static int ViewEdge_id_set(BPy_ViewEdge *self, PyObject *value, void *)
static int ViewEdge_last_fedge_set(BPy_ViewEdge *self, PyObject *value, void *)
static PyObject * ViewEdge_qi_get(BPy_ViewEdge *self, void *)
static PyObject * ViewEdge_nature_get(BPy_ViewEdge *self, void *)
static PyObject * ViewEdge_id_get(BPy_ViewEdge *self, void *)
static PyObject * ViewEdge_first_viewvertex_get(BPy_ViewEdge *self, void *)
PyDoc_STRVAR(ViewEdge_doc, "Class hierarchy: :class:`Interface1D` > :class:`ViewEdge`\n" "\n" "Class defining a ViewEdge. A ViewEdge in an edge of the image graph.\n" "it connects two :class:`ViewVertex` objects. It is made by connecting\n" "a set of FEdges.\n" "\n" ".. method:: __init__()\n" " __init__(brother)\n" "\n" " Builds a :class:`ViewEdge` using the default constructor or the copy constructor.\n" "\n" " :arg brother: A ViewEdge object.\n" " :type brother: :class:`ViewEdge`")
static PyObject * ViewEdge_chaining_time_stamp_get(BPy_ViewEdge *self, void *)
static PyObject * ViewEdge_occludee_get(BPy_ViewEdge *self, void *)
static int ViewEdge_init(BPy_ViewEdge *self, PyObject *args, PyObject *kwds)
static int ViewEdge_first_fedge_set(BPy_ViewEdge *self, PyObject *value, void *)
static PyMethodDef BPy_ViewEdge_methods[]
static PyObject * ViewEdge_last_viewvertex_get(BPy_ViewEdge *self, void *)
static int ViewEdge_chaining_time_stamp_set(BPy_ViewEdge *self, PyObject *value, void *)
static int ViewEdge_nature_set(BPy_ViewEdge *self, PyObject *value, void *)
static int ViewEdge_qi_set(BPy_ViewEdge *self, PyObject *value, void *)
static int ViewEdge_viewshape_set(BPy_ViewEdge *self, PyObject *value, void *)
static int ViewEdge_last_viewvertex_set(BPy_ViewEdge *self, PyObject *value, void *)
static PyObject * ViewEdge_first_fedge_get(BPy_ViewEdge *self, void *)
static int ViewEdge_first_viewvertex_set(BPy_ViewEdge *self, PyObject *value, void *)
static PyObject * ViewEdge_last_fedge_get(BPy_ViewEdge *self, void *)
PyTypeObject ViewEdge_Type
static PyObject * ViewEdge_viewshape_get(BPy_ViewEdge *self, void *)
#define BPy_ViewShape_Check(v)
#define BPy_ViewVertex_Check(v)
ATTR_WARN_UNUSED_RESULT const BMVert * v