source: trunk/src/python_STGrid.cpp@ 2512

Last change on this file since 2512 was 2396, checked in by Takeshi Nakazato, 13 years ago

New Development: No

JIRA Issue: Yes CAS-2816

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Added min/max clipping functionality.
Introduced control parameter and methods for clipping.

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