casa
$Rev:20696$
|
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_SIMAPPERBASE_H 00028 #define SYNTHESIS_SIMAPPERBASE_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/TransformMachines/FTMachine.h> 00039 #include <synthesis/MeasurementEquations/SIImageStore.h> 00040 00041 namespace casa { //# NAMESPACE CASA - BEGIN 00042 00043 // Forward declarations 00044 template<class T> class ImageInterface; 00045 00046 // <summary> Class that contains functions needed for imager </summary> 00047 00048 class SIMapperBase 00049 { 00050 public: 00051 // Default constructor 00052 00053 SIMapperBase( CountedPtr<SIImageStore> imagestore, 00054 CountedPtr<FTMachine> ftmachine, 00055 Int mapperid); 00056 virtual ~SIMapperBase(); 00057 00059 00060 // For KG : Need to add 'vb' coming into these functions. 00061 // Would be good to make these pure virtual, but need to keep base-class implementation for initial testing. 00062 virtual void initializeGrid(); 00063 virtual void grid(); 00064 virtual void finalizeGrid(); 00065 00066 virtual void initializeDegrid(); 00067 virtual void degrid(); 00068 virtual void finalizeDegrid(); 00069 00070 virtual Record getFTMRecord(); 00071 00072 String getImageName(); 00073 00074 protected: 00076 00077 void initImages(); 00078 00080 00081 CountedPtr<FTMachine> itsFTMachine, itsInverseFTMachine; 00082 00083 CountedPtr<CoordinateSystem> itsCoordSys; 00084 IPosition itsImageShape; 00085 00086 CountedPtr<SIImageStore> itsImages; 00087 00088 /* 00089 String itsImageName; 00090 CountedPtr<PagedImage<Float> > itsPsf, itsModel, itsResidual, itsWeight; 00091 */ 00092 00093 // This is only for testing. In the real-world, this is the data.... 00094 Array<Float> itsOriginalResidual; 00095 00096 // These are supporting params 00097 Bool itsIsModelUpdated; 00098 Int itsMapperId; 00099 00101 00102 }; 00103 00104 00105 } //# NAMESPACE CASA - END 00106 00107 #endif