casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
casacore::LELLattCoord Class Reference

The base letter class for lattice coordinates in LEL. More...

#include <LELLattCoord.h>

Inheritance diagram for casacore::LELLattCoord:
casacore::LELLattCoordBase casacore::LELImageCoord

Public Member Functions

 LELLattCoord ()
 
virtual ~LELLattCoord ()
 A virtual destructor is needed so that it will use the actual destructor in the derived class. More...
 
virtual Bool hasCoordinates () const
 The class does not have true coordinates. More...
 
virtual LatticeExprNode makeSubLattice (const LatticeExprNode &expr, const LattRegionHolder &region) const
 Create a SubLattice for an expression node. More...
 
virtual LatticeExprNode makeExtendLattice (const LatticeExprNode &expr, const IPosition &newShape, const LELLattCoordBase &newCoord) const
 Create an extension for an expression node. More...
 
virtual LatticeExprNode makeRebinLattice (const LatticeExprNode &expr, const IPosition &binning) const
 Create a rebinning for an expression node. More...
 
virtual uInt getSpectralInfo (Vector< Double > &worldCoordinates, const IPosition &shape) const
 Get the coordinates of the spectral axis for the given shape. More...
 
virtual String classname () const
 The name of the class. More...
 
virtual Int compare (const LELLattCoordBase &other) const
 Check how the coordinates of this and that compare. More...
 
virtual Int doCompare (const LELImageCoord &other) const
 Check how the coordinates of this and that image compare. More...
 
- Public Member Functions inherited from casacore::LELLattCoordBase
 LELLattCoordBase ()
 
virtual ~LELLattCoordBase ()
 A virtual destructor is needed so that it will use the actual destructor in the derived class. More...
 

Detailed Description

The base letter class for lattice coordinates in LEL.

Intended use:

Internal

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Synopsis

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.

Motivation

It must be possible to handle image coordinates in a lattice expression.

Definition at line 80 of file LELLattCoord.h.

Constructor & Destructor Documentation

casacore::LELLattCoord::LELLattCoord ( )
virtual casacore::LELLattCoord::~LELLattCoord ( )
virtual

A virtual destructor is needed so that it will use the actual destructor in the derived class.

Member Function Documentation

virtual String casacore::LELLattCoord::classname ( ) const
virtual

The name of the class.

Implements casacore::LELLattCoordBase.

Reimplemented in casacore::LELImageCoord.

virtual Int casacore::LELLattCoord::compare ( const LELLattCoordBase other) const
virtual

Check how the coordinates of this and that compare.

Implements casacore::LELLattCoordBase.

Reimplemented in casacore::LELImageCoord.

virtual Int casacore::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 casacore::LELLattCoordBase.

Reimplemented in casacore::LELImageCoord.

virtual uInt casacore::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 casacore::LELLattCoordBase.

Reimplemented in casacore::LELImageCoord.

virtual Bool casacore::LELLattCoord::hasCoordinates ( ) const
virtual

The class does not have true coordinates.

Implements casacore::LELLattCoordBase.

Reimplemented in casacore::LELImageCoord.

virtual LatticeExprNode casacore::LELLattCoord::makeExtendLattice ( const LatticeExprNode expr,
const IPosition newShape,
const LELLattCoordBase newCoord 
) const
virtual

Create an extension for an expression node.

Reimplemented in casacore::LELImageCoord.

virtual LatticeExprNode casacore::LELLattCoord::makeRebinLattice ( const LatticeExprNode expr,
const IPosition binning 
) const
virtual

Create a rebinning for an expression node.

Reimplemented in casacore::LELImageCoord.

virtual LatticeExprNode casacore::LELLattCoord::makeSubLattice ( const LatticeExprNode expr,
const LattRegionHolder region 
) const
virtual

Create a SubLattice for an expression node.

Reimplemented in casacore::LELImageCoord.


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