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__(*args)\n"
36 " Accepted call signatures:\n"
39 " - ``__init__(brother)``\n"
41 " Builds a :class:`ViewEdge` using the default constructor or the copy constructor.\n"
43 " :param brother: A ViewEdge object.\n"
44 " :type brother: :class:`ViewEdge`\n");
47 static const char *kwlist[] = {
"brother",
nullptr};
48 PyObject *brother =
nullptr;
50 if (!PyArg_ParseTupleAndKeywords(args,
74 ViewEdge_update_fedges_doc,
75 ".. method:: update_fedges()\n"
77 " Sets Viewedge to this for all embedded fedges.\n");
86# pragma clang diagnostic push
87# pragma clang diagnostic ignored "-Wcast-function-type"
89# pragma GCC diagnostic push
90# pragma GCC diagnostic ignored "-Wcast-function-type"
98 ViewEdge_update_fedges_doc},
99 {
nullptr,
nullptr, 0,
nullptr},
104# pragma clang diagnostic pop
106# pragma GCC diagnostic pop
114 ViewEdge_first_viewvertex_doc,
115 "The first ViewVertex.\n"
117 ":type: :class:`ViewVertex`\n");
138 ViewEdge_last_viewvertex_doc,
139 "The second ViewVertex.\n"
141 ":type: :class:`ViewVertex`\n");
162 ViewEdge_first_fedge_doc,
163 "The first FEdge that constitutes this ViewEdge.\n"
165 ":type: :class:`FEdge`\n");
186 ViewEdge_last_fedge_doc,
187 "The last FEdge that constitutes this ViewEdge.\n"
189 ":type: :class:`FEdge`\n");
210 ViewEdge_viewshape_doc,
211 "The ViewShape to which this ViewEdge belongs to.\n"
213 ":type: :class:`ViewShape`\n");
234 ViewEdge_occludee_doc,
235 "The shape that is occluded by the ViewShape to which this ViewEdge\n"
236 "belongs to. If no object is occluded, this property is set to None.\n"
238 ":type: :class:`ViewShape`\n");
259 ViewEdge_is_closed_doc,
260 "True if this ViewEdge forms a closed loop.\n"
271 "The Id of this ViewEdge.\n"
273 ":type: :class:`Id`\n");
283 PyErr_SetString(PyExc_TypeError,
"value must be an Id");
293 "The nature of this ViewEdge.\n"
295 ":type: :class:`Nature`\n");
304 PyErr_SetString(PyExc_TypeError,
"value must be a Nature");
314 "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"
350 if ((timestamp = PyLong_AsLong(value)) == -1 && PyErr_Occurred()) {
361 ViewEdge_first_viewvertex_doc,
366 ViewEdge_last_viewvertex_doc,
371 ViewEdge_first_fedge_doc,
376 ViewEdge_last_fedge_doc,
381 ViewEdge_viewshape_doc,
386 ViewEdge_occludee_doc,
391 ViewEdge_is_closed_doc,
400 {
"chaining_time_stamp",
403 ViewEdge_chaining_time_stamp_doc,
405 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
411 PyVarObject_HEAD_INIT(
nullptr, 0)
430 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)
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")
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 *)
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)
uint getChainingTimeStamp()
void setaShape(ViewShape *iShape)
virtual Nature::EdgeNature getNature() const
void setFEdgeB(FEdge *iFEdge)
void setA(ViewVertex *iA)
void setFEdgeA(FEdge *iFEdge)
void setShape(ViewShape *iVShape)
void setChainingTimeStamp(uint ts)
void setNature(Nature::EdgeNature iNature)
void setB(ViewVertex *iB)
PyObject_HEAD Freestyle::Interface1D * if1D