1 | //#---------------------------------------------------------------------------
|
---|
2 | //# python_PlotHelper.cc: python exposure of c++ PlotHelper class
|
---|
3 | //#---------------------------------------------------------------------------
|
---|
4 | #include <boost/python.hpp>
|
---|
5 | #include <boost/python/args.hpp>
|
---|
6 |
|
---|
7 | #include <string>
|
---|
8 | #include <vector>
|
---|
9 |
|
---|
10 | #include "PlotHelper.h"
|
---|
11 | #include "ScantableWrapper.h"
|
---|
12 |
|
---|
13 | using namespace boost::python;
|
---|
14 |
|
---|
15 | namespace asap {
|
---|
16 | namespace python {
|
---|
17 |
|
---|
18 | void python_PlotHelper() {
|
---|
19 | class_<PlotHelper>("plothelper")
|
---|
20 | .def( init <> () )
|
---|
21 | .def( init <ScantableWrapper> () )
|
---|
22 | .def("set_scan", &PlotHelper::setScantable)
|
---|
23 | .def("set_gridval", &PlotHelper::setGridParamVal,
|
---|
24 | (boost::python::arg("epoch")="J2000",
|
---|
25 | boost::python::arg("projname")="SIN"))
|
---|
26 | // .def("set_gird", &PlotHelper::setGridParam,
|
---|
27 | // (boost::python::arg("scellx")="",
|
---|
28 | // boost::python::arg("scelly")="",
|
---|
29 | // boost::python::arg("scenter")=""))
|
---|
30 | .def("get_gpos", &PlotHelper::getGridPixel,
|
---|
31 | (boost::python::arg("whichrow")=0) )
|
---|
32 | /** TODO
|
---|
33 | .def("get_gdir", &PlotHelper::getGridDirection)
|
---|
34 | .def("get_gdirval", &PlotHelper::getGridWorld)
|
---|
35 | **/
|
---|
36 | ;
|
---|
37 |
|
---|
38 | };
|
---|
39 |
|
---|
40 | } // python
|
---|
41 | } // asap
|
---|