[2689] | 1 | //#---------------------------------------------------------------------------
|
---|
[2711] | 2 | //# python_PlotHelper.cpp: python exposure of c++ PlotHelper class
|
---|
[2689] | 3 | //#---------------------------------------------------------------------------
|
---|
[2711] | 4 | //# Author: Kanako Sugimoto, (C) 2012
|
---|
| 5 | //#
|
---|
| 6 | //# Copyright: See COPYING file that comes with this distribution
|
---|
| 7 | //#
|
---|
| 8 | //#---------------------------------------------------------------------------
|
---|
[2689] | 9 | #include <boost/python.hpp>
|
---|
| 10 | #include <boost/python/args.hpp>
|
---|
| 11 |
|
---|
| 12 | #include "PlotHelper.h"
|
---|
[2711] | 13 | //#include "ScantableWrapper.h"
|
---|
[2689] | 14 |
|
---|
| 15 | using namespace boost::python;
|
---|
| 16 |
|
---|
| 17 | namespace asap {
|
---|
| 18 | namespace python {
|
---|
| 19 |
|
---|
| 20 | void python_PlotHelper() {
|
---|
| 21 | class_<PlotHelper>("plothelper")
|
---|
| 22 | .def( init <> () )
|
---|
| 23 | .def( init <ScantableWrapper> () )
|
---|
| 24 | .def("set_scan", &PlotHelper::setScantable)
|
---|
| 25 | .def("set_gridval", &PlotHelper::setGridParamVal,
|
---|
| 26 | (boost::python::arg("epoch")="J2000",
|
---|
| 27 | boost::python::arg("projname")="SIN"))
|
---|
[2717] | 28 | .def("set_grid", &PlotHelper::setGridParam,
|
---|
| 29 | (boost::python::arg("cellx")="",
|
---|
| 30 | boost::python::arg("celly")="",
|
---|
| 31 | boost::python::arg("center")="",
|
---|
| 32 | boost::python::arg("projname")="SIN") )
|
---|
[2689] | 33 | .def("get_gpos", &PlotHelper::getGridPixel,
|
---|
| 34 | (boost::python::arg("whichrow")=0) )
|
---|
[2719] | 35 | //
|
---|
| 36 | .def("get_gref", &PlotHelper::getGridRef)
|
---|
| 37 | .def("get_gcellval", &PlotHelper::getGridCellVal)
|
---|
[2689] | 38 | /** TODO
|
---|
[2719] | 39 | .def("get_gcell", &PlotHelper::getGridCell)
|
---|
[2689] | 40 | .def("get_gdir", &PlotHelper::getGridDirection)
|
---|
| 41 | .def("get_gdirval", &PlotHelper::getGridWorld)
|
---|
| 42 | **/
|
---|
| 43 | ;
|
---|
| 44 |
|
---|
| 45 | };
|
---|
| 46 |
|
---|
| 47 | } // python
|
---|
| 48 | } // asap
|
---|