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`\n");
43 static const char *kwlist[] = {
"brother",
nullptr};
44 PyObject *brother =
nullptr;
46 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"|O!", (
char **)kwlist, &
ViewEdge_Type, &brother)) {
56 self->py_if1D.borrowed =
false;
62 ViewEdge_update_fedges_doc,
63 ".. method:: update_fedges()\n"
65 " Sets Viewedge to this for all embedded fedges.\n");
68 self->ve->UpdateFEdges();
74# pragma clang diagnostic push
75# pragma clang diagnostic ignored "-Wcast-function-type"
77# pragma GCC diagnostic push
78# pragma GCC diagnostic ignored "-Wcast-function-type"
86 ViewEdge_update_fedges_doc},
87 {
nullptr,
nullptr, 0,
nullptr},
92# pragma clang diagnostic pop
94# pragma GCC diagnostic pop
102 ViewEdge_first_viewvertex_doc,
103 "The first ViewVertex.\n"
105 ":type: :class:`ViewVertex`\n");
126 ViewEdge_last_viewvertex_doc,
127 "The second ViewVertex.\n"
129 ":type: :class:`ViewVertex`\n");
150 ViewEdge_first_fedge_doc,
151 "The first FEdge that constitutes this ViewEdge.\n"
153 ":type: :class:`FEdge`\n");
174 ViewEdge_last_fedge_doc,
175 "The last FEdge that constitutes this ViewEdge.\n"
177 ":type: :class:`FEdge`\n");
198 ViewEdge_viewshape_doc,
199 "The ViewShape to which this ViewEdge belongs to.\n"
201 ":type: :class:`ViewShape`\n");
222 ViewEdge_occludee_doc,
223 "The shape that is occluded by the ViewShape to which this ViewEdge\n"
224 "belongs to. If no object is occluded, this property is set to None.\n"
226 ":type: :class:`ViewShape`\n");
247 ViewEdge_is_closed_doc,
248 "True if this ViewEdge forms a closed loop.\n"
259 "The Id of this ViewEdge.\n"
261 ":type: :class:`Id`\n");
271 PyErr_SetString(PyExc_TypeError,
"value must be an Id");
281 "The nature of this ViewEdge.\n"
283 ":type: :class:`Nature`\n");
292 PyErr_SetString(PyExc_TypeError,
"value must be a Nature");
295 self->ve->setNature(PyLong_AsLong((PyObject *)&((
BPy_Nature *)value)->
i));
302 "The quantitative invisibility.\n"
307 return PyLong_FromLong(
self->ve->qi());
314 if ((qi = PyLong_AsLong(value)) == -1 && PyErr_Occurred()) {
323 ViewEdge_chaining_time_stamp_doc,
324 "The time stamp of this ViewEdge.\n"
329 return PyLong_FromLong(
self->ve->getChainingTimeStamp());
338 if ((timestamp = PyLong_AsLong(value)) == -1 && PyErr_Occurred()) {
341 self->ve->setChainingTimeStamp(timestamp);
349 ViewEdge_first_viewvertex_doc,
354 ViewEdge_last_viewvertex_doc,
359 ViewEdge_first_fedge_doc,
364 ViewEdge_last_fedge_doc,
369 ViewEdge_viewshape_doc,
374 ViewEdge_occludee_doc,
379 ViewEdge_is_closed_doc,
388 {
"chaining_time_stamp",
391 ViewEdge_chaining_time_stamp_doc,
393 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
399 PyVarObject_HEAD_INIT(
nullptr, 0)
418 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 *)
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`\n")
static PyObject * ViewEdge_id_get(BPy_ViewEdge *self, void *)
static PyObject * ViewEdge_first_viewvertex_get(BPy_ViewEdge *self, void *)
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