casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SIMapper.h
Go to the documentation of this file.
1 //# SIMapper.h: Imager functionality sits here;
2 //# Copyright (C) 1996,1997,1998,1999,2000,2001,2002,2003
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //#
25 //# $Id$
26 
27 #ifndef SYNTHESIS_VB2_SIMAPPER_H
28 #define SYNTHESIS_VB2_SIMAPPER_H
29 
30 #include <casa/aips.h>
31 #include <casa/OS/Timer.h>
32 #include <casa/Containers/Record.h>
34 #include <casa/Arrays/IPosition.h>
35 #include <casa/Quanta/Quantum.h>
37 
38 #include <msvis/MSVis/VisBuffer2.h>
41 
44 
45 namespace casacore{
46 
47 template<class T> class ImageInterface;
48 }
49 
50 namespace casa { //# NAMESPACE CASA - BEGIN
51 
52 // Forward declarations
53  class ComponentFTMachine;
54  class SkyJones;
55 
56 // <summary> Class that contains functions needed for imager </summary>
57 
58  namespace refim { //# NAMESPACE REFIM - BEGIN
59 
60  class SIMapper// : public SIMapperBase
61 {
62  public:
63  // Default constructor
64 
68  SIMapper(const ComponentList& cl,
69  casacore::String& whichMachine);
70  virtual ~SIMapper();
71 
73 
75  virtual void initializeGrid(const vi::VisBuffer2& vb, casacore::Bool dopsf);
76  virtual void grid(const vi::VisBuffer2& vb, casacore::Bool dopsf, FTMachine::Type col);
77  virtual void finalizeGrid(const vi::VisBuffer2& vb, const casacore::Bool dopsf);
78  virtual void initializeDegrid(const vi::VisBuffer2& vb, const casacore::Int row=-1);
79  virtual void degrid(vi::VisBuffer2& vb);
80 
81  virtual void finalizeDegrid();
82 
86 
87  virtual casacore::String getImageName(){return itsImages->getName();};
89  virtual casacore::Bool releaseImageLocks(){return itsImages->releaseLocks();};
90 
91 protected:
92 
94 
97 
99 
100 };
101 
102  } //# NAMESPACE REFIM - END
103 } //# NAMESPACE CASA - END
104 
105 #endif
casacore::CountedPtr< FTMachine > ft_p
Definition: SIMapper.h:89
casacore::Bool getFTMRecord(casacore::Record &rec, const casacore::String diskimage="")
int Int
Definition: aipstype.h:50
virtual void degrid(vi::VisBuffer2 &vb)
ComponentList cl_p
Definition: SIMapper.h:96
virtual casacore::String getImageName()
Definition: SIMapper.h:87
virtual void initializeGrid(const vi::VisBuffer2 &vb, casacore::Bool dopsf)
SIMapper(casacore::CountedPtr< SIImageStore > &imagestore, casacore::CountedPtr< FTMachine > &ftm, casacore::CountedPtr< FTMachine > &iftm)
Default constructor.
virtual casacore::Bool releaseImageLocks()
Definition: SIMapper.h:89
Referenced counted pointer for constant data.
Definition: VisModelData.h:42
A base class for astronomical images.
Type
Types of known Images that may be made using the makeImage method.
Definition: FTMachine.h:127
virtual void grid(const vi::VisBuffer2 &vb, casacore::Bool dopsf, FTMachine::Type col)
A hierarchical collection of named fields of various types.
Definition: Record.h:180
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
virtual void initializeDegrid(const vi::VisBuffer2 &vb, const casacore::Int row=-1)
casacore::CountedPtr< SIImageStore > itsImages
Definition: SIMapper.h:98
casacore::Bool getCLRecord(casacore::Record &rec)
virtual void finalizeGrid(const vi::VisBuffer2 &vb, const casacore::Bool dopsf)
virtual void finalizeDegrid()
VisBuffer2s encapsulate one chunk of visibility data for processing.
Definition: VisBuffer2.h:141
A class for manipulating groups of components.
casacore::CountedPtr< FTMachine > ift_p
Definition: SIMapper.h:89
String: the storage and methods of handling collections of characters.
Definition: String.h:223
virtual casacore::CountedPtr< SIImageStore > imageStore()
Definition: SIMapper.h:88
casacore::CountedPtr< ComponentFTMachine > cft_p
Definition: SIMapper.h:95
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42