casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PixelatedConvFunc.h
Go to the documentation of this file.
1 //# PixelatedConvFunc.h: Definition for PixelatedConvFunc
2 //# Copyright (C) 1996,1997,1998,1999,2000,2002
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 adressed 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 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //#
27 //# $Id$
28 
29 #ifndef SYNTHESIS_PIXELATEDCONVFUNC_H
30 #define SYNTHESIS_PIXELATEDCONVFUNC_H
31 
32 #include <casa/Arrays/Vector.h>
33 //#include <synthesis/MeasurementComponents/Exp.h>
36 
37 namespace casa{
38 
39  template <class T> class PixelatedConvFunc: public ConvolutionFunction
40  {
41  public:
44  {setSize(shape);}
46 
48  {
49  nDim=size.nelements();
50  shape=size;
51  cache.resize(shape);
52  };
53 
54  virtual T getValue(casacore::Vector<T>& , casacore::Vector<T>& ) { return (T)(1.0);};
55  virtual int getVisParams(const VisBuffer&,const casacore::CoordinateSystem& ) {return 0;};
57  const VisBuffer&,
58  const casacore::Int,
59  const casacore::Float,
60  const casacore::Float,
61  CFStore&,
62  CFStore&,casacore::Bool ) {};
63  virtual void setPolMap(const casacore::Vector<casacore::Int>& polMap) {(void)polMap;};
64  virtual void setFeedStokes(const casacore::Vector<casacore::Int>& feedStokes){(void)feedStokes;};
66  {
67  cerr << "******* PixelatedConvFunc& operator=(PixelatedConvFunc&) called!" << endl;
68  return *this;
69  }
71  {
72  cerr << "******* PixelatedConvFunc& operator=(ConvolutionFunction&) called!" << endl;
73  return *this;
74  }
79  {throw(casacore::AipsError("PixelatedConvFunc::makeAverageRes(Complex) called"));};
80  virtual void prepareConvFunction(const VisBuffer&, CFStore&) {};
81 
82  private:
86  };
87 
88 };
89 
90 #endif
A Vector of integers, for indexing into Array&lt;T&gt; objects.
Definition: IPosition.h:119
A 1-D Specialization of the Array class.
PixelatedConvFunc & operator=(const PixelatedConvFunc &)
int Int
Definition: aipstype.h:50
casacore::IPosition shape
virtual void setFeedStokes(const casacore::Vector< casacore::Int > &feedStokes)
virtual void setSize(casacore::IPosition &size)
casacore::Array< T > cache
The base class to compute convolution functions for convolutional gridding.
virtual T getValue(casacore::Vector< T > &, casacore::Vector< T > &)
size_t size() const
virtual void makeConvFunction(const casacore::ImageInterface< casacore::Complex > &, const VisBuffer &, const casacore::Int, const casacore::Float, const casacore::Float, CFStore &, CFStore &, casacore::Bool)
virtual void setPolMap(const casacore::Vector< casacore::Int > &polMap)
LatticeExprNode nelements(const LatticeExprNode &expr)
1-argument function to get the number of elements in a lattice.
virtual void prepareConvFunction(const VisBuffer &, CFStore &)
virtual int getVisParams(const VisBuffer &, const casacore::CoordinateSystem &)
A support function which, for now, returns and integer ID corresponding to the on-sky frequency of th...
virtual casacore::Bool makeAverageResponse(const VisBuffer &, const casacore::ImageInterface< casacore::Complex > &, casacore::ImageInterface< casacore::Complex > &, casacore::Bool)
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
float Float
Definition: aipstype.h:54
PixelatedConvFunc(casacore::IPosition &shape)
template &lt;class T, class U&gt; class vector;
Definition: MSFlagger.h:37
PixelatedConvFunc & operator=(const ConvolutionFunction &)
Base class for all Casacore library errors.
Definition: Error.h:134
VisBuffers encapsulate one chunk of visibility data for processing.
Definition: VisBuffer.h:153
uInt nelements() const
The number of elements in this IPosition.
Definition: IPosition.h:544
Interconvert pixel and world coordinates.