[1069] | 1 | // ----------------------------------------------------------------------- |
---|
| 2 | // Beam.hh: Basic beam-handling functionality |
---|
| 3 | // ----------------------------------------------------------------------- |
---|
| 4 | // Copyright (C) 2006, Matthew Whiting, ATNF |
---|
| 5 | // |
---|
| 6 | // This program is free software; you can redistribute it and/or modify it |
---|
| 7 | // under the terms of the GNU General Public License as published by the |
---|
| 8 | // Free Software Foundation; either version 2 of the License, or (at your |
---|
| 9 | // option) any later version. |
---|
| 10 | // |
---|
| 11 | // Duchamp is distributed in the hope that it will be useful, but WITHOUT |
---|
| 12 | // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
| 13 | // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
---|
| 14 | // for more details. |
---|
| 15 | // |
---|
| 16 | // You should have received a copy of the GNU General Public License |
---|
| 17 | // along with Duchamp; if not, write to the Free Software Foundation, |
---|
| 18 | // Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA |
---|
| 19 | // |
---|
| 20 | // Correspondence concerning Duchamp may be directed to: |
---|
| 21 | // Internet email: Matthew.Whiting [at] atnf.csiro.au |
---|
| 22 | // Postal address: Dr. Matthew Whiting |
---|
| 23 | // Australia Telescope National Facility, CSIRO |
---|
| 24 | // PO Box 76 |
---|
| 25 | // Epping NSW 1710 |
---|
| 26 | // AUSTRALIA |
---|
| 27 | // ----------------------------------------------------------------------- |
---|
[788] | 28 | #ifndef DUCHAMP_BEAM_HH |
---|
| 29 | #define DUCHAMP_BEAM_HH |
---|
| 30 | |
---|
| 31 | #include <iostream> |
---|
| 32 | |
---|
| 33 | namespace duchamp |
---|
| 34 | { |
---|
| 35 | |
---|
| 36 | class Beam |
---|
| 37 | { |
---|
| 38 | public: |
---|
| 39 | Beam(); |
---|
| 40 | Beam(float maj, float min, float pa); |
---|
| 41 | virtual ~Beam(){}; |
---|
| 42 | Beam(const Beam &b); |
---|
| 43 | Beam& operator=(const Beam &b); |
---|
| 44 | |
---|
| 45 | virtual void define(float maj, float min, float pa); |
---|
| 46 | void setFWHM(float fwhm); |
---|
| 47 | void setArea(float area); |
---|
| 48 | |
---|
| 49 | float maj(){return itsMaj;}; |
---|
| 50 | float min(){return itsMin;}; |
---|
| 51 | float pa(){return itsPA;}; |
---|
| 52 | float area(){return itsArea;}; |
---|
| 53 | |
---|
| 54 | protected: |
---|
| 55 | float itsMaj; |
---|
| 56 | float itsMin; |
---|
| 57 | float itsPA; |
---|
| 58 | float itsArea; |
---|
| 59 | |
---|
| 60 | void calculateArea(); |
---|
| 61 | void areaToFWHM(); |
---|
| 62 | |
---|
| 63 | }; |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | } |
---|
| 70 | |
---|
| 71 | #endif |
---|