18#ifndef QGSMAGNETICMODEL_H
19#define QGSMAGNETICMODEL_H
28#ifdef WITH_GEOGRAPHICLIB
29namespace GeographicLib
86 QgsMagneticModel(
const QString &
name,
const QString &path = QString(),
int maxDegree = -1,
int maxOrder = -1 );
139 QString
error()
const {
return mError; }
317 static
bool fieldComponentsWithTimeDerivatives(
double Bx,
double By,
double Bz,
double Bxt,
double Byt,
double Bzt,
double &H
SIP_OUT,
double &F
SIP_OUT,
double &D
SIP_OUT,
double &I
SIP_OUT,
double &Ht
SIP_OUT,
double &Ft
SIP_OUT,
double &Dt
SIP_OUT,
double &It
SIP_OUT )
SIP_THROW(
QgsNotSupportedException );
328#ifdef WITH_GEOGRAPHICLIB
329 std::unique_ptr< GeographicLib::MagneticModel > mModel;
Represents a model of the Earth's magnetic field.
static QString defaultFilePath()
Returns the default path used by GeographicLib to search for magnetic models.
QString error() const
Returns a string for the last error encountered by the model.
QString description() const
Returns the description of the magnetic model, if available.
QString file() const
Returns the full file name for the magnetic model.
bool isValid() const
Returns true if the model is valid and can be used.
QString name() const
Returns the name of the magnetic model.
QString directory() const
Returns the full directory name containing the magnetic model file.
QgsMagneticModel & operator=(const QgsMagneticModel &other)=delete
QgsMagneticModel(const QgsMagneticModel &other)=delete
QDateTime dateTime() const
Returns the date of the magnetic model, if available.
static QString defaultModelName()
Returns the name of the default magnetic model used by GeographicLib.
QgsMagneticModel(const QString &name, const QString &path=QString(), int maxDegree=-1, int maxOrder=-1)
Constructor for QgsMagneticModel.
Custom exception class which is raised when an operation is not supported.
#define SIP_THROW(name,...)