Line data Source code
1 : //# TabulatedConvFunc.h: Definition for TabulatedConvFunc 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: casa-feedback@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_TABULATEDCONVFUNC_H 30 : #define SYNTHESIS_TABULATEDCONVFUNC_H 31 : 32 : #include <synthesis/TransformMachines/ConvolutionFunction.h> 33 : 34 : namespace casa{ 35 : 36 : class TabulatedConvFunc: public ConvolutionFunction 37 : { 38 : public: 39 21 : TabulatedConvFunc(): ConvolutionFunction(),cacheSizeInPixels_p(-1) {}; 40 : TabulatedConvFunc(casacore::Int n): ConvolutionFunction(n),cacheSizeInPixels_p(-1) {}; 41 21 : ~TabulatedConvFunc() {}; 42 : 43 0 : virtual void setMaximumCacheSize(const casacore::Long howManyRealPixels=-1) {cacheSizeInPixels_p=howManyRealPixels;} 44 0 : virtual casacore::Long maximumCacheSize() {return cacheSizeInPixels_p;} 45 0 : virtual void initTables(casacore::Int ){}; 46 0 : virtual void prepareConvFunction(const VisBuffer& /*vb*/, CFStore& /*cfs*/){}; 47 : private: 48 : casacore::Long cacheSizeInPixels_p; 49 : }; 50 : 51 : }; 52 : #endif