Blender  V3.3
Functions | Variables
BPy_StrokeVertex.cpp File Reference
#include "BPy_StrokeVertex.h"
#include "../../BPy_Convert.h"
#include "../../BPy_Freestyle.h"
#include "../../BPy_StrokeAttribute.h"
#include "../../Interface0D/BPy_SVertex.h"

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 *UNUSED(closure))
 
static int StrokeVertex_attribute_set (BPy_StrokeVertex *self, PyObject *value, void *UNUSED(closure))
 
 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 *UNUSED(closure))
 
static int StrokeVertex_curvilinear_abscissa_set (BPy_StrokeVertex *self, PyObject *value, void *UNUSED(closure))
 
 PyDoc_STRVAR (StrokeVertex_point_doc, "2D point coordinates.\n" "\n" ":type: :class:`mathutils.Vector`")
 
static PyObject * StrokeVertex_point_get (BPy_StrokeVertex *self, void *UNUSED(closure))
 
static int StrokeVertex_point_set (BPy_StrokeVertex *self, PyObject *value, void *UNUSED(closure))
 
 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 *UNUSED(closure))
 
static int StrokeVertex_stroke_length_set (BPy_StrokeVertex *self, PyObject *value, void *UNUSED(closure))
 
 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 *UNUSED(closure))
 

Variables

static Mathutils_Callback StrokeVertex_mathutils_cb
 
static unsigned char 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 CurvePoint,
from 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 UNUSEDclosure 
)
static

Definition at line 223 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 UNUSEDclosure 
)
static

Definition at line 228 of file BPy_StrokeVertex.cpp.

References BPy_StrokeAttribute_Check.

◆ StrokeVertex_curvilinear_abscissa_get()

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

Definition at line 245 of file BPy_StrokeVertex.cpp.

References self.

◆ StrokeVertex_curvilinear_abscissa_set()

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

Definition at line 251 of file BPy_StrokeVertex.cpp.

◆ 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 145 of file BPy_StrokeVertex.cpp.

References BPy_StrokeVertex_Check.

◆ StrokeVertex_mathutils_get()

static int StrokeVertex_mathutils_get ( BaseMathObject bmo,
int   
)
static

Definition at line 153 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 169 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 161 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 185 of file BPy_StrokeVertex.cpp.

◆ StrokeVertex_point_get()

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

◆ StrokeVertex_point_set()

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

Definition at line 275 of file BPy_StrokeVertex.cpp.

References mathutils_array_parse(), and v.

◆ StrokeVertex_stroke_length_get()

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

Definition at line 292 of file BPy_StrokeVertex.cpp.

References self.

◆ StrokeVertex_stroke_length_set()

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

Definition at line 297 of file BPy_StrokeVertex.cpp.

◆ StrokeVertex_u_get()

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

Definition at line 316 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 *UNUSED(closure))
static PyObject * StrokeVertex_attribute_get(BPy_StrokeVertex *self, void *UNUSED(closure))
static int StrokeVertex_stroke_length_set(BPy_StrokeVertex *self, PyObject *value, void *UNUSED(closure))
static PyObject * StrokeVertex_u_get(BPy_StrokeVertex *self, void *UNUSED(closure))
static PyObject * StrokeVertex_curvilinear_abscissa_get(BPy_StrokeVertex *self, void *UNUSED(closure))
static int StrokeVertex_attribute_set(BPy_StrokeVertex *self, PyObject *value, void *UNUSED(closure))
static PyObject * StrokeVertex_stroke_length_get(BPy_StrokeVertex *self, void *UNUSED(closure))
static int StrokeVertex_curvilinear_abscissa_set(BPy_StrokeVertex *self, PyObject *value, void *UNUSED(closure))
static PyObject * StrokeVertex_point_get(BPy_StrokeVertex *self, void *UNUSED(closure))

Definition at line 321 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 201 of file BPy_StrokeVertex.cpp.

Referenced by StrokeVertex_mathutils_register_callback().

◆ StrokeVertex_mathutils_cb_index

unsigned char StrokeVertex_mathutils_cb_index = -1
static

◆ StrokeVertex_Type

PyTypeObject StrokeVertex_Type