casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
casa::WCSimpleResampleHandler Class Reference

Class which implements simple resampling for the WorldCanvas. More...

#include <WCSimpleResampleHandler.h>

Inheritance diagram for casa::WCSimpleResampleHandler:
casa::WCResampleHandler

List of all members.

Public Member Functions

 WCSimpleResampleHandler ()
 Default constructor (Provides NEAREST)
 WCSimpleResampleHandler (Interpolate2D::Method type=Interpolate2D::NEAREST)
 Constructor.
 WCSimpleResampleHandler (const WCSimpleResampleHandler &other)
 Copy Constructor (copy semantics)
WCSimpleResampleHandleroperator= (const WCSimpleResampleHandler &other)
 Assignment operator (copy semantics)
virtual ~WCSimpleResampleHandler ()
 Destructor.
void setInterpolationType (Interpolate2D::Method type)
 Reset interpolation method.
virtual void operator() (Matrix< Bool > &out, const Matrix< Bool > &in)
 The output array is presized by the caller to the correct size.
virtual void operator() (Matrix< uChar > &out, const Matrix< uChar > &in)
virtual void operator() (Matrix< Char > &out, const Matrix< Char > &in)
virtual void operator() (Matrix< uShort > &out, const Matrix< uShort > &in)
virtual void operator() (Matrix< Short > &out, const Matrix< Short > &in)
virtual void operator() (Matrix< uInt > &out, const Matrix< uInt > &in)
virtual void operator() (Matrix< Int > &out, const Matrix< Int > &in)
virtual void operator() (Matrix< uLong > &out, const Matrix< uLong > &in)
virtual void operator() (Matrix< Long > &out, const Matrix< Long > &in)
virtual void operator() (Matrix< Float > &out, const Matrix< Float > &in)
virtual void operator() (Matrix< Double > &out, const Matrix< Double > &in)
virtual void operator() (Matrix< Complex > &out, const Matrix< Complex > &in)
virtual void operator() (Matrix< DComplex > &out, const Matrix< DComplex > &in)
virtual void operator() (Matrix< Float > &out, const Matrix< Float > &in, const Vector< Float > &pixblc, const Vector< Float > &pixtrc, const Float blank=0.0)
 This function resamples the input matrix to the output.
virtual void operator() (Matrix< Float > &out, Matrix< Bool > &outMask, const Matrix< Float > &in, const Matrix< Bool > &inMask, const Vector< Float > &inblc, const Vector< Float > &intrc, const Float blank=0.0)
virtual void operator() (Matrix< Bool > &out, const Matrix< Bool > &in, const Vector< Float > &pixblc, const Vector< Float > &pixtrc, const Bool blank=False)

Private Attributes

Interpolate2D itsInterp
 
    


Detailed Description

Class which implements simple resampling for the WorldCanvas.

Prerequisite

Etymology

The name "WCSimpleResampleHandler" is a contraction of the terms "WorldCanvas," "Simple," "Resample" and "Handler."

Synopsis

This class implements the interface defined in WCResampleHandler to provide pixel interpolation (resampling) of data pixels to screen pixels. It offers simple nearest, linear and cubic interpolation.

Motivation

The provision of raster images which are smooth in appearance.

Definition at line 60 of file WCSimpleResampleHandler.h.


Constructor & Destructor Documentation

Default constructor (Provides NEAREST)

Constructor.

Copy Constructor (copy semantics)

Destructor.


Member Function Documentation

virtual void casa::WCSimpleResampleHandler::operator() ( Matrix< Bool > &  out,
const Matrix< Bool > &  in 
) [virtual]

The output array is presized by the caller to the correct size.

It will be filled using information in the input array combined with other resample-specific information. Here again the interface is type expanded rather than templated because C++ doesn't yet handle templated member functions in a non-templated class.

Implements casa::WCResampleHandler.

virtual void casa::WCSimpleResampleHandler::operator() ( Matrix< uChar > &  out,
const Matrix< uChar > &  in 
) [virtual]
virtual void casa::WCSimpleResampleHandler::operator() ( Matrix< Char > &  out,
const Matrix< Char > &  in 
) [virtual]
virtual void casa::WCSimpleResampleHandler::operator() ( Matrix< uShort > &  out,
const Matrix< uShort > &  in 
) [virtual]
virtual void casa::WCSimpleResampleHandler::operator() ( Matrix< Short > &  out,
const Matrix< Short > &  in 
) [virtual]
virtual void casa::WCSimpleResampleHandler::operator() ( Matrix< uInt > &  out,
const Matrix< uInt > &  in 
) [virtual]
virtual void casa::WCSimpleResampleHandler::operator() ( Matrix< Int > &  out,
const Matrix< Int > &  in 
) [virtual]
virtual void casa::WCSimpleResampleHandler::operator() ( Matrix< uLong > &  out,
const Matrix< uLong > &  in 
) [virtual]
virtual void casa::WCSimpleResampleHandler::operator() ( Matrix< Long > &  out,
const Matrix< Long > &  in 
) [virtual]
virtual void casa::WCSimpleResampleHandler::operator() ( Matrix< Float > &  out,
const Matrix< Float > &  in 
) [virtual]
virtual void casa::WCSimpleResampleHandler::operator() ( Matrix< Double > &  out,
const Matrix< Double > &  in 
) [virtual]
virtual void casa::WCSimpleResampleHandler::operator() ( Matrix< Complex > &  out,
const Matrix< Complex > &  in 
) [virtual]
virtual void casa::WCSimpleResampleHandler::operator() ( Matrix< DComplex > &  out,
const Matrix< DComplex > &  in 
) [virtual]
virtual void casa::WCSimpleResampleHandler::operator() ( Matrix< Float > &  out,
const Matrix< Float > &  in,
const Vector< Float > &  pixblc,
const Vector< Float > &  pixtrc,
const Float  blank = 0.0 
) [virtual]

This function resamples the input matrix to the output.

pixblc is the location relative to the input matrix of the bottom-left pixel of the output (sim. for pixtrc); blank is the output value where none of the input data is useful. The output matrix must be presized to the required size.

Implements casa::WCResampleHandler.

virtual void casa::WCSimpleResampleHandler::operator() ( Matrix< Float > &  out,
Matrix< Bool > &  outMask,
const Matrix< Float > &  in,
const Matrix< Bool > &  inMask,
const Vector< Float > &  inblc,
const Vector< Float > &  intrc,
const Float  blank = 0.0 
) [virtual]
virtual void casa::WCSimpleResampleHandler::operator() ( Matrix< Bool > &  out,
const Matrix< Bool > &  in,
const Vector< Float > &  pixblc,
const Vector< Float > &  pixtrc,
const Bool  blank = False 
) [virtual]
WCSimpleResampleHandler& casa::WCSimpleResampleHandler::operator= ( const WCSimpleResampleHandler other)

Assignment operator (copy semantics)

Reset interpolation method.


Member Data Documentation

    

Definition at line 126 of file WCSimpleResampleHandler.h.


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