Blender V4.3
BPy_StrokeVertex.cpp File Reference

Go to the source code of this file.

Functions

 PyDoc_STRVAR (StrokeVertex_doc, "Class hierarchy: :class:`Interface0D` > :class:`CurvePoint` > :class:`StrokeVertex`\n" "\n" "Class to define a stroke vertex.\n" "\n" ".. method:: __init__()\n" " __init__(brother)\n" " __init__(first_vertex, second_vertex, t3d)\n" " __init__(point)\n" " __init__(svertex)\n" " __init__(svertex, attribute)\n" "\n" " Builds a :class:`StrokeVertex` using the default constructor,\n" " copy constructor, from 2 :class:`StrokeVertex` and an interpolation parameter,\n" " from a CurvePoint, from a SVertex, or a :class:`SVertex`" " and a :class:`StrokeAttribute` object.\n" "\n" " :arg brother: A StrokeVertex object.\n" " :type brother: :class:`StrokeVertex`\n" " :arg first_vertex: The first StrokeVertex.\n" " :type first_vertex: :class:`StrokeVertex`\n" " :arg second_vertex: The second StrokeVertex.\n" " :type second_vertex: :class:`StrokeVertex`\n" " :arg t3d: An interpolation parameter.\n" " :type t3d: float\n" " :arg point: A CurvePoint object.\n" " :type point: :class:`CurvePoint`\n" " :arg svertex: An SVertex object.\n" " :type svertex: :class:`SVertex`\n" " :arg svertex: An SVertex object.\n" " :type svertex: :class:`SVertex`\n" " :arg attribute: A StrokeAttribute object.\n" " :type attribute: :class:`StrokeAttribute`")
 
static int StrokeVertex_init (BPy_StrokeVertex *self, PyObject *args, PyObject *kwds)
 
static int StrokeVertex_mathutils_check (BaseMathObject *bmo)
 
static int StrokeVertex_mathutils_get (BaseMathObject *bmo, int)
 
static int StrokeVertex_mathutils_set (BaseMathObject *bmo, int)
 
static int StrokeVertex_mathutils_get_index (BaseMathObject *bmo, int, int index)
 
static int StrokeVertex_mathutils_set_index (BaseMathObject *bmo, int, int index)
 
void StrokeVertex_mathutils_register_callback ()
 
 PyDoc_STRVAR (StrokeVertex_attribute_doc, "StrokeAttribute for this StrokeVertex.\n" "\n" ":type: :class:`StrokeAttribute`")
 
static PyObject * StrokeVertex_attribute_get (BPy_StrokeVertex *self, void *)
 
static int StrokeVertex_attribute_set (BPy_StrokeVertex *self, PyObject *value, void *)
 
 PyDoc_STRVAR (StrokeVertex_curvilinear_abscissa_doc, "Curvilinear abscissa of this StrokeVertex in the Stroke.\n" "\n" ":type: float")
 
static PyObject * StrokeVertex_curvilinear_abscissa_get (BPy_StrokeVertex *self, void *)
 
static int StrokeVertex_curvilinear_abscissa_set (BPy_StrokeVertex *self, PyObject *value, void *)
 
 PyDoc_STRVAR (StrokeVertex_point_doc, "2D point coordinates.\n" "\n" ":type: :class:`mathutils.Vector`")
 
static PyObject * StrokeVertex_point_get (BPy_StrokeVertex *self, void *)
 
static int StrokeVertex_point_set (BPy_StrokeVertex *self, PyObject *value, void *)
 
 PyDoc_STRVAR (StrokeVertex_stroke_length_doc, "Stroke length (it is only a value retained by the StrokeVertex,\n" "and it won't change the real stroke length).\n" "\n" ":type: float")
 
static PyObject * StrokeVertex_stroke_length_get (BPy_StrokeVertex *self, void *)
 
static int StrokeVertex_stroke_length_set (BPy_StrokeVertex *self, PyObject *value, void *)
 
 PyDoc_STRVAR (StrokeVertex_u_doc, "Curvilinear abscissa of this StrokeVertex in the Stroke.\n" "\n" ":type: float")
 
static PyObject * StrokeVertex_u_get (BPy_StrokeVertex *self, void *)
 

Variables

static Mathutils_Callback StrokeVertex_mathutils_cb
 
static uchar StrokeVertex_mathutils_cb_index = -1
 
static PyGetSetDef BPy_StrokeVertex_getseters []
 
PyTypeObject StrokeVertex_Type
 

Function Documentation

◆ PyDoc_STRVAR() [1/6]

PyDoc_STRVAR ( StrokeVertex_attribute_doc ,
"StrokeAttribute for this StrokeVertex.\n" "\n" ":type: :class:`StrokeAttribute`"  )

◆ PyDoc_STRVAR() [2/6]

PyDoc_STRVAR ( StrokeVertex_curvilinear_abscissa_doc ,
"Curvilinear abscissa of this StrokeVertex in the Stroke.\n" "\n" ":type: float"  )

◆ PyDoc_STRVAR() [3/6]

PyDoc_STRVAR ( StrokeVertex_doc ,
"Class hierarchy: :class:`Interface0D` ,
:class:`CurvePoint` ,
:class:`StrokeVertex`\n" "\n" "Class to define a stroke vertex.\n" "\n" ".. method::__init__()\n" " __init__(brother)\n" " __init__(first_vertex, second_vertex, t3d)\n" " __init__(point)\n" " __init__(svertex)\n" " __init__(svertex, attribute)\n" "\n" " Builds a :class:`StrokeVertex` using the default constructor,
\n" " copy constructor,
from 2 :class:`StrokeVertex` and an interpolation parameter,
\n" " from a CurvePoint,
from a SVertex,
or a :class:`SVertex`" " and a :class:`StrokeAttribute` object.\n" "\n" " :arg brother:A StrokeVertex object.\n" " :type brother::class:`StrokeVertex`\n" " :arg first_vertex:The first StrokeVertex.\n" " :type first_vertex::class:`StrokeVertex`\n" " :arg second_vertex:The second StrokeVertex.\n" " :type second_vertex::class:`StrokeVertex`\n" " :arg t3d:An interpolation parameter.\n" " :type t3d:float\n" " :arg point:A CurvePoint object.\n" " :type point::class:`CurvePoint`\n" " :arg svertex:An SVertex object.\n" " :type svertex::class:`SVertex`\n" " :arg svertex:An SVertex object.\n" " :type svertex::class:`SVertex`\n" " :arg attribute:A StrokeAttribute object.\n" " :type attribute::class:`StrokeAttribute`"  )

◆ PyDoc_STRVAR() [4/6]

PyDoc_STRVAR ( StrokeVertex_point_doc ,
"2D point coordinates.\n" "\n" ":type: :class:`mathutils.Vector`"  )

◆ PyDoc_STRVAR() [5/6]

PyDoc_STRVAR ( StrokeVertex_stroke_length_doc ,
"Stroke length (it is only a value retained by the StrokeVertex,\n" "and it won't change the real stroke length).\n" "\n" ":type: float"  )

◆ PyDoc_STRVAR() [6/6]

PyDoc_STRVAR ( StrokeVertex_u_doc ,
"Curvilinear abscissa of this StrokeVertex in the Stroke.\n" "\n" ":type: float"  )

◆ StrokeVertex_attribute_get()

static PyObject * StrokeVertex_attribute_get ( BPy_StrokeVertex * self,
void *  )
static

Definition at line 231 of file BPy_StrokeVertex.cpp.

References BPy_StrokeAttribute_from_StrokeAttribute(), and self.

◆ StrokeVertex_attribute_set()

static int StrokeVertex_attribute_set ( BPy_StrokeVertex * self,
PyObject * value,
void *  )
static

Definition at line 236 of file BPy_StrokeVertex.cpp.

References BPy_StrokeAttribute_Check, and self.

◆ StrokeVertex_curvilinear_abscissa_get()

static PyObject * StrokeVertex_curvilinear_abscissa_get ( BPy_StrokeVertex * self,
void *  )
static

Definition at line 253 of file BPy_StrokeVertex.cpp.

References self.

◆ StrokeVertex_curvilinear_abscissa_set()

static int StrokeVertex_curvilinear_abscissa_set ( BPy_StrokeVertex * self,
PyObject * value,
void *  )
static

Definition at line 258 of file BPy_StrokeVertex.cpp.

References self.

◆ StrokeVertex_init()

static int StrokeVertex_init ( BPy_StrokeVertex * self,
PyObject * args,
PyObject * kwds )
static

◆ StrokeVertex_mathutils_check()

static int StrokeVertex_mathutils_check ( BaseMathObject * bmo)
static

Definition at line 151 of file BPy_StrokeVertex.cpp.

References BPy_StrokeVertex_Check.

◆ StrokeVertex_mathutils_get()

static int StrokeVertex_mathutils_get ( BaseMathObject * bmo,
int  )
static

Definition at line 159 of file BPy_StrokeVertex.cpp.

References float, and self.

◆ StrokeVertex_mathutils_get_index()

static int StrokeVertex_mathutils_get_index ( BaseMathObject * bmo,
int ,
int index )
static

Definition at line 175 of file BPy_StrokeVertex.cpp.

References float, and self.

◆ StrokeVertex_mathutils_register_callback()

void StrokeVertex_mathutils_register_callback ( )

◆ StrokeVertex_mathutils_set()

static int StrokeVertex_mathutils_set ( BaseMathObject * bmo,
int  )
static

Definition at line 167 of file BPy_StrokeVertex.cpp.

References self.

◆ StrokeVertex_mathutils_set_index()

static int StrokeVertex_mathutils_set_index ( BaseMathObject * bmo,
int ,
int index )
static

Definition at line 191 of file BPy_StrokeVertex.cpp.

References self.

◆ StrokeVertex_point_get()

static PyObject * StrokeVertex_point_get ( BPy_StrokeVertex * self,
void *  )
static

◆ StrokeVertex_point_set()

static int StrokeVertex_point_set ( BPy_StrokeVertex * self,
PyObject * value,
void *  )
static

Definition at line 284 of file BPy_StrokeVertex.cpp.

References mathutils_array_parse(), self, and v.

◆ StrokeVertex_stroke_length_get()

static PyObject * StrokeVertex_stroke_length_get ( BPy_StrokeVertex * self,
void *  )
static

Definition at line 303 of file BPy_StrokeVertex.cpp.

References self.

◆ StrokeVertex_stroke_length_set()

static int StrokeVertex_stroke_length_set ( BPy_StrokeVertex * self,
PyObject * value,
void *  )
static

Definition at line 308 of file BPy_StrokeVertex.cpp.

References self.

◆ StrokeVertex_u_get()

static PyObject * StrokeVertex_u_get ( BPy_StrokeVertex * self,
void *  )
static

Definition at line 329 of file BPy_StrokeVertex.cpp.

References self.

Variable Documentation

◆ BPy_StrokeVertex_getseters

PyGetSetDef BPy_StrokeVertex_getseters[]
static
Initial value:
= {
{"attribute",
StrokeVertex_attribute_doc,
nullptr},
{"curvilinear_abscissa",
StrokeVertex_curvilinear_abscissa_doc,
nullptr},
{"point",
StrokeVertex_point_doc,
nullptr},
{"stroke_length",
StrokeVertex_stroke_length_doc,
nullptr},
{"u", (getter)StrokeVertex_u_get, (setter) nullptr, StrokeVertex_u_doc, nullptr},
{nullptr, nullptr, nullptr, nullptr, nullptr}
}
static int StrokeVertex_point_set(BPy_StrokeVertex *self, PyObject *value, void *)
static int StrokeVertex_curvilinear_abscissa_set(BPy_StrokeVertex *self, PyObject *value, void *)
static PyObject * StrokeVertex_point_get(BPy_StrokeVertex *self, void *)
static PyObject * StrokeVertex_attribute_get(BPy_StrokeVertex *self, void *)
static int StrokeVertex_stroke_length_set(BPy_StrokeVertex *self, PyObject *value, void *)
static PyObject * StrokeVertex_curvilinear_abscissa_get(BPy_StrokeVertex *self, void *)
static PyObject * StrokeVertex_u_get(BPy_StrokeVertex *self, void *)
static PyObject * StrokeVertex_stroke_length_get(BPy_StrokeVertex *self, void *)
static int StrokeVertex_attribute_set(BPy_StrokeVertex *self, PyObject *value, void *)

Definition at line 334 of file BPy_StrokeVertex.cpp.

◆ StrokeVertex_mathutils_cb

Mathutils_Callback StrokeVertex_mathutils_cb
static
Initial value:
= {
}
static int StrokeVertex_mathutils_check(BaseMathObject *bmo)
static int StrokeVertex_mathutils_get(BaseMathObject *bmo, int)
static int StrokeVertex_mathutils_set_index(BaseMathObject *bmo, int, int index)
static int StrokeVertex_mathutils_get_index(BaseMathObject *bmo, int, int index)
static int StrokeVertex_mathutils_set(BaseMathObject *bmo, int)

Definition at line 207 of file BPy_StrokeVertex.cpp.

Referenced by StrokeVertex_mathutils_register_callback().

◆ StrokeVertex_mathutils_cb_index

uchar StrokeVertex_mathutils_cb_index = -1
static

◆ StrokeVertex_Type