Last change
on this file since 2379 was 2364, checked in by Takeshi Nakazato, 13 years ago |
New Development: No
JIRA Issue: Yes CAS-2816
Ready for Test: No
Interface Changes: Yes
What Interface Changed: see below
Test Programs: List test programs
Put in Release Notes: Yes/No
Module(s): sdgrid task
Description: Describe your changes here...
- setOption is renamed to setFunc
- Implemented selection by SCANNO
- Disabled to extend grid area for edge treatment
- Added message for performance check
|
File size:
986 bytes
|
Line | |
---|
1 | //#---------------------------------------------------------------------------
|
---|
2 | //# python_STGrid.cc: python exposure of c++ STGrid class
|
---|
3 | //#---------------------------------------------------------------------------
|
---|
4 | #include <string>
|
---|
5 | #include <vector>
|
---|
6 |
|
---|
7 | #include <boost/python.hpp>
|
---|
8 | #include <boost/python/args.hpp>
|
---|
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("_setif", &STGrid::setIF)
|
---|
24 | .def("_setpollist", &STGrid::setPolList)
|
---|
25 | .def("_setscanlist", &STGrid::setScanList)
|
---|
26 | .def("_defineimage", &STGrid::defineImage)
|
---|
27 | .def("_setfunc", &STGrid::setFunc)
|
---|
28 | .def("_grid", &STGrid::grid)
|
---|
29 | .def("_setin", &STGrid::setFileIn)
|
---|
30 | .def("_setweight", &STGrid::setWeight)
|
---|
31 | .def("_save", &STGrid::saveData)
|
---|
32 | ;
|
---|
33 | };
|
---|
34 |
|
---|
35 | } // python
|
---|
36 | } // asap
|
---|
Note:
See
TracBrowser
for help on using the repository browser.