Blender V4.3
BPy_Interface1D.cpp File Reference

Go to the source code of this file.

Macros

#define ADD_TYPE_CONST(id)    PyLong_subtype_add_to_dict(Stroke_Type.tp_dict, &MediumType_Type, STRINGIFY(id), Stroke::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.")
 
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`")
 
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`")
 
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`")
 
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`")
 
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")
 
static PyObject * Interface1D_name_get (BPy_Interface1D *self, void *)
 
 PyDoc_STRVAR (Interface1D_id_doc, "The Id of this Interface1D.\n" "\n" ":type: :class:`Id`")
 
static PyObject * Interface1D_id_get (BPy_Interface1D *self, void *)
 
 PyDoc_STRVAR (Interface1D_nature_doc, "The nature of this Interface1D.\n" "\n" ":type: :class:`Nature`")
 
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")
 
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")
 
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)     PyLong_subtype_add_to_dict(Stroke_Type.tp_dict, &MediumType_Type, STRINGIFY(id), Stroke::id)

Referenced by Interface1D_Init().

Function Documentation

◆ Interface1D_dealloc()

static void Interface1D_dealloc ( BPy_Interface1D * self)
static

Definition at line 113 of file BPy_Interface1D.cpp.

References self.

◆ Interface1D_id_get()

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

Definition at line 258 of file BPy_Interface1D.cpp.

References BPy_Id_from_Id(), and self.

◆ Interface1D_Init()

◆ Interface1D_init()

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

Definition at line 101 of file BPy_Interface1D.cpp.

References self.

◆ Interface1D_length_2d_get()

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

Definition at line 290 of file BPy_Interface1D.cpp.

References self.

◆ Interface1D_name_get()

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

Definition at line 246 of file BPy_Interface1D.cpp.

References self.

◆ Interface1D_nature_get()

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

Definition at line 274 of file BPy_Interface1D.cpp.

References BPy_Nature_from_Nature(), and self.

◆ Interface1D_points_begin()

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

◆ Interface1D_points_end()

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

◆ Interface1D_repr()

static PyObject * Interface1D_repr ( BPy_Interface1D * self)
static

Definition at line 121 of file BPy_Interface1D.cpp.

References self.

◆ Interface1D_time_stamp_get()

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

Definition at line 306 of file BPy_Interface1D.cpp.

References self.

◆ Interface1D_time_stamp_set()

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

Definition at line 311 of file BPy_Interface1D.cpp.

References self.

◆ Interface1D_vertices_begin()

static PyObject * Interface1D_vertices_begin ( BPy_Interface1D * self)
static

◆ Interface1D_vertices_end()

static 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."  )

◆ PyDoc_STRVAR() [2/10]

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

◆ PyDoc_STRVAR() [3/10]

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

◆ PyDoc_STRVAR() [4/10]

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

◆ PyDoc_STRVAR() [5/10]

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

◆ 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`"  )

◆ 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`"  )

◆ 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"  )

◆ 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`"  )

◆ 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`"  )

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 323 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 217 of file BPy_Interface1D.cpp.

◆ Interface1D_Type