Changeset 334 for trunk/avango-osg/python/avango/osg/OSGImage.cpp
- Timestamp:
- 01/13/10 16:11:16 (2 years ago)
- File:
-
- 1 edited
-
trunk/avango-osg/python/avango/osg/OSGImage.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/avango-osg/python/avango/osg/OSGImage.cpp
r37 r334 27 27 #include <avango/python/register_field.h> 28 28 #include <avango/osg/Image.h> 29 #include <osgDB/WriteFile> 29 30 #include "OSGImage.h" 30 31 … … 33 34 34 35 namespace boost 35 {36 { 36 37 namespace python 37 {38 { 38 39 template <class T> struct pointee<av::Link<T> > 39 {40 { 40 41 typedef T type; 41 }; 42 } 43 } 42 }; 43 } 44 } 45 46 void write_image_file(av::osg::Image* image, const std::string& name) 47 { 48 osgDB::writeImageFile(*(image->getOsgImage()), name); 49 } 44 50 45 51 void init_OSGImage(void) 46 {52 { 47 53 // wrapping osg::Image functionality 48 54 register_field<av::osg::SFImage>("SFImage"); 49 55 register_multifield<av::osg::MFImage>("MFImage"); 50 class_<av::osg::Image, av::Link<av::osg::Image>, bases<av::osg::Object>, boost::noncopyable >("Image", "docstring", no_init); 51 } 56 class_<av::osg::Image, av::Link<av::osg::Image>, bases<av::osg::Object>, boost::noncopyable >("Image", "docstring", no_init) 57 .def("write_file", write_image_file) 58 ; 59 }
Note: See TracChangeset
for help on using the changeset viewer.
