casa
$Rev:20696$
|
The base letter class for lattice coordinates in LEL. More...
#include <LELLattCoord.h>
Public Member Functions | |
LELLattCoord () | |
virtual | ~LELLattCoord () |
A virtual destructor is needed so that it will use the actual destructor in the derived class. | |
virtual Bool | hasCoordinates () const |
The class does not have true coordinates. | |
virtual LatticeExprNode | makeSubLattice (const LatticeExprNode &expr, const LattRegionHolder ®ion) const |
Create a SubLattice for an expression node. | |
virtual LatticeExprNode | makeExtendLattice (const LatticeExprNode &expr, const IPosition &newShape, const LELLattCoordBase &newCoord) const |
Create an extension for an expression node. | |
virtual LatticeExprNode | makeRebinLattice (const LatticeExprNode &expr, const IPosition &binning) const |
Create a rebinning for an expression node. | |
virtual uInt | getSpectralInfo (Vector< Double > &worldCoordinates, const IPosition &shape) const |
Get the coordinates of the spectral axis for the given shape. | |
virtual String | classname () const |
The name of the class. | |
virtual Int | compare (const LELLattCoordBase &other) const |
Check how the coordinates of this and that compare. | |
virtual Int | doCompare (const LELImageCoord &other) const |
Check how the coordinates of this and that image compare. |
The base letter class for lattice coordinates in LEL.
Internal
This class is a letter class for the envelope class LELCoordinates . It acts as the coordinates class for Lattice objects without coordinates (like PagedArray).
It does not do anything, but makes it possible that other classes (like LELImageCoord ) implement their own behaviour.
It must be possible to handle image coordinates in a lattice expression.
Definition at line 79 of file LELLattCoord.h.
virtual casa::LELLattCoord::~LELLattCoord | ( | ) | [virtual] |
A virtual destructor is needed so that it will use the actual destructor in the derived class.
virtual String casa::LELLattCoord::classname | ( | ) | const [virtual] |
virtual Int casa::LELLattCoord::compare | ( | const LELLattCoordBase & | other | ) | const [virtual] |
Check how the coordinates of this and that compare.
Implements casa::LELLattCoordBase.
Reimplemented in casa::LELImageCoord.
virtual Int casa::LELLattCoord::doCompare | ( | const LELImageCoord & | other | ) | const [virtual] |
Check how the coordinates of this and that image compare.
This function is used by conform
to make a double virtual dispatch possible.
Implements casa::LELLattCoordBase.
Reimplemented in casa::LELImageCoord.
virtual uInt casa::LELLattCoord::getSpectralInfo | ( | Vector< Double > & | worldCoordinates, |
const IPosition & | shape | ||
) | const [virtual] |
Get the coordinates of the spectral axis for the given shape.
This function throws an exception as a Lattice has no coordinates.
Implements casa::LELLattCoordBase.
Reimplemented in casa::LELImageCoord.
virtual Bool casa::LELLattCoord::hasCoordinates | ( | ) | const [virtual] |
The class does not have true coordinates.
Implements casa::LELLattCoordBase.
Reimplemented in casa::LELImageCoord.
virtual LatticeExprNode casa::LELLattCoord::makeExtendLattice | ( | const LatticeExprNode & | expr, |
const IPosition & | newShape, | ||
const LELLattCoordBase & | newCoord | ||
) | const [virtual] |
Create an extension for an expression node.
Reimplemented in casa::LELImageCoord.
virtual LatticeExprNode casa::LELLattCoord::makeRebinLattice | ( | const LatticeExprNode & | expr, |
const IPosition & | binning | ||
) | const [virtual] |
Create a rebinning for an expression node.
Reimplemented in casa::LELImageCoord.
virtual LatticeExprNode casa::LELLattCoord::makeSubLattice | ( | const LatticeExprNode & | expr, |
const LattRegionHolder & | region | ||
) | const [virtual] |
Create a SubLattice for an expression node.
Reimplemented in casa::LELImageCoord.