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_VB2_SIMAPPER_H
00028 #define SYNTHESIS_VB2_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/VisBuffer2.h>
00039 #include <msvis/MSVis/VisBufferImpl2.h>
00040 #include <msvis/MSVis/VisBuffer2Adapter.h>
00041 
00042 #include <msvis/MSVis/VisibilityIterator2.h>
00043 #include <synthesis/TransformMachines2/FTMachine.h>
00044 
00045 namespace casa { //# NAMESPACE CASA - BEGIN
00046 
00047 // Forward declarations
00048   class ComponentFTMachine;
00049   class SkyJones;
00050 template<class T> class ImageInterface;
00051 
00052 // <summary> Class that contains functions needed for imager </summary>
00053 
00054   namespace refim { //# NAMESPACE REFIM - BEGIN
00055 
00056   class SIMapper// : public SIMapperBase
00057 {
00058  public:
00059   // Default constructor
00060 
00061   SIMapper( CountedPtr<SIImageStore>& imagestore,
00062             CountedPtr<FTMachine>& ftm, 
00063             CountedPtr<FTMachine>& iftm);
00064   SIMapper(const ComponentList& cl, 
00065            String& whichMachine);
00066   virtual ~SIMapper();
00067 
00069 
00071   virtual void initializeGrid(const vi::VisBuffer2& vb, Bool dopsf);
00072   virtual void grid(const vi::VisBuffer2& vb, Bool dopsf, FTMachine::Type col);
00073   virtual void finalizeGrid(const vi::VisBuffer2& vb, const Bool dopsf);
00074   virtual void initializeDegrid(const vi::VisBuffer2& vb, const Int row=-1);
00075   virtual void degrid(vi::VisBuffer2& vb);
00076 
00077   virtual void finalizeDegrid();
00078 
00080   Bool getCLRecord(Record& rec);
00081   Bool getFTMRecord(Record& rec, const String diskimage="");
00082 
00083   virtual String getImageName(){return itsImages->getName();};
00084   virtual CountedPtr<SIImageStore> imageStore(){return itsImages;};
00085   virtual Bool releaseImageLocks(){return itsImages->releaseLocks();};
00086 
00087 protected:
00088 
00089   CountedPtr<FTMachine> ft_p, ift_p; 
00090 
00091   CountedPtr<ComponentFTMachine> cft_p;
00092   ComponentList cl_p;
00093 
00094   CountedPtr<SIImageStore> itsImages;
00095 
00096 };
00097 
00098   } //# NAMESPACE REFIM - END
00099 } //# NAMESPACE CASA - END
00100 
00101 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1