Blender V5.0
BPy_Interface1D.cpp File Reference

Go to the source code of this file.

Macros

#define ADD_TYPE_CONST(id)

Functions

int Interface1D_Init (PyObject *module)
 PyDoc_STRVAR (Interface1D_doc, "Base class for any 1D element.\n" "\n" ".. method:: __init__()\n" "\n" " Default constructor.\n")
static int Interface1D_init (BPy_Interface1D *self, PyObject *args, PyObject *kwds)
static void Interface1D_dealloc (BPy_Interface1D *self)
static PyObject * Interface1D_repr (BPy_Interface1D *self)
 PyDoc_STRVAR (Interface1D_vertices_begin_doc, ".. method:: vertices_begin()\n" "\n" " Returns an iterator over the Interface1D vertices, pointing to the\n" " first vertex.\n" "\n" " :return: An Interface0DIterator pointing to the first vertex.\n" " :rtype: :class:`Interface0DIterator`\n")
static PyObject * Interface1D_vertices_begin (BPy_Interface1D *self)
 PyDoc_STRVAR (Interface1D_vertices_end_doc, ".. method:: vertices_end()\n" "\n" " Returns an iterator over the Interface1D vertices, pointing after\n" " the last vertex.\n" "\n" " :return: An Interface0DIterator pointing after the last vertex.\n" " :rtype: :class:`Interface0DIterator`\n")
static PyObject * Interface1D_vertices_end (BPy_Interface1D *self)
 PyDoc_STRVAR (Interface1D_points_begin_doc, ".. method:: points_begin(t=0.0)\n" "\n" " Returns an iterator over the Interface1D points, pointing to the\n" " first point. The difference with vertices_begin() is that here we can\n" " iterate over points of the 1D element at a any given sampling.\n" " Indeed, for each iteration, a virtual point is created.\n" "\n" " :arg t: A sampling with which we want to iterate over points of\n" " this 1D element.\n" " :type t: float\n" " :return: An Interface0DIterator pointing to the first point.\n" " :rtype: :class:`Interface0DIterator`\n")
static PyObject * Interface1D_points_begin (BPy_Interface1D *self, PyObject *args, PyObject *kwds)
 PyDoc_STRVAR (Interface1D_points_end_doc, ".. method:: points_end(t=0.0)\n" "\n" " Returns an iterator over the Interface1D points, pointing after the\n" " last point. The difference with vertices_end() is that here we can\n" " iterate over points of the 1D element at a given sampling. Indeed,\n" " for each iteration, a virtual point is created.\n" "\n" " :arg t: A sampling with which we want to iterate over points of\n" " this 1D element.\n" " :type t: float\n" " :return: An Interface0DIterator pointing after the last point.\n" " :rtype: :class:`Interface0DIterator`\n")
static PyObject * Interface1D_points_end (BPy_Interface1D *self, PyObject *args, PyObject *kwds)
 PyDoc_STRVAR (Interface1D_name_doc, "The string of the name of the 1D element.\n" "\n" ":type: str\n")
static PyObject * Interface1D_name_get (BPy_Interface1D *self, void *)
 PyDoc_STRVAR (Interface1D_id_doc, "The Id of this Interface1D.\n" "\n" ":type: :class:`Id`\n")
static PyObject * Interface1D_id_get (BPy_Interface1D *self, void *)
 PyDoc_STRVAR (Interface1D_nature_doc, "The nature of this Interface1D.\n" "\n" ":type: :class:`Nature`\n")
static PyObject * Interface1D_nature_get (BPy_Interface1D *self, void *)
 PyDoc_STRVAR (Interface1D_length_2d_doc, "The 2D length of this Interface1D.\n" "\n" ":type: float\n")
static PyObject * Interface1D_length_2d_get (BPy_Interface1D *self, void *)
 PyDoc_STRVAR (Interface1D_time_stamp_doc, "The time stamp of the 1D element, mainly used for selection.\n" "\n" ":type: int\n")
static PyObject * Interface1D_time_stamp_get (BPy_Interface1D *self, void *)
static int Interface1D_time_stamp_set (BPy_Interface1D *self, PyObject *value, void *)

Variables

static PyMethodDef BPy_Interface1D_methods []
static PyGetSetDef BPy_Interface1D_getseters []
PyTypeObject Interface1D_Type

Macro Definition Documentation

◆ ADD_TYPE_CONST

#define ADD_TYPE_CONST ( id)
Value:
#define STRINGIFY(x)
void PyLong_subtype_add_to_dict(PyObject *dict, PyTypeObject *ty, const char *attr, long value)
PyTypeObject MediumType_Type
PyTypeObject Stroke_Type

Referenced by Interface1D_Init().

Function Documentation

◆ Interface1D_dealloc()

void Interface1D_dealloc ( BPy_Interface1D * self)
static

Definition at line 108 of file BPy_Interface1D.cpp.

References self.

◆ Interface1D_id_get()

PyObject * Interface1D_id_get ( BPy_Interface1D * self,
void *  )
static

Definition at line 265 of file BPy_Interface1D.cpp.

References BPy_Id_from_Id(), and self.

◆ Interface1D_Init()

◆ Interface1D_init()

int Interface1D_init ( BPy_Interface1D * self,
PyObject * args,
PyObject * kwds )
static

Definition at line 96 of file BPy_Interface1D.cpp.

References self.

◆ Interface1D_length_2d_get()

PyObject * Interface1D_length_2d_get ( BPy_Interface1D * self,
void *  )
static

Definition at line 295 of file BPy_Interface1D.cpp.

References length(), and self.

◆ Interface1D_name_get()

PyObject * Interface1D_name_get ( BPy_Interface1D * self,
void *  )
static

Definition at line 254 of file BPy_Interface1D.cpp.

References self.

◆ Interface1D_nature_get()

PyObject * Interface1D_nature_get ( BPy_Interface1D * self,
void *  )
static

Definition at line 280 of file BPy_Interface1D.cpp.

References BPy_Nature_from_Nature(), and self.

◆ Interface1D_points_begin()

PyObject * Interface1D_points_begin ( BPy_Interface1D * self,
PyObject * args,
PyObject * kwds )
static

◆ Interface1D_points_end()

PyObject * Interface1D_points_end ( BPy_Interface1D * self,
PyObject * args,
PyObject * kwds )
static

◆ Interface1D_repr()

PyObject * Interface1D_repr ( BPy_Interface1D * self)
static

Definition at line 116 of file BPy_Interface1D.cpp.

References self.

◆ Interface1D_time_stamp_get()

PyObject * Interface1D_time_stamp_get ( BPy_Interface1D * self,
void *  )
static

Definition at line 310 of file BPy_Interface1D.cpp.

References self.

◆ Interface1D_time_stamp_set()

int Interface1D_time_stamp_set ( BPy_Interface1D * self,
PyObject * value,
void *  )
static

Definition at line 315 of file BPy_Interface1D.cpp.

References self.

◆ Interface1D_vertices_begin()

PyObject * Interface1D_vertices_begin ( BPy_Interface1D * self)
static

◆ Interface1D_vertices_end()

PyObject * Interface1D_vertices_end ( BPy_Interface1D * self)
static

◆ PyDoc_STRVAR() [1/10]

PyDoc_STRVAR ( Interface1D_doc ,
"Base class for any 1D element.\n" "\n" ".. method:: __init__()\n" "\n" " Default constructor.\n"  )

◆ PyDoc_STRVAR() [2/10]

PyDoc_STRVAR ( Interface1D_id_doc ,
"The Id of this Interface1D.\n" "\n" ":type: :class:`Id`\n"  )

◆ PyDoc_STRVAR() [3/10]

PyDoc_STRVAR ( Interface1D_length_2d_doc ,
"The 2D length of this Interface1D.\n" "\n" ":type: float\n"  )

◆ PyDoc_STRVAR() [4/10]

PyDoc_STRVAR ( Interface1D_name_doc ,
"The string of the name of the 1D element.\n" "\n" ":type: str\n"  )

◆ PyDoc_STRVAR() [5/10]

PyDoc_STRVAR ( Interface1D_nature_doc ,
"The nature of this Interface1D.\n" "\n" ":type: :class:`Nature`\n"  )

◆ PyDoc_STRVAR() [6/10]

PyDoc_STRVAR ( Interface1D_points_begin_doc ,
".. method:: points_begin(t=0.0)\n" "\n" " Returns an iterator over the Interface1D points,
pointing to the\n" " first point. The difference with vertices_begin() is that here we can\n" " iterate over points of the 1D element at a any given sampling.\n" " Indeed,
for each iteration,
a virtual point is created.\n" "\n" " :arg t:A sampling with which we want to iterate over points of\n" " this 1D element.\n" " :type t:float\n" " :return:An Interface0DIterator pointing to the first point.\n" " :rtype::class:`Interface0DIterator`\n"  )

◆ PyDoc_STRVAR() [7/10]

PyDoc_STRVAR ( Interface1D_points_end_doc ,
".. method:: points_end(t=0.0)\n" "\n" " Returns an iterator over the Interface1D points,
pointing after the\n" " last point. The difference with vertices_end() is that here we can\n" " iterate over points of the 1D element at a given sampling. Indeed,
\n" " for each iteration,
a virtual point is created.\n" "\n" " :arg t:A sampling with which we want to iterate over points of\n" " this 1D element.\n" " :type t:float\n" " :return:An Interface0DIterator pointing after the last point.\n" " :rtype::class:`Interface0DIterator`\n"  )

◆ PyDoc_STRVAR() [8/10]

PyDoc_STRVAR ( Interface1D_time_stamp_doc ,
"The time stamp of the 1D element,
mainly used for selection.\n" "\n" ":type:int\n"  )

◆ PyDoc_STRVAR() [9/10]

PyDoc_STRVAR ( Interface1D_vertices_begin_doc ,
".. method:: vertices_begin()\n" "\n" " Returns an iterator over the Interface1D vertices,
pointing to the\n" " first vertex.\n" "\n" " :return:An Interface0DIterator pointing to the first vertex.\n" " :rtype::class:`Interface0DIterator`\n"  )

◆ PyDoc_STRVAR() [10/10]

PyDoc_STRVAR ( Interface1D_vertices_end_doc ,
".. method:: vertices_end()\n" "\n" " Returns an iterator over the Interface1D vertices,
pointing after\n" " the last vertex.\n" "\n" " :return:An Interface0DIterator pointing after the last vertex.\n" " :rtype::class:`Interface0DIterator`\n"  )

Variable Documentation

◆ BPy_Interface1D_getseters

PyGetSetDef BPy_Interface1D_getseters[]
static
Initial value:
= {
{"name", (getter)Interface1D_name_get, (setter) nullptr, Interface1D_name_doc, nullptr},
{"id", (getter)Interface1D_id_get, (setter) nullptr, Interface1D_id_doc, nullptr},
{"nature", (getter)Interface1D_nature_get, (setter) nullptr, Interface1D_nature_doc, nullptr},
{"length_2d",
(setter) nullptr,
Interface1D_length_2d_doc,
nullptr},
{"time_stamp",
Interface1D_time_stamp_doc,
nullptr},
{nullptr, nullptr, nullptr, nullptr, nullptr}
}
static PyObject * Interface1D_time_stamp_get(BPy_Interface1D *self, void *)
static PyObject * Interface1D_length_2d_get(BPy_Interface1D *self, void *)
static PyObject * Interface1D_id_get(BPy_Interface1D *self, void *)
static int Interface1D_time_stamp_set(BPy_Interface1D *self, PyObject *value, void *)
static PyObject * Interface1D_name_get(BPy_Interface1D *self, void *)
static PyObject * Interface1D_nature_get(BPy_Interface1D *self, void *)

Definition at line 327 of file BPy_Interface1D.cpp.

◆ BPy_Interface1D_methods

PyMethodDef BPy_Interface1D_methods[]
static
Initial value:
= {
{"vertices_begin",
METH_NOARGS,
Interface1D_vertices_begin_doc},
{"vertices_end",
METH_NOARGS,
Interface1D_vertices_end_doc},
{"points_begin",
METH_VARARGS | METH_KEYWORDS,
Interface1D_points_begin_doc},
{"points_end",
(PyCFunction)Interface1D_points_end,
METH_VARARGS | METH_KEYWORDS,
Interface1D_points_end_doc},
{nullptr, nullptr, 0, nullptr},
}
static PyObject * Interface1D_vertices_begin(BPy_Interface1D *self)
static PyObject * Interface1D_points_end(BPy_Interface1D *self, PyObject *args, PyObject *kwds)
static PyObject * Interface1D_points_begin(BPy_Interface1D *self, PyObject *args, PyObject *kwds)
static PyObject * Interface1D_vertices_end(BPy_Interface1D *self)

Definition at line 218 of file BPy_Interface1D.cpp.

◆ Interface1D_Type