Re: [pygccxml-development] Tag for Methods to bind ?
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2008-07-07 19:37:01
|
On Mon, Jul 7, 2008 at 10:17 PM, Damien Fagnou <dam...@mo...> wrote: > there is an other issue that I have been wondering how to solve . Please start another thread. > our lib use IMath Internally to store and manipulate math objects ( vector , > matrix , etc ) > I could;t find boostBinding of Imath , I guess we are gonna try to create > one using lovely py++ but in the mean > time we already have wrapper for those class for our other binding to Lua ( > Vector , Matrix etc ) > > those type easy construct with there repective Imath Type . > > my question is if I have a methode like > > void setTransform( Imath::m44f & mat ); > > > could I define automatic converter like : > > bp::converter< Mattrix , Imath::m44f , myConvertionFunction > > > maybe this is more a boostPython question ? > I am kindda new to that too ;) I am not sure I understand you. It seems to me that you are looking for next document: http://www.boost.org/doc/libs/1_35_0/libs/python/doc/v2/implicit.html#implicitly_convertible-spec > and then how would I register that to py++ , using the > add_code_registration() ? If you will find solution it will not be a problem to integrate it with generated code: http://language-binding.net/pyplusplus/documentation/inserting_code.html -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |