32 "Class hierarchy: :class:`Interface1D` > :class:`ViewEdge`\n"
34 "Class defining a ViewEdge. A ViewEdge in an edge of the image graph.\n"
35 "it connects two :class:`ViewVertex` objects. It is made by connecting\n"
38 ".. method:: __init__()\n"
39 " __init__(brother)\n"
41 " Builds a :class:`ViewEdge` using the default constructor or the copy constructor.\n"
43 " :arg brother: A ViewEdge object.\n"
44 " :type brother: :class:`ViewEdge`");
48 static const char *kwlist[] = {
"brother",
nullptr};
49 PyObject *brother =
nullptr;
51 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"|O!", (
char **)kwlist, &
ViewEdge_Type, &brother)) {
61 self->py_if1D.borrowed =
false;
67 ViewEdge_update_fedges_doc,
68 ".. method:: update_fedges()\n"
70 " Sets Viewedge to this for all embedded fedges.\n");
74 self->ve->UpdateFEdges();
82 ViewEdge_update_fedges_doc},
83 {
nullptr,
nullptr, 0,
nullptr},
90 ViewEdge_first_viewvertex_doc,
91 "The first ViewVertex.\n"
93 ":type: :class:`ViewVertex`");
115 ViewEdge_last_viewvertex_doc,
116 "The second ViewVertex.\n"
118 ":type: :class:`ViewVertex`");
140 ViewEdge_first_fedge_doc,
141 "The first FEdge that constitutes this ViewEdge.\n"
143 ":type: :class:`FEdge`");
165 ViewEdge_last_fedge_doc,
166 "The last FEdge that constitutes this ViewEdge.\n"
168 ":type: :class:`FEdge`");
190 ViewEdge_viewshape_doc,
191 "The ViewShape to which this ViewEdge belongs to.\n"
193 ":type: :class:`ViewShape`");
215 ViewEdge_occludee_doc,
216 "The shape that is occluded by the ViewShape to which this ViewEdge\n"
217 "belongs to. If no object is occluded, this property is set to None.\n"
219 ":type: :class:`ViewShape`");
241 ViewEdge_is_closed_doc,
242 "True if this ViewEdge forms a closed loop.\n"
254 "The Id of this ViewEdge.\n"
256 ":type: :class:`Id`");
267 PyErr_SetString(PyExc_TypeError,
"value must be an Id");
277 "The nature of this ViewEdge.\n"
279 ":type: :class:`Nature`");
289 PyErr_SetString(PyExc_TypeError,
"value must be a Nature");
292 self->ve->setNature(PyLong_AsLong((PyObject *)&((
BPy_Nature *)value)->i));
299 "The quantitative invisibility.\n"
305 return PyLong_FromLong(
self->ve->qi());
312 if ((qi = PyLong_AsLong(value)) == -1 && PyErr_Occurred()) {
321 ViewEdge_chaining_time_stamp_doc,
322 "The time stamp of this ViewEdge.\n"
328 return PyLong_FromLong(
self->ve->getChainingTimeStamp());
337 if ((timestamp = PyLong_AsLong(value)) == -1 && PyErr_Occurred()) {
340 self->ve->setChainingTimeStamp(timestamp);
348 ViewEdge_first_viewvertex_doc,
353 ViewEdge_last_viewvertex_doc,
358 ViewEdge_first_fedge_doc,
363 ViewEdge_last_fedge_doc,
368 ViewEdge_viewshape_doc,
373 ViewEdge_occludee_doc,
378 ViewEdge_is_closed_doc,
387 {
"chaining_time_stamp",
390 ViewEdge_chaining_time_stamp_doc,
392 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
398 PyVarObject_HEAD_INIT(
nullptr, 0)
417 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