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:
Klaus Basan
2018-03-24 17:27:16 +01:00
parent 4248c1b689
commit 9abc57bb3d
27 changed files with 140 additions and 351 deletions

View File

@@ -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; }