casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
casa::Gridder< Domain, Range > Class Template Reference

A base class for gridding. More...

#include <Gridder.h>

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

List of all members.

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.
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.

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 casa::Gridder< Domain, Range >

A base class for gridding.

Definition at line 45 of file Gridder.h.


Constructor & Destructor Documentation

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

Member Function Documentation

template<class Domain, class Range>
virtual Range casa::Gridder< Domain, Range >::correct ( const IPosition loc) [virtual]
template<class Domain, class Range>
virtual Range casa::Gridder< Domain, Range >::correctionFactor1D ( Int  loc,
Int  len 
) [protected, pure virtual]

Correction factor for 1 dimension.

This is virtual and must be assigned appropriately for derived classes

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

template<class Domain, class Range>
virtual void casa::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 casa::Gridder< Domain, Range >::degrid ( const Array< Range > &  ,
const Vector< Domain > &  position,
Range &  value 
) [pure virtual]
template<class Domain, class Range>
virtual void casa::Gridder< Domain, Range >::fillCorrectionVectors ( ) [protected, virtual]
template<class Domain, class Range>
virtual Bool casa::Gridder< Domain, Range >::grid ( Array< Range > &  ,
const Vector< Domain > &  position,
const Range &  value 
) [pure virtual]
template<class Domain, class Range>
Vector<Int>& casa::Gridder< Domain, Range >::location ( Vector< Int > &  loc,
const Vector< Domain > &  pos 
)
template<class Domain, class Range>
Int casa::Gridder< Domain, Range >::nint ( Double  val) [inline, protected]

Definition at line 82 of file Gridder.h.

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

Member Data Documentation

template<class Domain, class Range>
Vector<Int> casa::Gridder< Domain, Range >::centerVec [protected]

Definition at line 102 of file Gridder.h.

template<class Domain, class Range>
Vector<Vector<Range> > casa::Gridder< Domain, Range >::correctionVectors [protected]

Definition at line 104 of file Gridder.h.

template<class Domain, class Range>
Vector<Int> casa::Gridder< Domain, Range >::locVec [protected]

Definition at line 98 of file Gridder.h.

template<class Domain, class Range>
Int casa::Gridder< Domain, Range >::ndim [protected]

Definition at line 90 of file Gridder.h.

template<class Domain, class Range>
Vector<Domain> casa::Gridder< Domain, Range >::offset [protected]

Definition at line 94 of file Gridder.h.

template<class Domain, class Range>
Vector<Int> casa::Gridder< Domain, Range >::offsetVec [protected]

Definition at line 101 of file Gridder.h.

template<class Domain, class Range>
Vector<Domain> casa::Gridder< Domain, Range >::posVec [protected]

Definition at line 96 of file Gridder.h.

template<class Domain, class Range>
Vector<Domain> casa::Gridder< Domain, Range >::scale [protected]

Definition at line 93 of file Gridder.h.

template<class Domain, class Range>
IPosition casa::Gridder< Domain, Range >::shape [protected]

Definition at line 91 of file Gridder.h.

template<class Domain, class Range>
Vector<Int> casa::Gridder< Domain, Range >::shapeVec [protected]

Definition at line 99 of file Gridder.h.

template<class Domain, class Range>
Vector<Int> casa::Gridder< Domain, Range >::zeroShapeVec [protected]

Definition at line 100 of file Gridder.h.


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