mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
65 lines
1.2 KiB
C++
65 lines
1.2 KiB
C++
#ifndef BLACKMISC_GEOLATITUDE_H
|
|
#define BLACKMISC_GEOLATITUDE_H
|
|
|
|
#include <QtCore/qmath.h>
|
|
#include "blackmisc/geoearthangle.h"
|
|
|
|
|
|
namespace BlackMisc
|
|
{
|
|
namespace Geo
|
|
{
|
|
|
|
/*!
|
|
* \brief Latitude
|
|
*/
|
|
class CLatitude : public CEarthAngle<CLatitude>
|
|
{
|
|
protected:
|
|
/*!
|
|
* \brief Specific string representation
|
|
*/
|
|
virtual QString convertToQString() const
|
|
{
|
|
QString s = "latitude ";
|
|
return s.append(CEarthAngle::convertToQString());
|
|
}
|
|
|
|
public:
|
|
/*!
|
|
* \brief Default constructor
|
|
*/
|
|
CLatitude() : CEarthAngle() {}
|
|
|
|
/*!
|
|
* \brief Copy constructor
|
|
* \param other
|
|
*/
|
|
CLatitude(const CLatitude &other) : CEarthAngle(other) {}
|
|
|
|
/*!
|
|
* \brief Constructor
|
|
* \param angle
|
|
*/
|
|
CLatitude(const BlackMisc::PhysicalQuantities::CAngle &angle) : CEarthAngle(angle) {}
|
|
|
|
/*!
|
|
* \brief Init by double value
|
|
* \param value
|
|
* \param unit
|
|
*/
|
|
CLatitude(double value, const BlackMisc::PhysicalQuantities::CAngleUnit &unit) : CEarthAngle(value, unit) {}
|
|
|
|
/*!
|
|
* \brief Virtual destructor
|
|
*/
|
|
virtual ~CLatitude() {}
|
|
};
|
|
|
|
} // namespace
|
|
} // namespace
|
|
|
|
Q_DECLARE_METATYPE(BlackMisc::Geo::CLatitude)
|
|
|
|
#endif // guard
|