source: trunk/src/python_PlotHelper.cpp@ 2700

Last change on this file since 2700 was 2689, checked in by Kana Sugimoto, 12 years ago

New Development: Yes

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: a new cpp helper class to support asapplotter.plotgrid

Test Programs:

Put in Release Notes: No

Module(s):

Description:

Added a new cpp helper class to make asapplotter.plotgrid work with new STGrid
with more accurate wcs projection.


File size: 1.2 KB
Line 
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
13using namespace boost::python;
14
15namespace asap {
16 namespace python {
17
18void 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
Note: See TracBrowser for help on using the repository browser.