SIMapperImageMosaic.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_SIMAPPERMOSAIC_H
00028 #define SYNTHESIS_VB2_SIMAPPERMOSAIC_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 <synthesis/TransformMachines2/FTMachine.h>
00039 #include <synthesis/ImagerObjects2/SIMapper.h>
00040 
00041 namespace casa { //# NAMESPACE CASA - BEGIN
00042   namespace refim {
00043 
00044 // Forward declarations
00045   class ComponentFTMachine;
00046   class SkyJones;
00047 template<class T> class ImageInterface;
00048 
00049 // <summary> Class that contains functions needed for imager </summary>
00050 
00051   class SIMapperImageMosaic : public SIMapper
00052 {
00053  public:
00054   // Default constructor
00055 
00056   SIMapperImageMosaic( CountedPtr<SIImageStore>& imagestore,
00057             CountedPtr<FTMachine>& ftm, 
00058                        CountedPtr<FTMachine>& iftm);
00059   //        CountedPtr<VPSkyJones>& vp);
00060   SIMapperImageMosaic(const ComponentList& cl, 
00061                       String& whichMachine);
00062   //       CountedPtr<VPSkyJones>& vp);
00063   virtual ~SIMapperImageMosaic();
00064 
00066 
00068   void initializeGrid( vi::VisBuffer2& vb, Bool dopsf, Bool firstaccess=False);
00069   void grid( vi::VisBuffer2& vb, Bool dopsf, FTMachine::Type col);
00070   void finalizeGrid( vi::VisBuffer2& vb,  Bool dopsf);
00071   void initializeDegrid( vi::VisBuffer2& vb, const Int row=-1);
00072   void degrid(vi::VisBuffer2& vb);
00073   //  void finalizeDegrid();
00074 
00076   //  Bool getCLRecord(Record& rec);
00077   //  Bool getFTMRecord(Record& rec);
00078 
00079   virtual String getImageName(){return itsImages->getName();};
00080   virtual CountedPtr<SIImageStore> imageStore(){return itsImages;};
00081   virtual Bool releaseImageLocks(){return itsImages->releaseLocks();};
00082 
00083 protected:
00084   //  Bool changedSkyJonesLogic(const vi::VisBuffer2& vb, Bool& firstRow, Bool& internalRow, const Bool grid=True);
00086   //  Bool changedSkyJonesLogic(const VisBuffer& vb, Bool& firstRow, Bool& internalRow, const Bool grid=True);
00088 
00089   ComponentList clCorrupted_p;
00090   //  CountedPtr<VPSkyJones>  ejgrid_p, ejdegrid_p;
00091   CountedPtr<vi::VisBuffer2> ovb_p;
00092 
00093   Bool firstaccess_p;
00094 
00095 };
00096 
00097   } //# namespace refim
00098 } //# NAMESPACE CASA - END
00099 
00100 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1