Brief description of class still missing. More...
#include <MagnetoTelluricPointOptions.h>
Public Types | |
enum | OutputMode { ApparentResistivity, AbsoluteValue, PhaseDegrees, PhaseRadians, Real, Imaginary } |
Public Member Functions | |
virtual void | fromDouble (double x, Complex &c, double v) const |
MagnetoTelluricPointOptions (OutputMode m=ApparentResistivity) | |
MagnetoTelluricPointOptions (const MagnetoTelluricPointOptions &o) | |
OutputMode | mode () const |
void | setMode (OutputMode m) |
virtual double | toDouble (double x, const Complex &c) const |
Static Public Member Functions | |
static double | toAbsoluteValue (double frequency, double apparentResistivity) |
static double | toApparentResistivity (double frequency, double absoluteValue) |
Brief description of class still missing.
Full description of class still missing
QGpCoreWave::MagnetoTelluricPointOptions::MagnetoTelluricPointOptions | ( | OutputMode | m = ApparentResistivity | ) | [inline] |
: AbstractComplexPointOptions() {_mode=m;}
QGpCoreWave::MagnetoTelluricPointOptions::MagnetoTelluricPointOptions | ( | const MagnetoTelluricPointOptions & | o | ) | [inline] |
: AbstractComplexPointOptions() {_mode=o._mode;}
void QGpCoreWave::MagnetoTelluricPointOptions::fromDouble | ( | double | x, |
Complex & | c, | ||
double | v | ||
) | const [virtual] |
Implements QGpCoreTools::AbstractComplexPointOptions.
References AbsoluteValue, ApparentResistivity, Imaginary, PhaseDegrees, PhaseRadians, Real, QGpCoreTools::Complex::setAbs(), QGpCoreTools::Complex::setIm(), QGpCoreTools::Complex::setPhase(), QGpCoreTools::Complex::setRe(), and toAbsoluteValue().
Referenced by QGpGuiWave::MagnetoTelluricLine::setY().
{ switch(_mode) { case ApparentResistivity: c.setAbs(toAbsoluteValue(x, v)); case AbsoluteValue: c.setAbs(v); break; case PhaseDegrees: c.setPhase(v*M_PI/180.0); break; case PhaseRadians: c.setPhase(v); break; case Real: c.setRe(v); break; case Imaginary: c.setIm(v); break; } }
OutputMode QGpCoreWave::MagnetoTelluricPointOptions::mode | ( | ) | const [inline] |
{return _mode;}
void QGpCoreWave::MagnetoTelluricPointOptions::setMode | ( | OutputMode | m | ) | [inline] |
Referenced by DinverDCGui::MagnetoTelluricViewer::report2plot().
{_mode=m;}
double QGpCoreWave::MagnetoTelluricPointOptions::toAbsoluteValue | ( | double | frequency, |
double | apparentResistivity | ||
) | [inline, static] |
References MAGNETIC_CONSTANT, and QGpCoreTools::sqrt().
Referenced by fromDouble().
{ return ::sqrt(apparentResistivity*(2*M_PI*frequency)/MAGNETIC_CONSTANT); }
double QGpCoreWave::MagnetoTelluricPointOptions::toApparentResistivity | ( | double | frequency, |
double | absoluteValue | ||
) | [inline, static] |
References MAGNETIC_CONSTANT.
Referenced by toDouble().
{ return absoluteValue*absoluteValue*MAGNETIC_CONSTANT/(2*M_PI*frequency); }
double QGpCoreWave::MagnetoTelluricPointOptions::toDouble | ( | double | x, |
const Complex & | c | ||
) | const [virtual] |
Implements QGpCoreTools::AbstractComplexPointOptions.
References QGpCoreTools::Complex::abs(), AbsoluteValue, ApparentResistivity, QGpCoreTools::Complex::im, Imaginary, QGpCoreTools::Complex::phase(), PhaseDegrees, PhaseRadians, QGpCoreTools::Complex::re, Real, and toApparentResistivity().
Referenced by QGpGuiWave::MagnetoTelluricLine::point(), DinverDCGui::MagnetoTelluricViewer::report2plot(), and QGpCoreWave::MagnetoTelluricFactory::toStream().
{ switch(_mode) { case ApparentResistivity: break; case AbsoluteValue: return c.abs(); case PhaseDegrees: return c.phase()*180.0/M_PI; case PhaseRadians: return c.phase(); case Real: return c.re(); case Imaginary: return c.im(); } return toApparentResistivity(x, c.abs()); }