Blender V4.5
BPy_Convert.h File Reference

Go to the source code of this file.

Functions

PyObject * PyLong_subtype_new (PyTypeObject *ty, long value)
void PyLong_subtype_add_to_dict (PyObject *dict, PyTypeObject *ty, const char *attr, long value)
PyObject * PyBool_from_bool (bool b)
PyObject * Vector_from_Vec2f (Freestyle::Geometry::Vec2f &v)
PyObject * Vector_from_Vec3f (Freestyle::Geometry::Vec3f &v)
PyObject * Vector_from_Vec3r (Freestyle::Geometry::Vec3r &v)
PyObject * Any_BPy_Interface0D_from_Interface0D (Freestyle::Interface0D &if0D)
PyObject * Any_BPy_Interface1D_from_Interface1D (Freestyle::Interface1D &if1D)
PyObject * Any_BPy_FEdge_from_FEdge (Freestyle::FEdge &fe)
PyObject * Any_BPy_ViewVertex_from_ViewVertex (Freestyle::ViewVertex &vv)
PyObject * BPy_BBox_from_BBox (const Freestyle::BBox< Freestyle::Geometry::Vec3r > &bb)
PyObject * BPy_CurvePoint_from_CurvePoint (Freestyle::CurvePoint &cp)
PyObject * BPy_directedViewEdge_from_directedViewEdge (Freestyle::ViewVertex::directedViewEdge &dve)
PyObject * BPy_FEdge_from_FEdge (Freestyle::FEdge &fe)
PyObject * BPy_FEdgeSharp_from_FEdgeSharp (Freestyle::FEdgeSharp &fes)
PyObject * BPy_FEdgeSmooth_from_FEdgeSmooth (Freestyle::FEdgeSmooth &fes)
PyObject * BPy_Id_from_Id (Freestyle::Id &id)
PyObject * BPy_Interface0D_from_Interface0D (Freestyle::Interface0D &if0D)
PyObject * BPy_Interface1D_from_Interface1D (Freestyle::Interface1D &if1D)
PyObject * BPy_IntegrationType_from_IntegrationType (Freestyle::IntegrationType i)
PyObject * BPy_FrsMaterial_from_FrsMaterial (const Freestyle::FrsMaterial &m)
PyObject * BPy_Nature_from_Nature (ushort n)
PyObject * BPy_MediumType_from_MediumType (Freestyle::Stroke::MediumType n)
PyObject * BPy_SShape_from_SShape (Freestyle::SShape &ss)
PyObject * BPy_Stroke_from_Stroke (Freestyle::Stroke &s)
PyObject * BPy_StrokeAttribute_from_StrokeAttribute (Freestyle::StrokeAttribute &sa)
PyObject * BPy_StrokeVertex_from_StrokeVertex (Freestyle::StrokeVertex &sv)
PyObject * BPy_SVertex_from_SVertex (Freestyle::SVertex &sv)
PyObject * BPy_ViewVertex_from_ViewVertex (Freestyle::ViewVertex &vv)
PyObject * BPy_NonTVertex_from_NonTVertex (Freestyle::NonTVertex &ntv)
PyObject * BPy_TVertex_from_TVertex (Freestyle::TVertex &tv)
PyObject * BPy_ViewEdge_from_ViewEdge (Freestyle::ViewEdge &ve)
PyObject * BPy_Chain_from_Chain (Freestyle::Chain &c)
PyObject * BPy_ViewShape_from_ViewShape (Freestyle::ViewShape &vs)
PyObject * BPy_AdjacencyIterator_from_AdjacencyIterator (Freestyle::AdjacencyIterator &a_it)
PyObject * BPy_Interface0DIterator_from_Interface0DIterator (Freestyle::Interface0DIterator &if0D_it, bool reversed)
PyObject * BPy_CurvePointIterator_from_CurvePointIterator (Freestyle::CurveInternal::CurvePointIterator &cp_it)
PyObject * BPy_StrokeVertexIterator_from_StrokeVertexIterator (Freestyle::StrokeInternal::StrokeVertexIterator &sv_it, bool reversed)
PyObject * BPy_SVertexIterator_from_SVertexIterator (Freestyle::ViewEdgeInternal::SVertexIterator &sv_it)
PyObject * BPy_orientedViewEdgeIterator_from_orientedViewEdgeIterator (Freestyle::ViewVertexInternal::orientedViewEdgeIterator &ove_it, bool reversed)
PyObject * BPy_ViewEdgeIterator_from_ViewEdgeIterator (Freestyle::ViewEdgeInternal::ViewEdgeIterator &ve_it)
PyObject * BPy_ChainingIterator_from_ChainingIterator (Freestyle::ChainingIterator &c_it)
PyObject * BPy_ChainPredicateIterator_from_ChainPredicateIterator (Freestyle::ChainPredicateIterator &cp_it)
PyObject * BPy_ChainSilhouetteIterator_from_ChainSilhouetteIterator (Freestyle::ChainSilhouetteIterator &cs_it)
bool bool_from_PyBool (PyObject *b)
Freestyle::IntegrationType IntegrationType_from_BPy_IntegrationType (PyObject *obj)
Freestyle::Stroke::MediumType MediumType_from_BPy_MediumType (PyObject *obj)
Freestyle::Nature::EdgeNature EdgeNature_from_BPy_Nature (PyObject *obj)
bool Vec2f_ptr_from_PyObject (PyObject *obj, Freestyle::Geometry::Vec2f &vec)
bool Vec3f_ptr_from_PyObject (PyObject *obj, Freestyle::Geometry::Vec3f &vec)
bool Vec3r_ptr_from_PyObject (PyObject *obj, Freestyle::Geometry::Vec3r &vec)
bool Vec2f_ptr_from_Vector (PyObject *obj, Freestyle::Geometry::Vec2f &vec)
bool Vec3f_ptr_from_Vector (PyObject *obj, Freestyle::Geometry::Vec3f &vec)
bool Vec3r_ptr_from_Vector (PyObject *obj, Freestyle::Geometry::Vec3r &vec)
bool Vec3f_ptr_from_Color (PyObject *obj, Freestyle::Geometry::Vec3f &vec)
bool Vec3r_ptr_from_Color (PyObject *obj, Freestyle::Geometry::Vec3r &vec)
bool Vec2f_ptr_from_PyList (PyObject *obj, Freestyle::Geometry::Vec2f &vec)
bool Vec3f_ptr_from_PyList (PyObject *obj, Freestyle::Geometry::Vec3f &vec)
bool Vec3r_ptr_from_PyList (PyObject *obj, Freestyle::Geometry::Vec3r &vec)
bool Vec2f_ptr_from_PyTuple (PyObject *obj, Freestyle::Geometry::Vec2f &vec)
bool Vec3f_ptr_from_PyTuple (PyObject *obj, Freestyle::Geometry::Vec3f &vec)
bool Vec3r_ptr_from_PyTuple (PyObject *obj, Freestyle::Geometry::Vec3r &vec)
bool float_array_from_PyObject (PyObject *obj, float *v, int n)
int convert_v4 (PyObject *obj, void *v)
int convert_v3 (PyObject *obj, void *v)
int convert_v2 (PyObject *obj, void *v)

Function Documentation

◆ Any_BPy_FEdge_from_FEdge()

◆ Any_BPy_Interface0D_from_Interface0D()

◆ Any_BPy_Interface1D_from_Interface1D()

◆ Any_BPy_ViewVertex_from_ViewVertex()

◆ bool_from_PyBool()

◆ BPy_AdjacencyIterator_from_AdjacencyIterator()

◆ BPy_BBox_from_BBox()

◆ BPy_Chain_from_Chain()

◆ BPy_ChainingIterator_from_ChainingIterator()

◆ BPy_ChainPredicateIterator_from_ChainPredicateIterator()

◆ BPy_ChainSilhouetteIterator_from_ChainSilhouetteIterator()

◆ BPy_CurvePoint_from_CurvePoint()

◆ BPy_CurvePointIterator_from_CurvePointIterator()

PyObject * BPy_CurvePointIterator_from_CurvePointIterator ( Freestyle::CurveInternal::CurvePointIterator & cp_it)

◆ BPy_directedViewEdge_from_directedViewEdge()

◆ BPy_FEdge_from_FEdge()

PyObject * BPy_FEdge_from_FEdge ( Freestyle::FEdge & fe)

◆ BPy_FEdgeSharp_from_FEdgeSharp()

◆ BPy_FEdgeSmooth_from_FEdgeSmooth()

◆ BPy_FrsMaterial_from_FrsMaterial()

◆ BPy_Id_from_Id()

◆ BPy_IntegrationType_from_IntegrationType()

◆ BPy_Interface0D_from_Interface0D()

PyObject * BPy_Interface0D_from_Interface0D ( Freestyle::Interface0D & if0D)

◆ BPy_Interface0DIterator_from_Interface0DIterator()

◆ BPy_Interface1D_from_Interface1D()

PyObject * BPy_Interface1D_from_Interface1D ( Freestyle::Interface1D & if1D)

◆ BPy_MediumType_from_MediumType()

PyObject * BPy_MediumType_from_MediumType ( Freestyle::Stroke::MediumType n)

◆ BPy_Nature_from_Nature()

◆ BPy_NonTVertex_from_NonTVertex()

◆ BPy_orientedViewEdgeIterator_from_orientedViewEdgeIterator()

◆ BPy_SShape_from_SShape()

PyObject * BPy_SShape_from_SShape ( Freestyle::SShape & ss)

◆ BPy_Stroke_from_Stroke()

◆ BPy_StrokeAttribute_from_StrokeAttribute()

PyObject * BPy_StrokeAttribute_from_StrokeAttribute ( Freestyle::StrokeAttribute & sa)

◆ BPy_StrokeVertex_from_StrokeVertex()

◆ BPy_StrokeVertexIterator_from_StrokeVertexIterator()

◆ BPy_SVertex_from_SVertex()

◆ BPy_SVertexIterator_from_SVertexIterator()

PyObject * BPy_SVertexIterator_from_SVertexIterator ( Freestyle::ViewEdgeInternal::SVertexIterator & sv_it)

◆ BPy_TVertex_from_TVertex()

◆ BPy_ViewEdge_from_ViewEdge()

◆ BPy_ViewEdgeIterator_from_ViewEdgeIterator()

PyObject * BPy_ViewEdgeIterator_from_ViewEdgeIterator ( Freestyle::ViewEdgeInternal::ViewEdgeIterator & ve_it)

◆ BPy_ViewShape_from_ViewShape()

◆ BPy_ViewVertex_from_ViewVertex()

◆ convert_v2()

int convert_v2 ( PyObject * obj,
void * v )

◆ convert_v3()

int convert_v3 ( PyObject * obj,
void * v )

Definition at line 817 of file BPy_Convert.cpp.

References convert_v3(), mathutils_array_parse(), and v.

Referenced by convert_v3(), SVertex_init(), and Vec3f_ptr_from_PyTuple().

◆ convert_v4()

int convert_v4 ( PyObject * obj,
void * v )

Definition at line 812 of file BPy_Convert.cpp.

References convert_v4(), mathutils_array_parse(), and v.

Referenced by convert_v4(), FrsMaterial_init(), and Vec3f_ptr_from_PyTuple().

◆ EdgeNature_from_BPy_Nature()

◆ float_array_from_PyObject()

bool float_array_from_PyObject ( PyObject * obj,
float * v,
int n )

◆ IntegrationType_from_BPy_IntegrationType()

◆ MediumType_from_BPy_MediumType()

Freestyle::Stroke::MediumType MediumType_from_BPy_MediumType ( PyObject * obj)

◆ PyBool_from_bool()

◆ PyLong_subtype_add_to_dict()

void PyLong_subtype_add_to_dict ( PyObject * dict,
PyTypeObject * ty,
const char * attr,
long value )

Definition at line 80 of file BPy_Convert.cpp.

References PyLong_subtype_add_to_dict(), PyLong_subtype_new(), and result.

Referenced by PyLong_subtype_add_to_dict().

◆ PyLong_subtype_new()

PyObject * PyLong_subtype_new ( PyTypeObject * ty,
long value )

◆ Vec2f_ptr_from_PyList()

bool Vec2f_ptr_from_PyList ( PyObject * obj,
Freestyle::Geometry::Vec2f & vec )

◆ Vec2f_ptr_from_PyObject()

◆ Vec2f_ptr_from_PyTuple()

bool Vec2f_ptr_from_PyTuple ( PyObject * obj,
Freestyle::Geometry::Vec2f & vec )

◆ Vec2f_ptr_from_Vector()

◆ Vec3f_ptr_from_Color()

bool Vec3f_ptr_from_Color ( PyObject * obj,
Freestyle::Geometry::Vec3f & vec )

◆ Vec3f_ptr_from_PyList()

bool Vec3f_ptr_from_PyList ( PyObject * obj,
Freestyle::Geometry::Vec3f & vec )

◆ Vec3f_ptr_from_PyObject()

bool Vec3f_ptr_from_PyObject ( PyObject * obj,
Freestyle::Geometry::Vec3f & vec )

◆ Vec3f_ptr_from_PyTuple()

◆ Vec3f_ptr_from_Vector()

bool Vec3f_ptr_from_Vector ( PyObject * obj,
Freestyle::Geometry::Vec3f & vec )

◆ Vec3r_ptr_from_Color()

bool Vec3r_ptr_from_Color ( PyObject * obj,
Freestyle::Geometry::Vec3r & vec )

◆ Vec3r_ptr_from_PyList()

bool Vec3r_ptr_from_PyList ( PyObject * obj,
Freestyle::Geometry::Vec3r & vec )

◆ Vec3r_ptr_from_PyObject()

◆ Vec3r_ptr_from_PyTuple()

bool Vec3r_ptr_from_PyTuple ( PyObject * obj,
Freestyle::Geometry::Vec3r & vec )

◆ Vec3r_ptr_from_Vector()

bool Vec3r_ptr_from_Vector ( PyObject * obj,
Freestyle::Geometry::Vec3r & vec )

◆ Vector_from_Vec2f()

◆ Vector_from_Vec3f()

PyObject * Vector_from_Vec3f ( Freestyle::Geometry::Vec3f & v)

References Any_BPy_FEdge_from_FEdge(), Any_BPy_Interface0D_from_Interface0D(), Any_BPy_Interface1D_from_Interface1D(), Any_BPy_ViewVertex_from_ViewVertex(), b, bool_from_PyBool(), BPy_AdjacencyIterator_from_AdjacencyIterator(), BPy_BBox_from_BBox(), BPy_Chain_from_Chain(), BPy_ChainingIterator_from_ChainingIterator(), BPy_ChainPredicateIterator_from_ChainPredicateIterator(), BPy_ChainSilhouetteIterator_from_ChainSilhouetteIterator(), BPy_CurvePoint_from_CurvePoint(), BPy_CurvePointIterator_from_CurvePointIterator(), BPy_directedViewEdge_from_directedViewEdge(), BPy_FEdge_from_FEdge(), BPy_FEdgeSharp_from_FEdgeSharp(), BPy_FEdgeSmooth_from_FEdgeSmooth(), BPy_FrsMaterial_from_FrsMaterial(), BPy_Id_from_Id(), BPy_IntegrationType_from_IntegrationType(), BPy_Interface0D_from_Interface0D(), BPy_Interface0DIterator_from_Interface0DIterator(), BPy_Interface1D_from_Interface1D(), BPy_MediumType_from_MediumType(), BPy_Nature_from_Nature(), BPy_NonTVertex_from_NonTVertex(), BPy_orientedViewEdgeIterator_from_orientedViewEdgeIterator(), BPy_SShape_from_SShape(), BPy_Stroke_from_Stroke(), BPy_StrokeAttribute_from_StrokeAttribute(), BPy_StrokeVertex_from_StrokeVertex(), BPy_StrokeVertexIterator_from_StrokeVertexIterator(), BPy_SVertex_from_SVertex(), BPy_SVertexIterator_from_SVertexIterator(), BPy_TVertex_from_TVertex(), BPy_ViewEdge_from_ViewEdge(), BPy_ViewEdgeIterator_from_ViewEdgeIterator(), BPy_ViewShape_from_ViewShape(), BPy_ViewVertex_from_ViewVertex(), EdgeNature_from_BPy_Nature(), i, IntegrationType_from_BPy_IntegrationType(), MediumType_from_BPy_MediumType(), v, Vec2f_ptr_from_PyObject(), Vector_from_Vec3f(), and Vector_from_Vec3r().

◆ Vector_from_Vec3r()