SIMapper.h

Go to the documentation of this file.
00001 //# SIMapper.h: Imager functionality sits here; 
00002 //# Copyright (C) 1996,1997,1998,1999,2000,2001,2002,2003
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be addressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#
00025 //# $Id$
00026 
00027 #ifndef SYNTHESIS_SIMAPPER_H
00028 #define SYNTHESIS_SIMAPPER_H
00029 
00030 #include <casa/aips.h>
00031 #include <casa/OS/Timer.h>
00032 #include <casa/Containers/Record.h>
00033 #include <ms/MeasurementSets/MeasurementSet.h>
00034 #include <casa/Arrays/IPosition.h>
00035 #include <casa/Quanta/Quantum.h>
00036 #include <measures/Measures/MDirection.h>
00037 
00038 #include <msvis/MSVis/VisBuffer.h>
00039 #include <msvis/MSVis/VisBuffer2.h>
00040 #include <synthesis/TransformMachines/FTMachine.h>
00041 #include <synthesis/TransformMachines2/FTMachine.h>
00042 
00043 namespace casa { //# NAMESPACE CASA - BEGIN
00044 
00045 // Forward declarations
00046   class ComponentFTMachine;
00047   namespace refim{class ComponentFTMachine;}
00048   class SkyJones;
00049 template<class T> class ImageInterface;
00050 
00051 // <summary> Class that contains functions needed for imager </summary>
00052 
00053   class SIMapper// : public SIMapperBase
00054 {
00055  public:
00056   // Default constructor
00057 
00058   SIMapper( CountedPtr<SIImageStore>& imagestore,
00059             CountedPtr<FTMachine>& ftm, 
00060             CountedPtr<FTMachine>& iftm);
00061 
00063    SIMapper( CountedPtr<SIImageStore>& imagestore,
00064              CountedPtr<refim::FTMachine>& ftm, 
00065              CountedPtr<refim::FTMachine>& iftm);
00066 
00067   SIMapper(const ComponentList& cl, 
00068            String& whichMachine);
00069   virtual ~SIMapper();
00070 
00072   virtual void initializeGrid(vi::VisBuffer2& vb, Bool dopsf, Bool firstaccess=False);
00073   virtual void grid(vi::VisBuffer2& vb, Bool dopsf, refim::FTMachine::Type col, const Int whichFTM=-1);
00074   virtual void finalizeGrid(vi::VisBuffer2& vb, Bool dopsf);
00075   virtual void initializeDegrid(vi::VisBuffer2& vb, Int row=-1);
00076   virtual void degrid(vi::VisBuffer2& vb);
00077   virtual void addPB(vi::VisBuffer2& vb, PBMath& pbMath);
00079   virtual void initializeGrid(VisBuffer& vb, Bool dopsf, Bool firstaccess=False);
00080   virtual void grid(VisBuffer& vb, Bool dopsf, FTMachine::Type col, const Int whichFTM=-1);
00081   virtual void finalizeGrid(VisBuffer& vb, Bool dopsf);
00082   virtual void initializeDegrid(VisBuffer& vb, Int row=-1);
00083   virtual void degrid(VisBuffer& vb);
00084   virtual void addPB(VisBuffer& vb, PBMath& pbMath);
00085 
00086   virtual void finalizeDegrid();
00087 
00089   Bool getCLRecord(Record& rec);
00090   Bool getFTMRecord(Record& rec, const String diskimage="");
00091 
00092   virtual String getImageName(){return itsImages->getName();};
00093   virtual CountedPtr<SIImageStore> imageStore(){return itsImages;};
00094   virtual Bool releaseImageLocks(){return itsImages->releaseLocks();};
00095 
00096   const CountedPtr<FTMachine>& getFTM(const Bool ift=True) {if (ift) return ift_p; else return ft_p;};
00097   const CountedPtr<refim::FTMachine>& getFTM2(const Bool ift=True) {if (ift) return ift2_p; else return ft2_p;};
00098 
00099   
00100   virtual void initPB();
00101   
00102 
00103 protected:
00104 
00105   CountedPtr<FTMachine> ft_p, ift_p; 
00106   CountedPtr<refim::FTMachine> ft2_p, ift2_p; 
00107   CountedPtr<ComponentFTMachine> cft_p;
00108   CountedPtr<refim::ComponentFTMachine> cft2_p;
00109   ComponentList cl_p;
00110   Bool useViVb2_p;
00111   CountedPtr<SIImageStore> itsImages;
00112 
00113 };
00114 
00115 
00116 } //# NAMESPACE CASA - END
00117 
00118 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1