Blender  V3.3
Functions | Variables
BPy_Interface1D.cpp File Reference
#include "BPy_Interface1D.h"
#include "BPy_Convert.h"
#include "Interface1D/BPy_FEdge.h"
#include "Interface1D/BPy_FrsCurve.h"
#include "Interface1D/BPy_Stroke.h"
#include "Interface1D/BPy_ViewEdge.h"
#include "Interface1D/Curve/BPy_Chain.h"
#include "Interface1D/FEdge/BPy_FEdgeSharp.h"
#include "Interface1D/FEdge/BPy_FEdgeSmooth.h"
#include "BPy_MediumType.h"

Go to the source code of this file.

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 *UNUSED(closure))
 
 PyDoc_STRVAR (Interface1D_id_doc, "The Id of this Interface1D.\n" "\n" ":type: :class:`Id`")
 
static PyObject * Interface1D_id_get (BPy_Interface1D *self, void *UNUSED(closure))
 
 PyDoc_STRVAR (Interface1D_nature_doc, "The nature of this Interface1D.\n" "\n" ":type: :class:`Nature`")
 
static PyObject * Interface1D_nature_get (BPy_Interface1D *self, void *UNUSED(closure))
 
 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 *UNUSED(closure))
 
 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 *UNUSED(closure))
 
static int Interface1D_time_stamp_set (BPy_Interface1D *self, PyObject *value, void *UNUSED(closure))
 

Variables

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

Function Documentation

◆ Interface1D_dealloc()

static void Interface1D_dealloc ( BPy_Interface1D self)
static

Definition at line 114 of file BPy_Interface1D.cpp.

References self.

◆ Interface1D_id_get()

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

Definition at line 247 of file BPy_Interface1D.cpp.

References BPy_Id_from_Id(), id, and self.

◆ Interface1D_init()

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

Definition at line 102 of file BPy_Interface1D.cpp.

◆ Interface1D_Init()

int Interface1D_Init ( PyObject *  module)

◆ Interface1D_length_2d_get()

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

Definition at line 275 of file BPy_Interface1D.cpp.

References blender::math::length().

◆ Interface1D_name_get()

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

Definition at line 237 of file BPy_Interface1D.cpp.

◆ Interface1D_nature_get()

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

Definition at line 261 of file BPy_Interface1D.cpp.

References BPy_Nature_from_Nature().

◆ 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 122 of file BPy_Interface1D.cpp.

References self.

◆ Interface1D_time_stamp_get()

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

Definition at line 289 of file BPy_Interface1D.cpp.

References self.

◆ Interface1D_time_stamp_set()

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

Definition at line 294 of file BPy_Interface1D.cpp.

◆ 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 int Interface1D_time_stamp_set(BPy_Interface1D *self, PyObject *value, void *UNUSED(closure))
static PyObject * Interface1D_time_stamp_get(BPy_Interface1D *self, void *UNUSED(closure))
static PyObject * Interface1D_id_get(BPy_Interface1D *self, void *UNUSED(closure))
static PyObject * Interface1D_length_2d_get(BPy_Interface1D *self, void *UNUSED(closure))
static PyObject * Interface1D_name_get(BPy_Interface1D *self, void *UNUSED(closure))
static PyObject * Interface1D_nature_get(BPy_Interface1D *self, void *UNUSED(closure))

Definition at line 308 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_points_begin(BPy_Interface1D *self, PyObject *args, PyObject *kwds)
static PyObject * Interface1D_vertices_end(BPy_Interface1D *self)
static PyObject * Interface1D_vertices_begin(BPy_Interface1D *self)
static PyObject * Interface1D_points_end(BPy_Interface1D *self, PyObject *args, PyObject *kwds)

Definition at line 210 of file BPy_Interface1D.cpp.

◆ Interface1D_Type

PyTypeObject Interface1D_Type