18#ifndef QGSMAGNETICMODEL_H
19#define QGSMAGNETICMODEL_H
28#ifdef WITH_GEOGRAPHICLIB
29namespace GeographicLib
85 QgsMagneticModel(
const QString &
name,
const QString &path = QString(),
int maxDegree = -1,
int maxOrder = -1 );
138 QString
error()
const {
return mError; }
271 bool getComponentsWithTimeDerivatives(
318 static
bool fieldComponentsWithTimeDerivatives(
343#ifdef WITH_GEOGRAPHICLIB
344 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,...)