casa
5.7.0-16
|
#include <Converter.h>
Public Types | |
enum | UnitType { FREQUENCY_UNIT, VELOCITY_UNIT, WAVELENGTH_UNIT, CHANNEL_UNIT, UNRECOGNIZED } |
Public Member Functions | |
Converter (const QString &oldUnits, const QString &newUnits) | |
QString | getNewUnits () const |
virtual double | toPixel (double value, casacore::SpectralCoordinate coordinate)=0 |
Abstract methods to be implemented by subclasses. More... | |
virtual casacore::Vector< double > | convert (const casacore::Vector< double > &oldValues, casacore::SpectralCoordinate coordinate)=0 |
virtual double | convert (double oldValue, casacore::SpectralCoordinate coordinate) |
virtual | ~Converter () |
Static Public Member Functions | |
static Converter * | getConverter (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 | |
QString | oldUnits |
QString | newUnits |
Static Protected Attributes | |
static const QList< QString > | FREQUENCY_UNITS |
static const QList< QString > | WAVELENGTH_UNITS |
static const QList< QString > | VELOCITY_UNITS |
Definition at line 35 of file Converter.h.
Enumerator | |
---|---|
FREQUENCY_UNIT | |
VELOCITY_UNIT | |
WAVELENGTH_UNIT | |
CHANNEL_UNIT | |
UNRECOGNIZED |
Definition at line 51 of file Converter.h.
casa::Converter::Converter | ( | const QString & | oldUnits, |
const QString & | newUnits | ||
) |
|
virtual |
|
static |
|
pure virtual |
Implemented in casa::ConverterFrequency, casa::ConverterVelocity, casa::ConverterWavelength, casa::ConverterChannel, casa::ConverterFrequencyWavelength, casa::ConverterVelocityWavelength, casa::ConverterWavelengthFrequency, casa::ConverterWavelengthVelocity, casa::ConverterVelocityFrequency, and casa::ConverterFrequencyVelocity.
|
virtual |
Reimplemented in casa::ConverterChannel.
|
static |
Factory for producing the appropriate converter.
Note: user is responsible for deleting the converter.
QString casa::Converter::getNewUnits | ( | ) | const |
|
static |
|
pure virtual |
Abstract methods to be implemented by subclasses.
Implemented in casa::ConverterFrequency, casa::ConverterChannel, casa::ConverterVelocity, and casa::ConverterWavelength.
|
staticprotected |
Definition at line 56 of file Converter.h.
|
protected |
Definition at line 61 of file Converter.h.
|
protected |
Definition at line 60 of file Converter.h.
|
staticprotected |
Definition at line 58 of file Converter.h.
|
staticprotected |
Definition at line 57 of file Converter.h.