8 #ifndef _PyImathLine_h_
9 #define _PyImathLine_h_
12 #define HBOOST_BIND_GLOBAL_PLACEHOLDERS
13 #include <hboost/python.hpp>
20 template <
class T> hboost::python::class_<IMATH_NAMESPACE::Line3<T> >
register_Line();
34 static PyObject *
wrap (
const IMATH_NAMESPACE::Line3<T> &l);
35 static int convert (PyObject *p, IMATH_NAMESPACE::Line3<T> *l);
42 typename hboost::python::return_by_value::apply < IMATH_NAMESPACE::Line3<T> >
::type converter;
43 PyObject *p = converter (l);
51 hboost::python::extract <IMATH_NAMESPACE::Line3f> extractorLf (p);
52 if (extractorLf.check())
55 l->pos.setValue (e.pos);
56 l->dir.setValue (e.dir);
60 hboost::python::extract <IMATH_NAMESPACE::Line3d> extractorLd (p);
61 if (extractorLd.check())
64 l->pos.setValue (e.pos);
65 l->dir.setValue (e.dir);
hboost::python::class_< IMATH_NAMESPACE::Line3< T > > register_Line()
GLint GLint GLsizei GLint GLenum GLenum type
static int convert(PyObject *p, IMATH_NAMESPACE::Line3< T > *l)
Line3< double > Line3d
Line of type double.
static PyObject * wrap(const IMATH_NAMESPACE::Line3< T > &l)
Line3< float > Line3f
Line of type float.