Blender  V3.3
Functions
BPy_Convert.h File Reference
#include <Python.h>
#include <typeinfo>
#include "../geometry/Geom.h"
#include "../geometry/BBox.h"
#include "../view_map/Silhouette.h"
#include "../system/Id.h"
#include "../view_map/Interface0D.h"
#include "../view_map/Interface1D.h"
#include "../scene_graph/FrsMaterial.h"
#include "../winged_edge/Nature.h"
#include "../stroke/Stroke.h"
#include "../view_map/ViewMap.h"
#include "../stroke/Curve.h"
#include "../stroke/Chain.h"
#include "../stroke/ChainingIterators.h"
#include "../view_map/ViewMapIterators.h"
#include "../stroke/StrokeIterators.h"
#include "../stroke/CurveIterators.h"
#include "generic/python_utildefines.h"
#include "mathutils/mathutils.h"

Go to the source code of this file.

Functions

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 (unsigned short 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()

PyObject* Any_BPy_FEdge_from_FEdge ( Freestyle::FEdge fe)

◆ Any_BPy_Interface0D_from_Interface0D()

PyObject* Any_BPy_Interface0D_from_Interface0D ( Freestyle::Interface0D if0D)

◆ Any_BPy_Interface1D_from_Interface1D()

PyObject* Any_BPy_Interface1D_from_Interface1D ( Freestyle::Interface1D if1D)

◆ Any_BPy_ViewVertex_from_ViewVertex()

PyObject* Any_BPy_ViewVertex_from_ViewVertex ( Freestyle::ViewVertex vv)

◆ bool_from_PyBool()

bool bool_from_PyBool ( PyObject *  b)

◆ BPy_AdjacencyIterator_from_AdjacencyIterator()

PyObject* BPy_AdjacencyIterator_from_AdjacencyIterator ( Freestyle::AdjacencyIterator a_it)

Definition at line 398 of file BPy_Convert.cpp.

References AdjacencyIterator_Type.

Referenced by Director_BPy_ChainingIterator_traverse().

◆ BPy_BBox_from_BBox()

PyObject* BPy_BBox_from_BBox ( const Freestyle::BBox< Freestyle::Geometry::Vec3r > &  bb)

Definition at line 313 of file BPy_Convert.cpp.

References BBox_Type.

Referenced by SShape_bbox_get(), and ViewMap_scene_bbox_get().

◆ BPy_Chain_from_Chain()

PyObject* BPy_Chain_from_Chain ( Freestyle::Chain c)

◆ BPy_ChainingIterator_from_ChainingIterator()

PyObject* BPy_ChainingIterator_from_ChainingIterator ( Freestyle::ChainingIterator c_it)

Definition at line 470 of file BPy_Convert.cpp.

References ChainingIterator_Type.

◆ BPy_ChainPredicateIterator_from_ChainPredicateIterator()

PyObject* BPy_ChainPredicateIterator_from_ChainPredicateIterator ( Freestyle::ChainPredicateIterator cp_it)

Definition at line 478 of file BPy_Convert.cpp.

References ChainPredicateIterator_Type.

◆ BPy_ChainSilhouetteIterator_from_ChainSilhouetteIterator()

PyObject* BPy_ChainSilhouetteIterator_from_ChainSilhouetteIterator ( Freestyle::ChainSilhouetteIterator cs_it)

Definition at line 488 of file BPy_Convert.cpp.

References ChainSilhouetteIterator_Type.

◆ BPy_CurvePoint_from_CurvePoint()

PyObject* BPy_CurvePoint_from_CurvePoint ( Freestyle::CurvePoint cp)

◆ BPy_CurvePointIterator_from_CurvePointIterator()

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

Definition at line 420 of file BPy_Convert.cpp.

References CurvePointIterator_Type.

◆ BPy_directedViewEdge_from_directedViewEdge()

PyObject* BPy_directedViewEdge_from_directedViewEdge ( Freestyle::ViewVertex::directedViewEdge dve)

◆ BPy_FEdge_from_FEdge()

PyObject* BPy_FEdge_from_FEdge ( Freestyle::FEdge fe)

Definition at line 230 of file BPy_Convert.cpp.

References FEdge_Type.

Referenced by Any_BPy_FEdge_from_FEdge(), and Any_BPy_Interface1D_from_Interface1D().

◆ BPy_FEdgeSharp_from_FEdgeSharp()

PyObject* BPy_FEdgeSharp_from_FEdgeSharp ( Freestyle::FEdgeSharp fes)

Definition at line 210 of file BPy_Convert.cpp.

References FEdgeSharp_Type.

Referenced by Any_BPy_FEdge_from_FEdge(), and Any_BPy_Interface1D_from_Interface1D().

◆ BPy_FEdgeSmooth_from_FEdgeSmooth()

PyObject* BPy_FEdgeSmooth_from_FEdgeSmooth ( Freestyle::FEdgeSmooth fes)

Definition at line 220 of file BPy_Convert.cpp.

References FEdgeSmooth_Type.

Referenced by Any_BPy_FEdge_from_FEdge(), and Any_BPy_Interface1D_from_Interface1D().

◆ BPy_FrsMaterial_from_FrsMaterial()

PyObject* BPy_FrsMaterial_from_FrsMaterial ( const Freestyle::FrsMaterial m)

◆ BPy_Id_from_Id()

PyObject* BPy_Id_from_Id ( Freestyle::Id id)

◆ BPy_IntegrationType_from_IntegrationType()

PyObject* BPy_IntegrationType_from_IntegrationType ( Freestyle::IntegrationType  i)

Definition at line 363 of file BPy_Convert.cpp.

References IntegrationType_Type.

Referenced by integration_type_get().

◆ BPy_Interface0D_from_Interface0D()

PyObject* BPy_Interface0D_from_Interface0D ( Freestyle::Interface0D if0D)

Definition at line 185 of file BPy_Convert.cpp.

References Interface0D_Type.

Referenced by Any_BPy_Interface0D_from_Interface0D().

◆ BPy_Interface0DIterator_from_Interface0DIterator()

PyObject* BPy_Interface0DIterator_from_Interface0DIterator ( Freestyle::Interface0DIterator if0D_it,
bool  reversed 
)

◆ BPy_Interface1D_from_Interface1D()

PyObject* BPy_Interface1D_from_Interface1D ( Freestyle::Interface1D if1D)

Definition at line 193 of file BPy_Convert.cpp.

References Interface1D_Type.

Referenced by Any_BPy_Interface1D_from_Interface1D().

◆ BPy_MediumType_from_MediumType()

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

Definition at line 265 of file BPy_Convert.cpp.

References MediumType_Type.

Referenced by Stroke_medium_type_get().

◆ BPy_Nature_from_Nature()

PyObject* BPy_Nature_from_Nature ( unsigned short  n)

◆ BPy_NonTVertex_from_NonTVertex()

PyObject* BPy_NonTVertex_from_NonTVertex ( Freestyle::NonTVertex ntv)

◆ BPy_orientedViewEdgeIterator_from_orientedViewEdgeIterator()

PyObject* BPy_orientedViewEdgeIterator_from_orientedViewEdgeIterator ( Freestyle::ViewVertexInternal::orientedViewEdgeIterator ove_it,
bool  reversed 
)

◆ BPy_SShape_from_SShape()

PyObject* BPy_SShape_from_SShape ( Freestyle::SShape ss)

Definition at line 339 of file BPy_Convert.cpp.

References SShape_Type.

Referenced by ViewShape_sshape_get().

◆ BPy_Stroke_from_Stroke()

PyObject* BPy_Stroke_from_Stroke ( Freestyle::Stroke s)

◆ BPy_StrokeAttribute_from_StrokeAttribute()

PyObject* BPy_StrokeAttribute_from_StrokeAttribute ( Freestyle::StrokeAttribute sa)

Definition at line 257 of file BPy_Convert.cpp.

References StrokeAttribute_Type.

Referenced by StrokeVertex_attribute_get().

◆ BPy_StrokeVertex_from_StrokeVertex()

PyObject* BPy_StrokeVertex_from_StrokeVertex ( Freestyle::StrokeVertex sv)

◆ BPy_StrokeVertexIterator_from_StrokeVertexIterator()

PyObject* BPy_StrokeVertexIterator_from_StrokeVertexIterator ( Freestyle::StrokeInternal::StrokeVertexIterator sv_it,
bool  reversed 
)

◆ BPy_SVertex_from_SVertex()

PyObject* BPy_SVertex_from_SVertex ( Freestyle::SVertex sv)

◆ BPy_SVertexIterator_from_SVertexIterator()

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

Definition at line 440 of file BPy_Convert.cpp.

References SVertexIterator_Type.

◆ BPy_TVertex_from_TVertex()

PyObject* BPy_TVertex_from_TVertex ( Freestyle::TVertex tv)

◆ BPy_ViewEdge_from_ViewEdge()

PyObject* BPy_ViewEdge_from_ViewEdge ( Freestyle::ViewEdge ve)

◆ BPy_ViewEdgeIterator_from_ViewEdgeIterator()

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

Definition at line 462 of file BPy_Convert.cpp.

References ViewEdgeIterator_Type.

◆ BPy_ViewShape_from_ViewShape()

PyObject* BPy_ViewShape_from_ViewShape ( Freestyle::ViewShape vs)

◆ BPy_ViewVertex_from_ViewVertex()

PyObject* BPy_ViewVertex_from_ViewVertex ( Freestyle::ViewVertex vv)

◆ convert_v2()

int convert_v2 ( PyObject *  obj,
void v 
)

Definition at line 798 of file BPy_Convert.cpp.

References mathutils_array_parse(), and v.

Referenced by CalligraphicShader___init__().

◆ convert_v3()

int convert_v3 ( PyObject *  obj,
void v 
)

Definition at line 793 of file BPy_Convert.cpp.

References mathutils_array_parse(), and v.

Referenced by SVertex_init().

◆ convert_v4()

int convert_v4 ( PyObject *  obj,
void v 
)

Definition at line 788 of file BPy_Convert.cpp.

References mathutils_array_parse(), and v.

Referenced by FrsMaterial_init().

◆ EdgeNature_from_BPy_Nature()

Freestyle::Nature::EdgeNature EdgeNature_from_BPy_Nature ( PyObject *  obj)

◆ float_array_from_PyObject()

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

◆ IntegrationType_from_BPy_IntegrationType()

Freestyle::IntegrationType IntegrationType_from_BPy_IntegrationType ( PyObject *  obj)

◆ MediumType_from_BPy_MediumType()

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

Definition at line 512 of file BPy_Convert.cpp.

Referenced by Stroke_medium_type_set().

◆ PyBool_from_bool()

PyObject* PyBool_from_bool ( bool  b)

◆ Vec2f_ptr_from_PyList()

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

Definition at line 651 of file BPy_Convert.cpp.

References float_array_from_PyList(), and v.

Referenced by Vec2f_ptr_from_PyObject().

◆ Vec2f_ptr_from_PyObject()

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

◆ Vec2f_ptr_from_PyTuple()

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

Definition at line 710 of file BPy_Convert.cpp.

References float_array_from_PyTuple(), and v.

Referenced by Vec2f_ptr_from_PyObject().

◆ Vec2f_ptr_from_Vector()

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

◆ 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()

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

◆ 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 
)

Definition at line 625 of file BPy_Convert.cpp.

References BaseMath_ReadCallback, and ColorObject_Check.

Referenced by Vec3r_ptr_from_PyObject().

◆ Vec3r_ptr_from_PyList()

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

Definition at line 682 of file BPy_Convert.cpp.

References float_array_from_PyList(), and v.

Referenced by Vec3r_ptr_from_PyObject().

◆ Vec3r_ptr_from_PyObject()

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

◆ Vec3r_ptr_from_PyTuple()

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

Definition at line 741 of file BPy_Convert.cpp.

References float_array_from_PyTuple(), and v.

Referenced by Vec3r_ptr_from_PyObject().

◆ Vec3r_ptr_from_Vector()

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

Definition at line 597 of file BPy_Convert.cpp.

References BaseMath_ReadCallback, and VectorObject_Check.

Referenced by Vec3r_ptr_from_PyObject().

◆ Vector_from_Vec2f()

PyObject* Vector_from_Vec2f ( Freestyle::Geometry::Vec2f v)

◆ Vector_from_Vec3f()

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

◆ Vector_from_Vec3r()

PyObject* Vector_from_Vec3r ( Freestyle::Geometry::Vec3r v)