casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
casa::CLIPNearest2D< T > Class Template Reference

Arbitrarily shaped 1-dim lattice crosscut. More...

#include <CLIPNearest2D.h>

Inheritance diagram for casa::CLIPNearest2D< T >:
casa::CLInterpolator2D< T >

List of all members.

Public Member Functions

 CLIPNearest2D ()
 Only default constructor is needed.
virtual CLIPNearest2D< T > * clone () const
 Make a copy of the object.
virtual void getData (Array< T > &buffer, const Vector< Float > &x, const Vector< Float > &y, const Slicer &section)
 Get the data for the given pixel points (on axis1 and axis2) and the chunk in the other axes as given by the section.
virtual void getMask (Array< Bool > &buffer, const Vector< Float > &x, const Vector< Float > &y, const Slicer &section)
 Get the mask for the given pixel points (on axis1 and axis2) and the chunk in the other axes as given by the section.

Detailed Description

template<class T>
class casa::CLIPNearest2D< T >

Arbitrarily shaped 1-dim lattice crosscut.

Intended use:

Public interface

Review Status

Test programs:
tPixelCurve

Prerequisite

Etymology

CLIP means CLInterpolator (its base class). The 2D means that interpolation in 2 dimensions needs to be done.

Synopsis

CLIPNearest2D is a realisation of the abstract base class CLInterpolator2D. This class interpolates in a very simple way by taking the nearest neighbour.

Note that the base class contains the lattice to be interpolated and the axis to be used in the interpolation.

Definition at line 72 of file CLIPNearest2D.h.


Constructor & Destructor Documentation

template<class T>
casa::CLIPNearest2D< T >::CLIPNearest2D ( )

Only default constructor is needed.

The set function in the base class defines the lattice and axes.


Member Function Documentation

template<class T>
virtual CLIPNearest2D<T>* casa::CLIPNearest2D< T >::clone ( ) const [virtual]

Make a copy of the object.

Implements casa::CLInterpolator2D< T >.

template<class T>
virtual void casa::CLIPNearest2D< T >::getData ( Array< T > &  buffer,
const Vector< Float > &  x,
const Vector< Float > &  y,
const Slicer section 
) [virtual]

Get the data for the given pixel points (on axis1 and axis2) and the chunk in the other axes as given by the section.

Implements casa::CLInterpolator2D< T >.

template<class T>
virtual void casa::CLIPNearest2D< T >::getMask ( Array< Bool > &  buffer,
const Vector< Float > &  x,
const Vector< Float > &  y,
const Slicer section 
) [virtual]

Get the mask for the given pixel points (on axis1 and axis2) and the chunk in the other axes as given by the section.

Implements casa::CLInterpolator2D< T >.


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