| 1 | //#---------------------------------------------------------------------------
|
|---|
| 2 | //# python_STGrid.cc: python exposure of c++ STGrid class
|
|---|
| 3 | //#---------------------------------------------------------------------------
|
|---|
| 4 | #include <boost/python.hpp>
|
|---|
| 5 | #include <boost/python/args.hpp>
|
|---|
| 6 |
|
|---|
| 7 | #include <string>
|
|---|
| 8 | #include <vector>
|
|---|
| 9 |
|
|---|
| 10 | #include "STGrid.h"
|
|---|
| 11 | //#include "STGridWrapper.h"
|
|---|
| 12 |
|
|---|
| 13 | using namespace boost::python;
|
|---|
| 14 |
|
|---|
| 15 | namespace asap {
|
|---|
| 16 | namespace python {
|
|---|
| 17 |
|
|---|
| 18 | void python_STGrid() {
|
|---|
| 19 | //class_<STGridWrapper>("stgrid")
|
|---|
| 20 | class_<STGrid>("stgrid")
|
|---|
| 21 | .def( init <> () )
|
|---|
| 22 | .def( init < const std::string > () )
|
|---|
| 23 | .def( init < const std::vector<std::string> > () )
|
|---|
| 24 | .def("_setif", &STGrid::setIF)
|
|---|
| 25 | .def("_setpollist", &STGrid::setPolList)
|
|---|
| 26 | .def("_setscanlist", &STGrid::setScanList)
|
|---|
| 27 | .def("_defineimage", &STGrid::defineImage)
|
|---|
| 28 | .def("_setfunc", &STGrid::setFunc)
|
|---|
| 29 | .def("_grid", &STGrid::grid)
|
|---|
| 30 | .def("_setin", &STGrid::setFileIn)
|
|---|
| 31 | .def("_setfiles", &STGrid::setFileList)
|
|---|
| 32 | .def("_setweight", &STGrid::setWeight)
|
|---|
| 33 | .def("_enableclip", &STGrid::enableClip)
|
|---|
| 34 | .def("_disableclip", &STGrid::disableClip)
|
|---|
| 35 | .def("_save", &STGrid::saveData)
|
|---|
| 36 | ;
|
|---|
| 37 | };
|
|---|
| 38 |
|
|---|
| 39 | } // python
|
|---|
| 40 | } // asap
|
|---|