mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
committed by
Mathew Sutcliffe
parent
229d7c6068
commit
978f3c88e5
@@ -7,50 +7,50 @@
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace Geo
|
||||
{
|
||||
|
||||
/*!
|
||||
* \brief Latitude
|
||||
*/
|
||||
class CLatitude : public CEarthAngle<CLatitude>
|
||||
{
|
||||
protected:
|
||||
/*!
|
||||
* \brief Specific string representation
|
||||
*/
|
||||
virtual QString convertToQString() const
|
||||
namespace Geo
|
||||
{
|
||||
QString s = "latitude ";
|
||||
return s.append(CEarthAngle::convertToQString());
|
||||
}
|
||||
|
||||
public:
|
||||
/*!
|
||||
* \brief Default constructor
|
||||
*/
|
||||
CLatitude() : CEarthAngle() {}
|
||||
/*!
|
||||
* \brief Latitude
|
||||
*/
|
||||
class CLatitude : public CEarthAngle<CLatitude>
|
||||
{
|
||||
protected:
|
||||
/*!
|
||||
* \brief Specific string representation
|
||||
*/
|
||||
virtual QString convertToQString() const
|
||||
{
|
||||
QString s = "latitude ";
|
||||
return s.append(CEarthAngle::convertToQString());
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Constructor
|
||||
* \param angle
|
||||
*/
|
||||
explicit CLatitude(const BlackMisc::PhysicalQuantities::CAngle &angle) : CEarthAngle(angle) {}
|
||||
public:
|
||||
/*!
|
||||
* \brief Default constructor
|
||||
*/
|
||||
CLatitude() : CEarthAngle() {}
|
||||
|
||||
/*!
|
||||
* \brief Init by double value
|
||||
* \param value
|
||||
* \param unit
|
||||
*/
|
||||
CLatitude(double value, const BlackMisc::PhysicalQuantities::CAngleUnit &unit) : CEarthAngle(value, unit) {}
|
||||
/*!
|
||||
* \brief Constructor
|
||||
* \param angle
|
||||
*/
|
||||
explicit CLatitude(const BlackMisc::PhysicalQuantities::CAngle &angle) : CEarthAngle(angle) {}
|
||||
|
||||
/*!
|
||||
* \brief Virtual destructor
|
||||
*/
|
||||
virtual ~CLatitude() {}
|
||||
};
|
||||
/*!
|
||||
* \brief Init by double value
|
||||
* \param value
|
||||
* \param unit
|
||||
*/
|
||||
CLatitude(double value, const BlackMisc::PhysicalQuantities::CAngleUnit &unit) : CEarthAngle(value, unit) {}
|
||||
|
||||
} // namespace
|
||||
/*!
|
||||
* \brief Virtual destructor
|
||||
*/
|
||||
virtual ~CLatitude() {}
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Q_DECLARE_METATYPE(BlackMisc::Geo::CLatitude)
|
||||
|
||||
Reference in New Issue
Block a user