Blender  V3.3
Functions | Variables
BPy_Interface0DIterator.cpp File Reference
#include "BPy_Interface0DIterator.h"
#include "../BPy_Convert.h"
#include "../BPy_Interface1D.h"

Go to the source code of this file.

Functions

 PyDoc_STRVAR (Interface0DIterator_doc, "Class hierarchy: :class:`Iterator` > :class:`Interface0DIterator`\n" "\n" "Class defining an iterator over Interface0D elements. An instance of\n" "this iterator is always obtained from a 1D element.\n" "\n" ".. method:: __init__(brother)\n" " __init__(it)\n" "\n" " Construct a nested Interface0DIterator using either the copy constructor\n" " or the constructor that takes an he argument of a Function0D.\n" "\n" " :arg brother: An Interface0DIterator object.\n" " :type brother: :class:`Interface0DIterator`\n" " :arg it: An iterator object to be nested.\n" " :type it: :class:`SVertexIterator`, :class:`CurvePointIterator`, or\n" " :class:`StrokeVertexIterator`")
 
static int convert_nested_it (PyObject *obj, void *v)
 
static int Interface0DIterator_init (BPy_Interface0DIterator *self, PyObject *args, PyObject *kwds)
 
static PyObject * Interface0DIterator_iter (BPy_Interface0DIterator *self)
 
static PyObject * Interface0DIterator_iternext (BPy_Interface0DIterator *self)
 
 PyDoc_STRVAR (Interface0DIterator_object_doc, "The 0D object currently pointed to by this iterator. Note that the object\n" "may be an instance of an Interface0D subclass. For example if the iterator\n" "has been created from the `vertices_begin()` method of the :class:`Stroke`\n" "class, the .object property refers to a :class:`StrokeVertex` object.\n" "\n" ":type: :class:`Interface0D` or one of its subclasses.")
 
static PyObject * Interface0DIterator_object_get (BPy_Interface0DIterator *self, void *UNUSED(closure))
 
 PyDoc_STRVAR (Interface0DIterator_t_doc, "The curvilinear abscissa of the current point.\n" "\n" ":type: float")
 
static PyObject * Interface0DIterator_t_get (BPy_Interface0DIterator *self, void *UNUSED(closure))
 
 PyDoc_STRVAR (Interface0DIterator_u_doc, "The point parameter at the current point in the 1D element (0 <= u <= 1).\n" "\n" ":type: float")
 
static PyObject * Interface0DIterator_u_get (BPy_Interface0DIterator *self, void *UNUSED(closure))
 
 PyDoc_STRVAR (Interface0DIterator_at_last_doc, "True if the iterator points to the last valid element.\n" "For its counterpart (pointing to the first valid element), use it.is_begin.\n" "\n" ":type: bool")
 
static PyObject * Interface0DIterator_at_last_get (BPy_Interface0DIterator *self, void *UNUSED(closure))
 

Variables

static PyGetSetDef BPy_Interface0DIterator_getseters []
 
PyTypeObject Interface0DIterator_Type
 

Function Documentation

◆ convert_nested_it()

static int convert_nested_it ( PyObject *  obj,
void v 
)
static

Definition at line 40 of file BPy_Interface0DIterator.cpp.

References BPy_Iterator_Check, and v.

Referenced by Interface0DIterator_init().

◆ Interface0DIterator_at_last_get()

static PyObject* Interface0DIterator_at_last_get ( BPy_Interface0DIterator self,
void UNUSEDclosure 
)
static

Definition at line 172 of file BPy_Interface0DIterator.cpp.

References PyBool_from_bool(), and self.

◆ Interface0DIterator_init()

static int Interface0DIterator_init ( BPy_Interface0DIterator self,
PyObject *  args,
PyObject *  kwds 
)
static

◆ Interface0DIterator_iter()

static PyObject* Interface0DIterator_iter ( BPy_Interface0DIterator self)
static

Definition at line 90 of file BPy_Interface0DIterator.cpp.

◆ Interface0DIterator_iternext()

static PyObject* Interface0DIterator_iternext ( BPy_Interface0DIterator self)
static

Definition at line 97 of file BPy_Interface0DIterator.cpp.

References Any_BPy_Interface0D_from_Interface0D(), and self.

◆ Interface0DIterator_object_get()

static PyObject* Interface0DIterator_object_get ( BPy_Interface0DIterator self,
void UNUSEDclosure 
)
static

Definition at line 136 of file BPy_Interface0DIterator.cpp.

References Any_BPy_Interface0D_from_Interface0D(), and self.

◆ Interface0DIterator_t_get()

static PyObject* Interface0DIterator_t_get ( BPy_Interface0DIterator self,
void UNUSEDclosure 
)
static

Definition at line 151 of file BPy_Interface0DIterator.cpp.

References self.

◆ Interface0DIterator_u_get()

static PyObject* Interface0DIterator_u_get ( BPy_Interface0DIterator self,
void UNUSEDclosure 
)
static

Definition at line 161 of file BPy_Interface0DIterator.cpp.

References self.

◆ PyDoc_STRVAR() [1/5]

PyDoc_STRVAR ( Interface0DIterator_at_last_doc  ,
"True if the iterator points to the last valid element.\n" "For its counterpart   pointing to the first valid element,
use it.is_begin.\n" "\n" ":type:bool"   
)

◆ PyDoc_STRVAR() [2/5]

PyDoc_STRVAR ( Interface0DIterator_doc  ,
"Class hierarchy: :class:`Iterator ,
:class:`Interface0DIterator`\n" "\n" "Class defining an iterator over Interface0D elements. An instance of\n" "this iterator is always obtained from a 1D element.\n" "\n" ".. method::__init__(brother)\n" " __init__(it)\n" "\n" " Construct a nested Interface0DIterator using either the copy constructor\n" " or the constructor that takes an he argument of a Function0D.\n" "\n" " :arg brother:An Interface0DIterator object.\n" " :type brother::class:`Interface0DIterator`\n" " :arg it:An iterator object to be nested.\n" " :type it::class:`SVertexIterator`  ,
:class:`CurvePointIterator`  ,
or\n" " :class:`StrokeVertexIterator`"   
)

◆ PyDoc_STRVAR() [3/5]

PyDoc_STRVAR ( Interface0DIterator_object_doc  ,
"The 0D object currently pointed to by this iterator. Note that the object\n" "may be an instance of an Interface0D subclass. For example if the iterator\n" "has been created from the `vertices_begin()` method of the :class:`Stroke`\n" "  class,
the .object property refers to a :class:`StrokeVertex` object.\n" "\n" ":type::class:`Interface0D` or one of its subclasses."   
)

◆ PyDoc_STRVAR() [4/5]

PyDoc_STRVAR ( Interface0DIterator_t_doc  ,
"The curvilinear abscissa of the current point.\n" "\n" ":type: float  
)

◆ PyDoc_STRVAR() [5/5]

PyDoc_STRVAR ( Interface0DIterator_u_doc  ,
"The point parameter at the current point in the 1D element (0 <= u <= 1).\n" "\n" ":type: float  
)

Variable Documentation

◆ BPy_Interface0DIterator_getseters

PyGetSetDef BPy_Interface0DIterator_getseters[]
static
Initial value:
= {
{"object",
(setter) nullptr,
Interface0DIterator_object_doc,
nullptr},
{"t", (getter)Interface0DIterator_t_get, (setter) nullptr, Interface0DIterator_t_doc, nullptr},
{"u", (getter)Interface0DIterator_u_get, (setter) nullptr, Interface0DIterator_u_doc, nullptr},
{"at_last",
(setter) nullptr,
Interface0DIterator_at_last_doc,
nullptr},
{nullptr, nullptr, nullptr, nullptr, nullptr}
}
static PyObject * Interface0DIterator_u_get(BPy_Interface0DIterator *self, void *UNUSED(closure))
static PyObject * Interface0DIterator_object_get(BPy_Interface0DIterator *self, void *UNUSED(closure))
static PyObject * Interface0DIterator_t_get(BPy_Interface0DIterator *self, void *UNUSED(closure))
static PyObject * Interface0DIterator_at_last_get(BPy_Interface0DIterator *self, void *UNUSED(closure))

Definition at line 178 of file BPy_Interface0DIterator.cpp.

◆ Interface0DIterator_Type

PyTypeObject Interface0DIterator_Type