casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
WOnlyConvFunc.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //# WOnlyConvFunc.h: Definition of the WOnlyConvFunc class
3 //# Copyright (C) 1997,1998,1999,2000,2001,2002,2003
4 //# Associated Universities, Inc. Washington DC, USA.
5 //#
6 //# This library is free software; you can redistribute it and/or modify it
7 //# under the terms of the GNU Library General Public License as published by
8 //# the Free Software Foundation; either version 2 of the License, or (at your
9 //# option) any later version.
10 //#
11 //# This library is distributed in the hope that it will be useful, but WITHOUT
12 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
14 //# License for more details.
15 //#
16 //# You should have received a copy of the GNU Library General Public License
17 //# along with this library; if not, write to the Free Software Foundation,
18 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
19 //#
20 //# Correspondence concerning AIPS++ should be addressed as follows:
21 //# Internet email: aips2-request@nrao.edu.
22 //# Postal address: AIPS++ Project Office
23 //# National Radio Astronomy Observatory
24 //# 520 Edgemont Road
25 //# Charlottesville, VA 22903-2475 USA
26 //#
27 //# $Id$
28 //
29 #ifndef SYNTHESIS_WONLYCONVFUNC_H
30 #define SYNTHESIS_WONLYCONVFUNC_H
31 
34 #include <synthesis/MeasurementComponents/WTerm.h>
35 #include <synthesis/MeasurementComponents/PSTerm.h>
38 #include <casa/Logging/LogIO.h>
39 #include <casa/Logging/LogSink.h>
40 #include <casa/Logging/LogOrigin.h>
41 
42 namespace casacore{
43 
44  template<class T> class ImageInterface;
45  template<class T> class Matrix;
46 }
47 
48 namespace casa { //# NAMESPACE CASA - BEGIN
49  class VisBuffer;
50  //
51  //-------------------------------------------------------------------------------------------
52  //
53  class WOnlyConvFunc : public ConvolutionFunction
54  {
55  public:
57  const casacore::CountedPtr<PSTerm>& psTerm):
58  ConvolutionFunction(),wTerm_p(wTerm), psTerm_p(psTerm)
59  {};
61  WOnlyConvFunc& operator=(const WOnlyConvFunc& other);
62 
63 
65  const VisBuffer& vb,
66  const casacore::Int wConvSize,
67  const casacore::Float pa,
68  const casacore::Float dpa,
69  CFStore& cfs,
70  CFStore& cfwts, casacore::Bool fillCF=true);
71 
72  virtual int getVisParams(const VisBuffer& vb) {return wTerm_p->getVisParams(vb);};
73  virtual void setPolMap(const casacore::Vector<casacore::Int>& polMap) {wTerm_p->setPolMap(polMap);};
74 
76 
77  //
78  // Pedgree baggage (NoOps).
79  //
83  casacore::Bool /*reset*/=true) {};
87  casacore::Bool /*reset*/=true) {};
88  protected:
90 
91  private:
94  };
95  //
96  //-------------------------------------------------------------------------------------------
97  //
98 };
99 #endif
int Int
Definition: aipstype.h:50
virtual void setPolMap(const casacore::Vector< casacore::Int > &polMap)
Definition: WOnlyConvFunc.h:73
A 2-D Specialization of the Array class.
The base class to compute convolution functions for convolutional gridding.
LatticeExprNode pa(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds 180/pi*atan2(left,right)/2.
Referenced counted pointer for constant data.
Definition: VisModelData.h:42
A base class for astronomical images.
casacore::Bool makeAverageResponse(const VisBuffer &, const casacore::ImageInterface< casacore::Complex > &, casacore::ImageInterface< casacore::Complex > &, casacore::Bool=true)
Definition: WOnlyConvFunc.h:84
void makeConvFunction(const casacore::ImageInterface< casacore::Complex > &image, const VisBuffer &vb, const casacore::Int wConvSize, const casacore::Float pa, CFStore &cfs, CFStore &cfwts)
virtual int getVisParams(const VisBuffer &vb)
Definition: WOnlyConvFunc.h:72
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
float Float
Definition: aipstype.h:54
virtual Origin origin() const =0
ABSTRACT METHODS //.
casacore::CountedPtr< WTerm > wTerm_p
Definition: WOnlyConvFunc.h:91
casacore::CountedPtr< PSTerm > psTerm_p
Definition: WOnlyConvFunc.h:92
void setSupport(casacore::Array< casacore::Complex > &convFunc, CFStore &cfs)
WOnlyConvFunc(const casacore::CountedPtr< WTerm > &wTerm, const casacore::CountedPtr< PSTerm > &psTerm)
Definition: WOnlyConvFunc.h:56
casacore::Bool makeAverageResponse(const VisBuffer &, const casacore::ImageInterface< casacore::Complex > &, casacore::ImageInterface< casacore::Float > &, casacore::Bool=true)
Pedgree baggage (NoOps).
Definition: WOnlyConvFunc.h:80
VisBuffers encapsulate one chunk of visibility data for processing.
Definition: VisBuffer.h:153
virtual casacore::Bool findSupport(casacore::Array< casacore::Complex > &func, casacore::Float &threshold, casacore::Int &origin, casacore::Int &R)
virtual void setFeedStokes(const casacore::Vector&lt;casacore::Int&gt;&amp; feedStokes) = 0; ...
WOnlyConvFunc & operator=(const WOnlyConvFunc &other)
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42