Last change
on this file since 2004 was 1757, checked in by Kana Sugimoto, 14 years ago |
New Development: Yes
JIRA Issue: Yes (CAS-2211)
Ready for Test: Yes
Interface Changes: Yes
What Interface Changed: ASAP 3.0.0 interface changes
Test Programs:
Put in Release Notes: Yes
Module(s): all the CASA sd tools and tasks are affected.
Description: Merged ATNF-ASAP 3.0.0 developments to CASA (alma) branch.
Note you also need to update casa/code/atnf.
|
File size:
896 bytes
|
Line | |
---|
1 | //
|
---|
2 | // C++ Implementation: python_STCoordinate
|
---|
3 | //
|
---|
4 | // Description: This file is the boost::python wrapper for asap::STCoordinate
|
---|
5 | //
|
---|
6 | //
|
---|
7 | // Author: Malte Marquarding <asap@atnf.csiro.au>, (C) 2009
|
---|
8 | //
|
---|
9 | // Copyright: See COPYING file that comes with this distribution
|
---|
10 | //
|
---|
11 | //
|
---|
12 | #include <boost/python.hpp>
|
---|
13 |
|
---|
14 | #include "STCoordinate.h"
|
---|
15 |
|
---|
16 | using namespace boost::python;
|
---|
17 |
|
---|
18 | namespace asap {
|
---|
19 | namespace python {
|
---|
20 | void python_STCoordinate() {
|
---|
21 | class_<STCoordinate>("coordinate")
|
---|
22 | .def( init < const STCoordinate& > () )
|
---|
23 | .def("get_reference_pixel", &STCoordinate::getReferencePixel)
|
---|
24 | .def("get_reference_value", &STCoordinate::getReferenceValue)
|
---|
25 | .def("get_increment", &STCoordinate::getIncrement)
|
---|
26 | .def("to_frequency", &STCoordinate::toFrequency)
|
---|
27 | .def("to_velocity", &STCoordinate::toVelocity)
|
---|
28 | .def("to_pixel", &STCoordinate::toPixel)
|
---|
29 | ;
|
---|
30 | };
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.