casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
casacore::LELLattCoordBase Class Referenceabstract

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

#include <LELLattCoordBase.h>

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

Public Member Functions

 LELLattCoordBase ()
 
virtual ~LELLattCoordBase ()
 A virtual destructor is needed so that it will use the actual destructor in the derived class. More...
 
virtual Bool hasCoordinates () const =0
 Does the class have true coordinates? More...
 
virtual String classname () const =0
 The name of the class. More...
 
virtual uInt getSpectralInfo (Vector< Double > &worldCoordinates, const IPosition &shape) const =0
 Get the coordinates of the spectral axis for the given shape. More...
 
virtual Int compare (const LELLattCoordBase &other) const =0
 Check how the coordinates of this and that compare. More...
 
virtual Int doCompare (const LELImageCoord &other) const =0
 Check how the coordinates of this and that image compare. More...
 

Detailed Description

The base letter class for lattice coordinates in LEL.

Intended use:

Internal

Review Status

Reviewed By:
Bob Garwood
Date Reviewed:
2000/01/25
Test programs:
tLatticeExpr

Prerequisite

Synopsis

This abstract base class is the basic letter for the envelope class LELCoordinates. It does not do anything, but makes it possible that derived classes (like LELLattCoord and LELImageCoord) implement their own behaviour.

Motivation

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

Definition at line 77 of file LELLattCoordBase.h.

Constructor & Destructor Documentation

casacore::LELLattCoordBase::LELLattCoordBase ( )
inline

Definition at line 80 of file LELLattCoordBase.h.

virtual casacore::LELLattCoordBase::~LELLattCoordBase ( )
virtual

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

Member Function Documentation

virtual String casacore::LELLattCoordBase::classname ( ) const
pure virtual

The name of the class.

Implemented in casacore::LELImageCoord, and casacore::LELLattCoord.

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

Check how the coordinates of this and that compare.

Implemented in casacore::LELImageCoord, and casacore::LELLattCoord.

virtual Int casacore::LELLattCoordBase::doCompare ( const LELImageCoord other) const
pure virtual

Check how the coordinates of this and that image compare.

This function is used by conform to make a double virtual dispatch possible.

Implemented in casacore::LELImageCoord, and casacore::LELLattCoord.

virtual uInt casacore::LELLattCoordBase::getSpectralInfo ( Vector< Double > &  worldCoordinates,
const IPosition shape 
) const
pure virtual

Get the coordinates of the spectral axis for the given shape.

It returns the pixel axis number of the spectral coordinates. -1 indicates that there is no pixel spectral axis. An exception is thrown if there are no world spectral coordinates.

Implemented in casacore::LELImageCoord, and casacore::LELLattCoord.

virtual Bool casacore::LELLattCoordBase::hasCoordinates ( ) const
pure virtual

Does the class have true coordinates?

Implemented in casacore::LELImageCoord, and casacore::LELLattCoord.


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