| 1 | //
 | 
|---|
| 2 | // C++ Interface: STFocus
 | 
|---|
| 3 | //
 | 
|---|
| 4 | // Description:
 | 
|---|
| 5 | //
 | 
|---|
| 6 | //
 | 
|---|
| 7 | // Author: Malte Marquarding <asap@atnf.csiro.au>, (C) 2006
 | 
|---|
| 8 | //
 | 
|---|
| 9 | // Copyright: See COPYING file that comes with this distribution
 | 
|---|
| 10 | //
 | 
|---|
| 11 | //
 | 
|---|
| 12 | #ifndef ASAPSTFOCUS_H
 | 
|---|
| 13 | #define ASAPSTFOCUS_H
 | 
|---|
| 14 | 
 | 
|---|
| 15 | #include <casa/aips.h>
 | 
|---|
| 16 | #include <casa/BasicSL/String.h>
 | 
|---|
| 17 | #include <tables/Tables/Table.h>
 | 
|---|
| 18 | #include <tables/Tables/ScalarColumn.h>
 | 
|---|
| 19 | 
 | 
|---|
| 20 | #include "STSubTable.h"
 | 
|---|
| 21 | 
 | 
|---|
| 22 | namespace asap {
 | 
|---|
| 23 | 
 | 
|---|
| 24 | /**
 | 
|---|
| 25 | The Focus subtable of the Scantable
 | 
|---|
| 26 | 
 | 
|---|
| 27 | @author Malte Marquarding
 | 
|---|
| 28 | */
 | 
|---|
| 29 | class STFocus : public STSubTable {
 | 
|---|
| 30 | public:
 | 
|---|
| 31 |   STFocus() {;}
 | 
|---|
| 32 |   explicit STFocus(casa::Table tab);
 | 
|---|
| 33 |   explicit STFocus( const Scantable& parent );
 | 
|---|
| 34 | 
 | 
|---|
| 35 |   virtual ~STFocus();
 | 
|---|
| 36 | 
 | 
|---|
| 37 |   STFocus& operator=(const STFocus& other);
 | 
|---|
| 38 | 
 | 
|---|
| 39 |   casa::uInt addEntry( casa::Float pa, casa::Float faxis, casa::Float ftan,
 | 
|---|
| 40 |                        casa::Float frot, casa::Float hand=1.0f,
 | 
|---|
| 41 |                        casa::Float mount=0.0f, casa::Float user=0.0f,
 | 
|---|
| 42 |                        casa::Float xyphase=0.0f, 
 | 
|---|
| 43 |                        casa::Float xyphaseoffset=0.0f);
 | 
|---|
| 44 | 
 | 
|---|
| 45 |   void getEntry( casa::Float& pa, casa::Float& fax, casa::Float& ftan,
 | 
|---|
| 46 |                  casa::Float& frot, casa::Float& hand,
 | 
|---|
| 47 |                  casa::Float& mount, casa::Float& user,
 | 
|---|
| 48 |                  casa::Float& xyphase, casa::Float& xyphaseoffset,
 | 
|---|
| 49 |                  casa::uInt id) const;
 | 
|---|
| 50 | 
 | 
|---|
| 51 |   casa::Float getTotalAngle(casa::uInt id) const;
 | 
|---|
| 52 | 
 | 
|---|
| 53 |   casa::Float getParAngle(casa::uInt id) const {
 | 
|---|
| 54 |     return parangleCol_(id);
 | 
|---|
| 55 |   }
 | 
|---|
| 56 |   casa::Float getFeedHand(casa::uInt id) const;
 | 
|---|
| 57 | 
 | 
|---|
| 58 |   void setParallactify(bool istrue=false);
 | 
|---|
| 59 | 
 | 
|---|
| 60 |   const casa::String& name() const { return name_; }
 | 
|---|
| 61 | 
 | 
|---|
| 62 | private:
 | 
|---|
| 63 |   void setup();
 | 
|---|
| 64 |   static const casa::String name_;
 | 
|---|
| 65 |   casa::ScalarColumn<casa::Float> rotationCol_, axisCol_,
 | 
|---|
| 66 |     tanCol_,handCol_, parangleCol_,
 | 
|---|
| 67 |     mountCol_,userCol_, xyphCol_,xyphoffCol_,;
 | 
|---|
| 68 | };
 | 
|---|
| 69 | 
 | 
|---|
| 70 | }
 | 
|---|
| 71 | 
 | 
|---|
| 72 | #endif
 | 
|---|