casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
casacore::Gridder< Domain, Range > Class Template Referenceabstract

A base class for gridding. More...

#include <Gridder.h>

Inheritance diagram for casacore::Gridder< Domain, Range >:
casacore::ConvolveGridder< Domain, Range > casacore::NNGridder< Domain, Range >

Public Member Functions

 Gridder ()
 
 Gridder (const IPosition &shape, const Vector< Domain > &scale, const Vector< Domain > &offset)
 
virtual ~Gridder ()
 
virtual Bool grid (Array< Range > &, const Vector< Domain > &position, const Range &value)=0
 
virtual Bool degrid (const Array< Range > &, const Vector< Domain > &position, Range &value)=0
 
virtual Range correct (const IPosition &loc)
 
virtual void correctX1D (Vector< Range > &factor, const Int locy)
 Return a correction vector in x for loc y. More...
 
Vector< Int > & location (Vector< Int > &loc, const Vector< Domain > &pos)
 
Vector< Domain > & position (Vector< Domain > &gpos, const Vector< Domain > &pos)
 
virtual Bool onGrid (const Vector< Int > &loc)
 
virtual Bool onGrid (const Vector< Int > &loc, const Vector< Int > &delta)
 
virtual Bool onGrid (const Vector< Domain > &pos)
 
void setOffset (const Vector< Int > &off)
 
void setOffset (const IPosition &off)
 

Protected Member Functions

Int nint (Double val)
 
virtual void fillCorrectionVectors ()
 
virtual Range correctionFactor1D (Int loc, Int len)=0
 Correction factor for 1 dimension. More...
 

Protected Attributes

Int ndim
 
IPosition shape
 
Vector< Domain > scale
 
Vector< Domain > offset
 
Vector< Domain > posVec
 
Vector< IntlocVec
 
Vector< IntshapeVec
 
Vector< IntzeroShapeVec
 
Vector< IntoffsetVec
 
Vector< IntcenterVec
 
Vector< Vector< Range > > correctionVectors
 

Detailed Description

template<class Domain, class Range>
class casacore::Gridder< Domain, Range >

A base class for gridding.

Definition at line 46 of file Gridder.h.

Constructor & Destructor Documentation

template<class Domain, class Range>
casacore::Gridder< Domain, Range >::Gridder ( )
template<class Domain, class Range>
casacore::Gridder< Domain, Range >::Gridder ( const IPosition shape,
const Vector< Domain > &  scale,
const Vector< Domain > &  offset 
)
template<class Domain, class Range>
virtual casacore::Gridder< Domain, Range >::~Gridder ( )
virtual

Member Function Documentation

template<class Domain, class Range>
virtual Range casacore::Gridder< Domain, Range >::correct ( const IPosition loc)
virtual
template<class Domain, class Range>
virtual Range casacore::Gridder< Domain, Range >::correctionFactor1D ( Int  loc,
Int  len 
)
protectedpure virtual

Correction factor for 1 dimension.

This is virtual and must be assigned appropriately for derived classes

Implemented in casacore::ConvolveGridder< Domain, Range >, casacore::ConvolveGridder< casacore::Double, casacore::Complex >, and casacore::NNGridder< Domain, Range >.

template<class Domain, class Range>
virtual void casacore::Gridder< Domain, Range >::correctX1D ( Vector< Range > &  factor,
const Int  locy 
)
virtual

Return a correction vector in x for loc y.

template<class Domain, class Range>
virtual Bool casacore::Gridder< Domain, Range >::degrid ( const Array< Range > &  ,
const Vector< Domain > &  position,
Range &  value 
)
pure virtual
template<class Domain, class Range>
virtual void casacore::Gridder< Domain, Range >::fillCorrectionVectors ( )
protectedvirtual
template<class Domain, class Range>
virtual Bool casacore::Gridder< Domain, Range >::grid ( Array< Range > &  ,
const Vector< Domain > &  position,
const Range &  value 
)
pure virtual
template<class Domain, class Range>
Vector<Int>& casacore::Gridder< Domain, Range >::location ( Vector< Int > &  loc,
const Vector< Domain > &  pos 
)
template<class Domain, class Range>
Int casacore::Gridder< Domain, Range >::nint ( Double  val)
inlineprotected

Definition at line 83 of file Gridder.h.

template<class Domain, class Range>
virtual Bool casacore::Gridder< Domain, Range >::onGrid ( const Vector< Int > &  loc)
virtual
template<class Domain, class Range>
virtual Bool casacore::Gridder< Domain, Range >::onGrid ( const Vector< Int > &  loc,
const Vector< Int > &  delta 
)
virtual
template<class Domain, class Range>
virtual Bool casacore::Gridder< Domain, Range >::onGrid ( const Vector< Domain > &  pos)
virtual
template<class Domain, class Range>
Vector<Domain>& casacore::Gridder< Domain, Range >::position ( Vector< Domain > &  gpos,
const Vector< Domain > &  pos 
)
template<class Domain, class Range>
void casacore::Gridder< Domain, Range >::setOffset ( const Vector< Int > &  off)
template<class Domain, class Range>
void casacore::Gridder< Domain, Range >::setOffset ( const IPosition off)

Member Data Documentation

template<class Domain, class Range>
Vector<Int> casacore::Gridder< Domain, Range >::centerVec
protected

Definition at line 103 of file Gridder.h.

template<class Domain, class Range>
Vector<Vector<Range> > casacore::Gridder< Domain, Range >::correctionVectors
protected

Definition at line 105 of file Gridder.h.

template<class Domain, class Range>
Vector<Int> casacore::Gridder< Domain, Range >::locVec
protected

Definition at line 99 of file Gridder.h.

template<class Domain, class Range>
Int casacore::Gridder< Domain, Range >::ndim
protected

Definition at line 91 of file Gridder.h.

template<class Domain, class Range>
Vector<Domain> casacore::Gridder< Domain, Range >::offset
protected

Definition at line 95 of file Gridder.h.

template<class Domain, class Range>
Vector<Int> casacore::Gridder< Domain, Range >::offsetVec
protected

Definition at line 102 of file Gridder.h.

template<class Domain, class Range>
Vector<Domain> casacore::Gridder< Domain, Range >::posVec
protected

Definition at line 97 of file Gridder.h.

template<class Domain, class Range>
Vector<Domain> casacore::Gridder< Domain, Range >::scale
protected

Definition at line 94 of file Gridder.h.

template<class Domain, class Range>
IPosition casacore::Gridder< Domain, Range >::shape
protected

Definition at line 92 of file Gridder.h.

template<class Domain, class Range>
Vector<Int> casacore::Gridder< Domain, Range >::shapeVec
protected

Definition at line 100 of file Gridder.h.

template<class Domain, class Range>
Vector<Int> casacore::Gridder< Domain, Range >::zeroShapeVec
protected

Definition at line 101 of file Gridder.h.


The documentation for this class was generated from the following file: