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
casa::ConverterChannel Class Reference

Purpose of this class is to convert from channels= pixels to the world units/pixels used by the spectral axis. More...

#include <ConverterChannel.h>

Inheritance diagram for casa::ConverterChannel:
casa::Converter

Public Member Functions

 ConverterChannel (const QString &oldUnits, const QString &newUnits)
 
virtual double toPixel (double value, casacore::SpectralCoordinate spectralCoordinate)
 Abstract methods to be implemented by subclasses. More...
 
virtual casacore::Vector< double > convert (const casacore::Vector< double > &oldValues, casacore::SpectralCoordinate spectralCoordinate)
 
virtual double convert (double oldValue, casacore::SpectralCoordinate spectralCoordinate)
 
virtual ~ConverterChannel ()
 
- Public Member Functions inherited from casa::Converter
 Converter (const QString &oldUnits, const QString &newUnits)
 
QString getNewUnits () const
 
virtual ~Converter ()
 

Additional Inherited Members

- Public Types inherited from casa::Converter
enum  UnitType {
  FREQUENCY_UNIT,
  VELOCITY_UNIT,
  WAVELENGTH_UNIT,
  CHANNEL_UNIT,
  UNRECOGNIZED
}
 
- Static Public Member Functions inherited from casa::Converter
static ConvertergetConverter (const QString &oldUnits, const QString &newUnits)
 Factory for producing the appropriate converter. More...
 
static void convert (casacore::Vector< double > &resultValues, int sourceIndex, int destIndex, casacore::SpectralCoordinate coordinate)
 
static UnitType getUnitType (const QString &unit)
 
- Protected Attributes inherited from casa::Converter
QString oldUnits
 
QString newUnits
 
- Static Protected Attributes inherited from casa::Converter
static const QList< QString > FREQUENCY_UNITS
 
static const QList< QString > WAVELENGTH_UNITS
 
static const QList< QString > VELOCITY_UNITS
 

Detailed Description

Purpose of this class is to convert from channels= pixels to the world units/pixels used by the spectral axis.

Definition at line 34 of file ConverterChannel.h.

Constructor & Destructor Documentation

casa::ConverterChannel::ConverterChannel ( const QString &  oldUnits,
const QString &  newUnits 
)
virtual casa::ConverterChannel::~ConverterChannel ( )
virtual

Member Function Documentation

virtual casacore::Vector<double> casa::ConverterChannel::convert ( const casacore::Vector< double > &  oldValues,
casacore::SpectralCoordinate  spectralCoordinate 
)
virtual

Implements casa::Converter.

virtual double casa::ConverterChannel::convert ( double  oldValue,
casacore::SpectralCoordinate  spectralCoordinate 
)
virtual

Reimplemented from casa::Converter.

virtual double casa::ConverterChannel::toPixel ( double  value,
casacore::SpectralCoordinate  coordinate 
)
virtual

Abstract methods to be implemented by subclasses.

Implements casa::Converter.


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