- Timestamp:
- 02/10/11 11:47:40 (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/avango-osg/python/avango/osg/NetMatrixTransform.cpp
r1 r544 27 27 #include <avango/osg/network/NetMatrixTransform.h> 28 28 #include <avango/NetNode.h> 29 #include <avango/FieldContainer.h> 30 #include <avango/Base.h> 31 #include <avango/Link.h> 29 32 30 33 using namespace boost::python; … … 41 44 } 42 45 46 namespace av 47 { 48 namespace python 49 { 50 namespace detail 51 { 52 53 void distributeFieldContainerHelper(av::osg::NetMatrixTransform& self, boost::python::object obj) 54 { 55 av::Base* av_value = boost::python::extract<av::Base*>(obj); 56 57 av::Link<av::FieldContainer> tmp = dynamic_cast<FieldContainer*>(av_value); 58 self.distributeFieldContainer(tmp); 59 } 60 61 void undistributeFieldContainerHelper(av::osg::NetMatrixTransform& self, boost::python::object obj) 62 { 63 av::Base* av_value = boost::python::extract<av::Base*>(obj); 64 65 av::Link<av::FieldContainer> tmp = dynamic_cast<FieldContainer*>(av_value); 66 self.undistributeFieldContainer(tmp); 67 } 68 69 } // namespace detail 70 } // namespace python 71 } // namespace av 72 43 73 44 74 void init_NetMatrixTransform(void) 45 75 { 46 76 class_<av::osg::NetMatrixTransform, av::Link<av::osg::NetMatrixTransform>, bases<av::FieldContainer>, boost::noncopyable >("NetMatrixTransform", "docstring", no_init) 47 .def("distribute_object", &av::osg::NetMatrixTransform::distributeFieldContainer) 48 .def("undistribute_object", &av::osg::NetMatrixTransform::undistributeFieldContainer) 77 //.def("distribute_object", &av::osg::NetMatrixTransform::distributeFieldContainer) 78 .def("distribute_object", av::python::detail::distributeFieldContainerHelper) 79 //.def("undistribute_object", &av::osg::NetMatrixTransform::undistributeFieldContainer) 80 .def("undistribute_object", av::python::detail::undistributeFieldContainerHelper) 49 81 ; 50 82 def("set_ensemble_option", av::NetNode::setEnsOption);
Note: See TracChangeset
for help on using the changeset viewer.
