mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-22 13:15:39 +08:00
Ref T259, Ref T243 remove aircraft parts and situations from interpolator
* no longer using the add parts/situations signals * will use the remote aircraft provider parts directly Result: all parts/situations are stored only once in memory and in one single place
This commit is contained in:
@@ -196,8 +196,8 @@ namespace BlackMisc
|
||||
class BLACKMISC_EXPORT CCoordinateGeodetic : public CValueObject<CCoordinateGeodetic>, public ICoordinateGeodetic
|
||||
{
|
||||
public:
|
||||
//! Default constructor
|
||||
CCoordinateGeodetic() : CCoordinateGeodetic(0, 0, 0) {}
|
||||
//! Default constructor (null coordinate)
|
||||
CCoordinateGeodetic() {}
|
||||
|
||||
//! Constructor by normal vector
|
||||
CCoordinateGeodetic(const QVector3D &normal) : m_x(normal.x()), m_y(normal.y()), m_z(normal.z()) {}
|
||||
@@ -260,7 +260,11 @@ namespace BlackMisc
|
||||
void setNormalVector(double x, double y, double z) { m_x = x; m_y = y; m_z = z; }
|
||||
|
||||
//! Set to null
|
||||
void setNull() { this->setNormalVector(0, 0, 0); }
|
||||
void setNull()
|
||||
{
|
||||
this->setNormalVector(0, 0, 0);
|
||||
m_geodeticHeight.setNull();
|
||||
}
|
||||
|
||||
//! Is null?
|
||||
virtual bool isNull() const override { return m_x == 0 && m_y == 0 && m_z == 0; }
|
||||
|
||||
Reference in New Issue
Block a user